Re: Player.controls.play() doesn't work in IE, but works in Firefo



Er... I guess this explains why my controls never worked in Firefox :-)
It does seem rather strange that stop works but play does not.
I will try it in my implementation and see if I get the same results.

Frances

Robson WT wrote:

"Neil Smith [MVP Digital Media]" wrote:

Well that's just going to break it for FireFox isn't it ?

Yes, Firefox only works with document.getElementById().


FF doesn't have a mediaPlayer as a child of anything other than the
document - IE "helpfully" includes the window namespace in the
javascript object list so you're actually calling window.mediaPlayer
here.

But the embedded object isn't a child of the window object, it's a
child of the document object, so IE is defective (this has been known
for a long time BTW)

But the strange thing is that
document.getElementById('mediaPlayerObj').controls.stop() works fine in IE.

It is document.getElementById('mediaPlayerObj').controls.play() that doesn't
work, actually. It seems that the play() method has some issue I don't know
about that is making my test not work properly.

.



Relevant Pages