public function OSMPlayer::getJS in MediaFront 6.2
Same name and namespace in other branches
- 6 players/osmplayer/player/OSMPlayer.php \OSMPlayer::getJS()
- 7 players/osmplayer/player/OSMPlayer.php \OSMPlayer::getJS()
Returns the JavaScript code to add and instantiate the player on the page.
1 call to OSMPlayer::getJS()
- OSMPlayer::getPlayer in players/
osmplayer/ player/ OSMPlayer.php - The main API call for this player. This will return the HTML and JavaScript for the media player that you wish to add to your page.
File
- players/
osmplayer/ player/ OSMPlayer.php, line 476
Class
- OSMPlayer
- PHP wrapper class for the Open Standard Media (OSM) player.
Code
public function getJS() {
// Return the script.
return '<script type="text/javascript">' . $this
->getPlayerJS() . '</script>';
}