basic functionality, no estetics: videos are listed in index; can be watched with...
[living-lab-site.git] / application / views / video / ns-vlc_plugin_view.php
1 <div id="vlc_container">No VLC</div>
2 <table id="nsTable">
3         <tr><td id="nsPlaybackCell"><input type=button value="Play" onClick="play();" />
4         <input type=button value="Pause" onClick="pause();" />
5         <input type=button value="Stop" onclick="stop();" /></td>
6         <td id="nsTimeCell"><span id="nsTime">-</span></td>
7         <td><div id="nsVol"></div></td>
8         <td><input type=button value="Fullscreen" onclick="fullscreen();" /></td></tr>
9         <tr><td colspan="4"><div id="nsSlider"></div></td></tr>
10 </table>
11
12 <script type="text/javascript">
13         if (navigator.appName == "Netscape")
14         {
15                 $('#vlc_container').html(
16                         '<embed type="application/x-ns-stream" name="vlc" id="vlc" autoplay="no" loop="no" width="' + getPluginWidth() + '" height="' + getPluginHeight() + '" target="<?php echo $url ?>" />');
17         }
18         else
19         {
20                 $('$vlc_container').html(
21                         '<object classid="clsid:1800B8AF-4E33-43C0-AFC7-894433C13538" codebase="http://trial.p2p-next.org/download/SwarmPlugin_IE_1.0.4.cab" width="' + getPluginWidth() + '" height="' + getPluginHeight() + '" id="vlc" name="vlc" events="True" target="">'
22                         + '<param name="Src" value="<?php echo $url ?>" />'
23                         + '<param name="ShowDisplay" value="True" />'
24                         + '<param name="Loop" value="False" />'
25                         + '<param name="AutoPlay" value="False" />'
26                         + '<param name="Toolbar" value="True" />'
27                         + '</object>');
28         }
29         
30         loadControls();
31 </script>