Beispiel #1
0
 /**
  * Lists keywords that must be included in a url that can be embedded with
  * this media player.
  *
  * @return array Array of keywords to add to the embeddable markers list
  */
 public function get_embeddable_markers()
 {
     $markers = parent::get_embeddable_markers();
     // Add RTMP support if enabled.
     if (get_config('filter_jwplayer', 'supportrtmp')) {
         $markers[] = 'rtmp://';
     }
     return $markers;
 }
Beispiel #2
0
 public function list_supported_urls(array $urls, array $options = array())
 {
     // Not supported unless the creator is trusted.
     if (empty($options[core_media::OPTION_TRUSTED])) {
         return array();
     }
     return parent::list_supported_urls($urls, $options);
 }
Beispiel #3
0
 /**
  * Compares by rank order, highest first. Used for sort functions.
  * @deprecated since Moodle 3.2
  * @param core_media_player $a Player A
  * @param core_media_player $b Player B
  * @return int Negative if A should go before B, positive for vice versa
  */
 public static function compare_by_rank(core_media_player $a, core_media_player $b)
 {
     debugging('Function core_media_player::compare_by_rank() is deprecated without replacement', DEBUG_DEVELOPER);
     return $b->get_rank() - $a->get_rank();
 }