Page 1 of 1

Post problem with IE to play video and javascript problem

Posted: 20 Jul 2007 14:57
by jeffrey
Hello,
First, I'm sorry but I'm not very good in english.

I create web pages for play videos and I've a problem with IE
I use this script:

Code: Select all

<object id="vlc" width="300" classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" type="application/x-vlc-plugin"> <param name="filename" value="my_video"/> <param name="autostart" value="1"/> <param name="autoplay" value="true"/> <param name="showcontrols" value="1"> <embed type="application/x-vlc-plugin" src="my_video" width="300" autoplay="true" autostart="1" showcontrols="1"/> </object>
When I open my page with firefox, video his play correctly. But when I open my page with Internet Explorer, video his load and play too, but if I click on player, the image is hidden whereas the audio continu to play.


I 've a second problem:
I would like to can play differently videos with the player. I 've write a javascript function:

Code: Select all

function play(filename) { vlc.url = filename; }
and I've write the next html code:

Code: Select all

<a href="#" onclick="play('my_video')">Video 1</a> <a href="#" onclick="play('my_video2')">Video 2</a>
If I use this code with Wmplayer like object, I can change of video playing like I would like.
But if I use vlc in my object, video don't playing.
I think that it's a problem with the javascript code but I don't know that I must change.
Can you help me please?

PS: If it's more easy for you to answer in french, don't hesitate, I'm french ^^.

Re: Post problem with IE to play video and javascript problem

Posted: 28 Jul 2007 01:06
by utahkay
When I open my page with firefox, video his play correctly. But when I open my page with Internet Explorer, video his load and play too, but if I click on player, the image is hidden whereas the audio continu to play.
Try putting your object tag inside a table, like this

Code: Select all

<table> <object id="vlc" width="300" classid="clsid:E23FE9C6-778E-49D4-B537-38FCDE4887D8" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab" type="application/x-vlc-plugin"> <param name="filename" value="my_video"/> <param name="autostart" value="1"/> <param name="autoplay" value="true"/> <param name="showcontrols" value="1"> <embed type="application/x-vlc-plugin" src="my_video" width="300" autoplay="true" autostart="1" showcontrols="1"/> </object> </table>
Hope this helps,
-Kay

Re: Post problem with IE to play video and javascript problem

Posted: 04 Sep 2007 15:30
by Bender
Try to insert this param tag:

<param name="ShowDisplay" value="False" />