117
edits
Changes
→Example of using Ace Stream Javascript API to embed player on the page.
Then you can create the player with this code:
<tt><nowiki> var playerContext = null;
var AceStream.createPlayer("#player",playerContext {= null;
onLoad: function (player) playerContext = player;{
playerContext = playerContext.loadContentId("94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209")player;
onError: function(err) {console.log("init: error: " + }err); }
});
</nowiki></tt>
Player is created in the HTML-container with id "player".