379
edits
Changes
→Guide
Then you can create the player with this code:
<tt><nowiki>
var playerContextplayer = null;
AceStream.createPlayer("#player", {
onLoad: function (playerplayerObj) {
},
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 ==