IE8 issue in Calling method of an Embedded Object

[Closed]
Report
Posts
2
Registration date
Friday March 15, 2013
Status
Member
Last seen
March 15, 2013
-
Posts
2
Registration date
Friday March 15, 2013
Status
Member
Last seen
March 15, 2013
-
Hello,
I am new to this Embedded object related stuff. I am having an Embedded Player in my webpage. The player is having a method Play('<URL>') using that we will be able to play RTSP streams. This works fine in IE9 but in IE8 it shows the property undefined.

//Creating Player
player="<OBJECT ID='player' name='player' style='width: 950px; height: 350px;' CLASSID='CLSID:B2F190F0-1FA4-4D77-9ABD-1A054D23653D' width='"+width+"' height='"+height+"' CODEBASE='../gffx.dll' >";


//Javascript Code for play
var pl = document.getElementById("player");
var i=pl.Play("rtsp...."); //This line gives Error in IE8

Regards

1 reply

Posts
4476
Registration date
Thursday January 28, 2010
Status
Contributor
Last seen
August 2, 2020
768
have you checked what is value of pl after
var pl = document.getElementById("player");
Posts
2
Registration date
Friday March 15, 2013
Status
Member
Last seen
March 15, 2013

Yes, I am able to get the <OBJECT> into variable pl. Using Developer tool I viewed object info. In IE9 Everything works fine. I am able to set properties and call member functions. In IE8 when I call the Play() -- Member function -- it shows the error