embed.js error fix
This commit is contained in:
parent
4257ac6634
commit
8d5d15669f
1 changed files with 100 additions and 99 deletions
|
@ -1,5 +1,6 @@
|
||||||
function mistembed(video)
|
function mistembed(streamname)
|
||||||
{
|
{
|
||||||
|
|
||||||
// add stuff to mistvideo object, if it doesn't exist yet
|
// add stuff to mistvideo object, if it doesn't exist yet
|
||||||
if(!mistvideo.hasSupport || !mistvideo.buildPlayer)
|
if(!mistvideo.hasSupport || !mistvideo.buildPlayer)
|
||||||
{
|
{
|
||||||
|
@ -65,7 +66,8 @@ if(!mistvideo.hasSupport || !mistvideo.buildPlayer)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var container = document.createElement('div'),
|
var video = mistvideo[streamname],
|
||||||
|
container = document.createElement('div'),
|
||||||
scripts = document.getElementsByTagName('script'),
|
scripts = document.getElementsByTagName('script'),
|
||||||
me = scripts[scripts.length - 1];
|
me = scripts[scripts.length - 1];
|
||||||
|
|
||||||
|
@ -111,5 +113,4 @@ if(video.error)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue