embed.js error fix

This commit is contained in:
Niels Groot Obbink 2012-08-29 16:19:34 +02:00
parent 4257ac6634
commit 8d5d15669f

View file

@ -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)
} }
} }
} }