merl0t / flash-videoio

Automatically exported from code.google.com/p/flash-videoio
0 stars 0 forks source link

Javascript setProperty Compatibility IE #25

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I have a problem using the setProperty function in Javascript.
To reproduce the problem:
1.Open IE 8 or some other version (IE 9 has the bug too)
2.Go to http://myprojectguide.org/p/flash-videoio/1.html
3.The example at the end of the page is not working (the setProperty function 
does not exists...)

Here is the error:
> Webpage error details
> 
> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; 
LUDI2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
> Timestamp: Wed, 12 Oct 2011 17:20:34 UTC
> 
> 
> Message: Object doesn't support this property or method
> Line: 172
> Char: 1
> Code: 0
> URI: http://myprojectguide.org/p/flash-videoio/1.html

Is there a way to make this script work under IE ?

Thanks by advance Kundan

Original issue reported on code.google.com by benjamin...@gmail.com on 12 Oct 2011 at 5:22

GoogleCodeExporter commented 9 years ago
Hey,

Can you try changing the <object> tag to the embedded <object><embed> tag 
similar to the one mentioned on the page before. Use codebase and classid 
attributes in object instead of type. 
Please let me know your results.

Original comment by kundan10 on 12 Oct 2011 at 5:27

GoogleCodeExporter commented 9 years ago
Hi Kundan,

here is the code I use :

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'my-video'" 
width="217px" height="164px" 
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
   <param name="movie" value="/swf/VideoIO.swf" />
   <param name="allowFullScreen" value="true" />
   <param name="allowScriptAccess" value="always" />
   <param name="flashVars" value="quality=1&controls=true&echoSuppression=true&echoCancel=true&silenceLevel=2&codec=Speex&rate=8&encodeQuality=4&cameraBandwidth=50000" />
   <param name="wmode" value="transparent">
   <embed src="/swf/VideoIO.swf" width="217px" height="164px" name="my-video" align="middle" allowFullScreen="true" allowScriptAccess="sameDomain" flashVars="quality=1&controls=true&echoSuppression=true&echoCancel=true&silenceLevel=2&codec=Speex&rate=8&encodeQuality=4&cameraBandwidth=50000" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" wmode="transparent"></embed>
</object>

Thanks.

Original comment by benjamin...@gmail.com on 13 Oct 2011 at 3:33

GoogleCodeExporter commented 9 years ago
I am also seeing this issue in Firefox and Chrome. I downloaded the 
VideoIO-2.7.zip file, unzipped and tried to load the tutorial html pages 
locally. When I tried to enable the live camera view, I received the following 
error in Firebug:

getFlashMovie("video1").setProperty is not a function

Is there any local configuration I need to do after downloading the source 
files? I do not have much Flash experience, so it is a bit difficult to 
determine if the issue is with the .swf file.

Original comment by alan.r.d...@gmail.com on 24 Feb 2012 at 4:13

GoogleCodeExporter commented 9 years ago
Does the error happen when trying out the tutorial on the web site 
http://myprojectguide.org/p/flash-videoio/
If not, I suspect these issues:

1) use without a web server probably does not enable all Flash 
Player/Javascript communication (some security issues). If you can try running 
a local web server and load the pages from that...

2) try out the latest build from 
http://myprojectguide.org/p/flash-videoio/VideoIO-3.2.zip (not released yet).
If this works, then perhaps a bug in 2.7.

3) Any other javascript error?

Let us know.

If the tutorial does not work on the web site itself then let us know too.

Original comment by kundan10 on 24 Feb 2012 at 4:35

GoogleCodeExporter commented 9 years ago
Thanks for the prompt reply, Kundan.

I followed your suggestion #1, and I loaded the pages from a web server and 
that solved the issue! 

For the record, the tutorials on the website worked perfectly. Thanks a lot for 
the help!

Original comment by alan.r.d...@gmail.com on 24 Feb 2012 at 4:57

GoogleCodeExporter commented 9 years ago

Original comment by kundan10 on 24 Feb 2012 at 5:09