public function can_embed_urls(array $urls, $options = array()) {
        // Check all players to see if any of them support it.
        foreach ($this->get_players() as $player) {
            // First player that supports it, return true.
            if ($player->list_supported_urls($urls, $options)) {
                return true;
            }
        }
        return false;
    }
public function can_embed_urls(array $urls, $options = array()) {
        // Check all players to see if any of them support it.
        foreach ($this->get_players() as $player) {
            // First player that supports it, return true.
            if ($player->list_supported_urls($urls, $options)) {
                return true;
            }
        }
        return false;
    }
public function can_embed_urls ( array $ urls , $ options = array ( ) ) { // Check all players to see if any of them support it. foreach ( $ this -> get_players ( ) as $ player ) { // First player that supports it, return true. if ( $ player -> list_supported_urls ( $ urls , $ options ) ) { return true ; } } return false ; }
Checks whether a file can be embedded. If this returns true you will get
an embedded player; if this returns false, you will just get a download
link.

@param array $urls URL of media file and any alternatives (moodle_url)
@param array $options Options (same as when embedding)
@return bool True if file can be embedded
Checks whether a file can be embedded . If this returns true you will get an embedded player ; if this returns false you will just get a download link .