Changes
Jump to:
navigation
,
search
← Older edit
Newer edit →
JavaScript Library
96 bytes removed
,
17:27, 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".
Ffx
Administrators
117
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Ace Stream forum
Help
Deployment
Distributions
Install Linux
Install Windows
Broadcasting
Streaming
Multi Stream
HLS Broadcast
Development
HTTP API
Search API
Playlist API
Engine API
Engine Service API
JavaScript Library
Product key
Ace Stream docs
Ace Stream on GitHub
Ace Player legacy source
Ace Player JC fork
Tools
Special pages