dimanche 28 février 2016

acestream webplugin not wotk correctly

I'm trying to change audio track in acestream webplugin.

Here http://ift.tt/1KUY2Mj we can see that audioTrack("tracknumber"); should do it but this not work, I also tried audioCount(); to see how many different audio track haves, but nothing (I know that there 3 diffrent audio tracks on my stream).

But when I open stream with aceplayer on windows desktop(not webplugin), then I can edit audiotrack, so the number of languages is surely exists but in webplugin just dont work language change.

My code is:

<div id="tv-player-wrapper" style="width: 100%; height: 543px; float: left; clear: both; position: relative; overflow: hidden;">
<div class="tv-player" id="tvplayer" style="width: 100%; height: 543px; position: relative;">
<script type="text/javascript">
var player_context;
var torrent_player;
function init() {
console.log("init start");
var controls = new TorrentStream.Controls("tvplayer", {
style: "internal",
debug: false
});
console.log(controls);
try {
// Assign player_context in onLoad handler because it can differ
// from return value of TorrentStream.Player. For example,
// TorrentStream.FlashPlayer can be returned.
new TorrentStream.FlashPlayer(controls.getPluginContainer(), {
debug: true,
useInternalControls: true,
bgColor: "#000000",
fontColor: "#ffffff",
onLoad: function () {
this.registerEventHandler(controls);
controls.attachPlayer(this);
torrent_player = this;
try {
this.loadPlayer("mystreamhere",{autoplay: true});
this.audioTrack("2");
}
catch (e) {
console.log("init: " + e);
}
},
onError: function(err) {
console.log("init: error: " + err);
controls.onSystemMessage(err);
}
});
}
catch (e) {
controls.onSystemMessage(e);
} 
}

init(); 
</script>
<div class="tv-loading" id="TVLoading" style="display: none; width: 100%; height: 543px; text-align: center;"><img src="images/tv-loading.gif" style="vertical-align: middle; margin-right: 10px;">oota natukene, meie film hakkab kohe..</div>
</div>
</div>




Aucun commentaire:

Enregistrer un commentaire