Embed: clear target element before appending player
This commit is contained in:
parent
b0326ccd1e
commit
17c1368235
1 changed files with 4 additions and 0 deletions
|
@ -863,6 +863,7 @@ function mistPlay(streamName,options) {
|
|||
embedLog('Checking available players..');
|
||||
|
||||
var source = false;
|
||||
var mistPlayer = false;
|
||||
|
||||
function checkPlayer(p_shortname) {
|
||||
if ((startCombo) && (!startCombo.started.player)) {
|
||||
|
@ -950,6 +951,7 @@ function mistPlay(streamName,options) {
|
|||
}
|
||||
}
|
||||
|
||||
options.target.innerHTML = '';
|
||||
if (mistPlayer) {
|
||||
|
||||
//create the options to send to the player
|
||||
|
@ -1026,6 +1028,7 @@ function mistPlay(streamName,options) {
|
|||
|
||||
if (player.setTracks(false)) {
|
||||
//gather track info
|
||||
//tracks
|
||||
var tracks = {
|
||||
video: [],
|
||||
audio: [],
|
||||
|
@ -1112,6 +1115,7 @@ function mistPlay(streamName,options) {
|
|||
|
||||
if (player.setTracks(false)) {
|
||||
player.onready(function(){
|
||||
//player.setTracks(usetracks);
|
||||
if ('setTracks' in options) { player.setTracks(options.setTracks); }
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue