IE8 issue in Calling method of an Embedded Object

Closed
jithsajith Posts 2 Registration date Friday March 15, 2013 Status Member Last seen March 15, 2013 - Mar 15, 2013 at 04:08 AM
jithsajith Posts 2 Registration date Friday March 15, 2013 Status Member Last seen March 15, 2013 - Mar 15, 2013 at 07:42 AM
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
Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Mar 15, 2013 at 07:23 AM
have you checked what is value of pl after
var pl = document.getElementById("player");
0
jithsajith Posts 2 Registration date Friday March 15, 2013 Status Member Last seen March 15, 2013
Mar 15, 2013 at 07:42 AM
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
0