Changes

Jump to: navigation, search

JavaScript Library

217 bytes added, 11:30, 21 November 2018
Guide
Then you can create the player with this code:
<tt><nowiki>
var playerContext player = null;
AceStream.createPlayer("#player", {
onLoad: function (playerplayerObj) { playerContext player = playerplayerObj; playerContextplayer.loadContentId("94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209");
},
onError: function(err) {
*<tt>loadMagnet(magnetUri)</tt> - load by magnet link;
*<tt>loadDirectUrl(url)</tt> - load by direct content URL (this can be direct link to some video file, HLS stream or link supported by Ace Stream plugins: youtube, twitch etc).
 
You can create more than one player on the same web page. To do this you need to provide a separate HTML container for each player and call AceStream.createPlayer() method on each container. You can find example on the demo page.
== Demo ==

Navigation menu