Page 1 of 1

HTTP + Embed + PHP

Posted: 23 Apr 2008 03:51
by Tohou
<embed type="application/x-vlc-plugin"
name="video1"
autoplay="no" loop="yes" width="400" height="300"
target="http://xxx.com/xxx.php?action=dl&permalink=<? echo $permalink; ?>" />
<br />
<a href="javascript:;" onclick='document.video1.play()'>Play video1</a>
<a href="javascript:;" onclick='document.video1.pause()'>Pause video1</a>
<a href="javascript:;" onclick='document.video1.stop()'>Stop video1</a>
<a href="javascript:;" onclick='document.video1.fullscreen()'>Fullscreen</a>

The script grabs an mp4 file from the server by the request of the permalink, what I was wondering, why won't this code work?
I get <No Video> in Firefox, and nothing happens when I hit play.

Re: HTTP + Embed + PHP

Posted: 27 Apr 2008 05:42
by NiN^_^NiN
Ok i just tried this and it worked when i hit the play button (you don't have autoplay turned on)

But looking at the PHP your using to get the link i believe that is the problem your having your linking to a download link from what i can see and this isn't the direct link to the file so VLC won't play anything

To make sure it's working for you try this link just to test your system
http://movies.apple.com/movies/sony_pic ... _h.320.mov

If that works then you know for sure it's a problem with your PHP link

Re: HTTP + Embed + PHP

Posted: 27 Apr 2008 12:57
by radyoplay

Code: Select all

<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab#Version=0,8,6,0" id="vlcIE" events="True"> <param name="MRL" value="http://" /> <param name="ShowDisplay" value="True" /> <param name="AutoLoop" value="False" /> <param name="AutoPlay" value="yes" /> <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" progid="VideoLAN.VLCPlugin.2" name="vlcMoz" id="vlcMoz" target="http://" autoplay="yes" loop="yes" hidden="no" /> </object>
plays in mozila and firefox