Ver Mensaje Individual
  #1 (permalink)  
Antiguo 25/12/2014, 10:37
xoceunder
 
Fecha de Ingreso: junio-2012
Ubicación: En el Mundo
Mensajes: 759
Antigüedad: 11 años, 10 meses
Puntos: 10
duda en ejecutar plugin vlc

hola es que tengo esto echo pero no me funciona

Código HTML:
Ver original
  1. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  2. <title>Watch Online Channels</title>
  3. .scroll
  4.     {
  5.     width:200px;
  6.     height:450px;
  7.     overflow: auto;
  8.     border:1px solid #000000; /* Solo lo puse para que se vea el cuadro*/
  9.     }
  10. .link {
  11.     color:blue;
  12.     text-decoration:underline;
  13.     cursor:pointer;
  14. }
  15.     <script>
  16.         function updatePlayer(link) {
  17.             var vlc = document.getElementById("vlc"); vlc.playlist.stop(); vlc.playlist.clear(); vlc.playlist.add(link, "live", ":network-caching=150"); vlc.playlist.play();
  18.         }
  19.     </script>
  20. </head>
  21.  
  22. <table width="900" height="480" border="1">
  23.   <tr>
  24.     <td height="30" colspan="2">Watch Online Channels</td>
  25.   </tr>
  26.   <tr>
  27.     <td width="260">
  28.     <div class="scroll">
  29.  <?php
  30.  
  31. $file = fopen("url.txt", "r");
  32.  
  33. while(!feof($file)) {
  34.  
  35.  
  36. echo "<span class=\"link\" onclick=\"javascript:updatePlayer('".fgets($file)."');\">Channel</span><br>";
  37. }
  38.  
  39. fclose($file);
  40.  
  41. ?>
  42.     </div>
  43.     </td>
  44.     <td width="640" align="center">
  45.     <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" id="vlc" height="480" width="640">
  46.     </td>
  47.   </tr>
  48.  
  49. </body>
  50. </html>