瀏覽代碼

remote playback: set WebSocket URL according to location host

David Loiret 9 年之前
父節點
當前提交
bdf517da24
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Resources/web/playerControl.js

+ 1 - 2
Resources/web/playerControl.js

@@ -523,8 +523,7 @@ $(function() {
     /**
      * Instanciation of the Ws class
      */
-    //@TODO: This URL need to be updated at runtime
-    var URL = 'ws://192.168.0.14:8888';
+    var URL = 'ws://' + location.host;
 
     var socket = new Ws({
         url: URL