i'm having issue with php / "" '' etc
Posted: Fri Dec 25, 2009 12:30 pm
i'm trying to code a video streaming script based on videolan plugin, and ssh to do the backend ffmpeg,mencoder etc
i'm done so far a index.php which lists thumbnails and file url
but im stuck here
my issue is how to enable the onclick vlc in this section of code
i've tried to code it like this but doesnt work
but its just gives me issues, im not sure how to put the \ into the vlc onclick
please advice me on this
thank you
i'm done so far a index.php which lists thumbnails and file url
but im stuck here
Code: Select all
<a href="#" onclick="vlc_controls.play('http://code.revolunet.com/VLCjs/rambo.mpg')">rambo trailer</a>
Code: Select all
echo "<div class=\"photo\"><a href=\"movies/$file.mkv\"><span></span><img src=\"data/$file\" alt=\"$file\" /></a> </div> ";
Code: Select all
echo "<div class=\"photo\>]<a href=\"movies/$file.mkv\" onclick=\"vlc_controls.play(movies/$file.mkv)\">$file</a><span></span><img src=\"data/$file\" alt=\"$file\" /></a> </div> ";
but its just gives me issues, im not sure how to put the \ into the vlc onclick

please advice me on this
thank you