culay Posted January 9, 2011 Report Posted January 9, 2011 (edited) Salut,am si o problema legata de php!Site-ul este de hosting fisiere,si vreau sa adaug player ca la fiecare melodie/clip .mp3/mp4/avi/ sa se poata fie vizualizat/ascultat online!Am incercat cu JwPlayer 5.4 merge totul perfect,doar ca am reusit doar cu un path exact "exemplu:files/music.mp3"Am incercat cu mai multe comenzi genu:<?=$w ?>files/$imageIDetcetcDar nu am reusit!Va prezint codul complect care vine in pagina ca sa poata fie vizualizat!<!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE --> <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="328" height="200"> <param name="movie" value="player.swf" /> <param name="allowfullscreen" value="true" /> <param name="allowscriptaccess" value="always" /> <param name="flashvars" value="file=video.mp4?=preview.jpg" /> <embed type="application/x-shockwave-flash" id="player2" name="player2" src="player.swf" width="328" height="200" allowscriptaccess="always" allowfullscreen="true" flashvars="file=video.mp4?=preview.jpg" /> </object> <!-- END OF THE PLAYER EMBEDDING --> Acest cod este cod-ul exact care mil da JwPlayer!O zi/noapte buna la toti! Edited January 9, 2011 by culay Quote
Moderators Dragos Posted January 9, 2011 Moderators Report Posted January 9, 2011 <?php$link = 'http://site.ro/arhiva/melodie.mp3';$sir = explode(".", $link);$nel = count ($sir);$poz = $nel - 1;//Audioif (($sir[$poz] == "mp3") || ($sir[$poz] == "mid")){ //codul tau pentru audio aici}//Videoif (($sir[$poz] == "avi") || ($sir[$poz] == "wmv")){ //codul tau pentru video aici}?>E ok asa? Quote
culay Posted January 9, 2011 Author Report Posted January 9, 2011 Am rezolvat datorita lui SynthesisMersi Synthesis! Quote