HTTP + Embed + PHP

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Tohou
New Cone
New Cone
Posts: 1
Joined: 23 Apr 2008 03:49

HTTP + Embed + PHP

Postby Tohou » 23 Apr 2008 03:51

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

NiN^_^NiN
Blank Cone
Blank Cone
Posts: 24
Joined: 26 Apr 2008 12:05

Re: HTTP + Embed + PHP

Postby NiN^_^NiN » 27 Apr 2008 05:42

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

radyoplay
New Cone
New Cone
Posts: 2
Joined: 27 Apr 2008 12:28

Re: HTTP + Embed + PHP

Postby radyoplay » 27 Apr 2008 12:57

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
Image
IPTV AND RADiO STREAMING

Image
RADYOLARIN ASLI ALSIFM


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 4 guests