NextSharePC-interface bug fix
authorp2p <p2p@video.(none)>
Fri, 18 Mar 2011 10:27:00 +0000 (12:27 +0200)
committerp2p <p2p@video.(none)>
Fri, 18 Mar 2011 10:27:00 +0000 (12:27 +0200)
trial-site/NextSharePC-interface.js

index 1c395c5..5c6f777 100644 (file)
@@ -58,7 +58,7 @@ function displayNextSharePC(torrent)
                document.write('<embed type="application/x-ns-stream"');\r
                document.write('name="vlc"');\r
                document.write('id="vlc"');\r
-               document.write('autoplay="yes" loop="no" width="');\r
+               document.write('autoplay="no" loop="no" width="');\r
                document.write('' + getPluginWidth());\r
                document.write('" height="');\r
                document.write('' + getPluginHeight());\r
@@ -149,6 +149,9 @@ function onVolChange(event, ui)
 \r
 $(document).ready(function() \r
 {\r
+       if(document.vlc == null)\r
+               return;\r
+       \r
        // Progress Slider\r
        $("#nsSlider").slider({ animate: true });\r
        $("#nsSlider").slider({ min: 0 });\r
@@ -195,4 +198,4 @@ function stop()
 function fullscreen()\r
 {\r
        document.vlc.video.toggleFullscreen();\r
-}
\ No newline at end of file
+}\r