Changes

Jump to: navigation, search

JavaScript Library

13 bytes added, 17:25, 15 September 2017
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; AceStream.createPlayer("#player", { onLoad: function (player) { playerContext = player; playerContext.loadContentId("94c2fd8fb9bc8f2fc71a2cbe9d4b866f227a0209"); }, onError: function(err) {console.log("init: error: " + err);} });
</nowiki></tt>
Player is created in the HTML-container with id "player".

Navigation menu