javascript - vlc embedded php playlist -


i want create php playlist vlc player embedded on web page. want when click on button change song or movie, without refreshing page. want movies , songs inside in php file because url path of songs , movies retrieve directly mysql base. important channel list not visible everyone. in javascript songs url paths links visible.

also if possible encrypt target name of vlc, if real link http://xxx.xx.org/test/lista/u2-one.avi encrypted in http%3a%2f%2fxxx.xx.org%2ftest%2flista%2fu2-one.avi

example

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" width="300" height="300" name="tv" target="<?php echo $movie ?>" id="tv"> 

php playlist

<?php  $movie = 'http://xxx.xx.org/test/lista/u2-one.avi';  $mp3='http://xxx.xx.org/test/lista/coldplay-yellow.mp3';  $coldplay='http://xxx.xx.org/test/lista/coldplay-paradise.mp3'; ?> 

example

<button onclick="vlc.playlist.playitem(0); ">coldplay</button> 

here pretty explained , don't have experience in javascript.

your playlist contains $movie. need fill playlist vlc.playlist.add(mrl,name,options) can use vlc.playlist.playitem(number)

js:

var options = new array(); var id1 = vlc.playlist.add('http://xxx.xx.org/test/lista/u2-one.avi', "movie", options); var id2 = vlc.playlist.add('http://xxx.xx.org/test/lista/coldplay-yellow.mp3', "mp3", options); var id3 = vlc.playlist.add('http://xxx.xx.org/test/lista/coldplay-paradise.mp3', "coldplay", options); 

html:

<button onclick="vlc.playlist.playitem(id3);">coldplay</button> 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -