Post problem with IE to play video and javascript problem

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
jeffrey
New Cone
New Cone
Posts: 1
Joined: 20 Jul 2007 14:06

Post problem with IE to play video and javascript problem

Postby jeffrey » 20 Jul 2007 14:57

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 ^^.

utahkay
New Cone
New Cone
Posts: 1
Joined: 28 Jul 2007 01:02

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

Postby utahkay » 28 Jul 2007 01:06

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

Bender
New Cone
New Cone
Posts: 2
Joined: 04 Sep 2007 15:24

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

Postby Bender » 04 Sep 2007 15:30

Try to insert this param tag:

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


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 10 guests