VideoExpertsGroup / Chrome.RTSP.Player

Chrome RTSP player
https://www.videoexpertsgroup.com/
144 stars 54 forks source link

Proxy stops working if one stream is not available #8

Open naitse opened 7 years ago

naitse commented 7 years ago

OSX 10.11.6 Chrome 58.0.3029.96 (64-bit)

If an RTSP stream is not available the ws proxy breaks and the extension must be disbaled and enabled in order to get it working again. since the problem affects the proxy, the issue is not isolated to the tab that has the offending stream but to all tabs.

debug info from console:

Player vxg_media_player1 handleMessage: Player Module is ready. Player vxg_media_player1 handleMessage: PLAYER_INITED Player vxg_media_player1 - moduleDidLoad Player vxg_media_player1 - loadSettings Player: vxg_media_player1 cmd=[setversion] 1.8.31 Player: vxg_media_player1 cmd=[setautoreconnect] 1 Player: vxg_media_player1 cmd=[setconnection_timeout] 0 Player: vxg_media_player1 cmd=[setaspectratio] 1 Player: vxg_media_player1 cmd=[setavsync] 1 Player: vxg_media_player1 cmd=[setlatency] 3000000 Player: vxg_media_player1 cmd=[startwebsclient] 8778 Player vxg_media_player1 handleMessage: playerCommand setversion:1.8.31 result=0 Player vxg_media_player1 handleMessage: playerCommand setautoreconnect:1 is_auto_reconnect=1 Player vxg_media_player1 handleMessage: playerCommand setautoreconnect:1 result=0 Player vxg_media_player1 handleMessage: playerCommand setconnection_timeout:0 setconnection_timeout=0 Player vxg_media_player1 handleMessage: playerCommand setconnection_timeout:0 result=0 Player vxg_media_player1 handleMessage: playerCommand setaspectratio:1 aspectratio_mode=1 Player vxg_media_player1 handleMessage: playerCommand setaspectratio:1 result=0 Player vxg_media_player1 handleMessage: playerCommand setavsync:1 is_avsync=1 Player vxg_media_player1 handleMessage: playerCommand setavsync:1 result=0 Player vxg_media_player1 handleMessage: playerCommand setlatency:3000000 result=0 Player vxg_media_player1 handleMessage: playerCommand startwebsclient:8778 result=0 Player vxg_media_player1 handleMessage: VERSION_APP 1.8.34 =VERSION_APP 1.8.34 Player vxg_media_player1 - playerDidLoad Player vxg_media_player1 src=rtsp://192.168.0.50/media=0/channel=2&level=1 autostart=true is_opened=false Player: vxg_media_player1 cmd=[open] rtsp://192.168.0.50/media=0/channel=2&level=1 Player vxg_media_player1 handleMessage: PLAYER_CONNECTING Player vxg_media_player1 handleMessage: Player is openning url(rtsp://192.168.0.50/media=0/channel=2&level=1) ... Player vxg_media_player1 handleMessage: PLAYER_STOPPING Player vxg_media_player1 handleMessage: PLAYER_STOPPED Player vxg_media_player1 handleMessage: PLAYER_CONNECTING 2Player vxg_media_player1 handleMessage: Player source error=-32 WSS status=4 Player vxg_media_player1 handleMessage: PLAYER_STOPPING Player vxg_media_player1 handleMessage: PLAYER_STOPPED Player vxg_media_player1 handleMessage: Player is openning url(rtsp://192.168.0.50/media=0/channel=2&level=1) ... Player vxg_media_player1 handleMessage: PLAYER_CONNECTING index2.html:1 WebSocket connection to 'ws://127.0.0.1:8778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED Player vxg_media_player1 handleMessage: Player source error=-2 WSS status=0 Player vxg_media_player1 handleMessage: VXG Media Player Proxy is not started! Player vxg_media_player1 handleMessage: wait for VXG Media Player Proxy is starting Player vxg_media_player1 handleMessage: PLAYER_STOPPING Player vxg_media_player1 handleMessage: PLAYER_STOPPED Player vxg_media_player1 handleMessage: Player is openning url(rtsp://192.168.0.50/media=0/channel=2&level=1) ... Player vxg_media_player1 handleMessage: PLAYER_CONNECTING index2.html:1 WebSocket connection to 'ws://127.0.0.1:8778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED Player vxg_media_player1 handleMessage: Player source error=-2 WSS status=0 Player vxg_media_player1 handleMessage: VXG Media Player Proxy is not started! Player vxg_media_player1 handleMessage: wait for VXG Media Player Proxy is starting Player vxg_media_player1 handleMessage: PLAYER_STOPPING Player vxg_media_player1 handleMessage: PLAYER_STOPPED Player vxg_media_player1 handleMessage: Player is openning url(rtsp://192.168.0.50/media=0/channel=2&level=1) ... Player vxg_media_player1 handleMessage: PLAYER_CONNECTING index2.html:1 WebSocket connection to 'ws://127.0.0.1:8778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED Player vxg_media_player1 handleMessage: Player source error=-2 WSS status=0 Player vxg_media_player1 handleMessage: VXG Media Player Proxy is not started! Player vxg_media_player1 handleMessage: wait for VXG Media Player Proxy is starting Player vxg_media_player1 handleMessage: PLAYER_STOPPING Player vxg_media_player1 handleMessage: PLAYER_STOPPED Player vxg_media_player1 handleMessage: Player is openning url(rtsp://192.168.0.50/media=0/channel=2&level=1) ... Player vxg_media_player1 handleMessage: PLAYER_CONNECTING index2.html:1 WebSocket connection to 'ws://127.0.0.1:8778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED Player vxg_media_player1 handleMessage: Player source error=-2 WSS status=0 Player vxg_media_player1 handleMessage: VXG Media Player Proxy is not started! Player vxg_media_player1 handleMessage: wait for VXG Media Player Proxy is starting Player vxg_media_player1 handleMessage: PLAYER_STOPPING Player vxg_media_player1 handleMessage: PLAYER_STOPPED Player vxg_media_player1 handleMessage: Player is openning url(rtsp://192.168.0.50/media=0/channel=2&level=1) ... Player vxg_media_player1 handleMessage: PLAYER_CONNECTING index2.html:1 WebSocket connection to 'ws://127.0.0.1:8778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED Player vxg_media_player1 handleMessage: Player source error=-2 WSS status=0 Player vxg_media_player1 handleMessage: VXG Media Player Proxy is not started! Player vxg_media_player1 handleMessage: wait for VXG Media Player Proxy is starting VM117:35 WebSocket connection to 'ws://127.0.0.1:8778/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED WrappedWebSocket @ VM117:35 (anonymous) @ vxgplayer-1.8.31.min.js:1

bleikher commented 7 years ago

Hi Naitse, Please download the chrome start script https://www.dropbox.com/s/y906qp445i94zlm/start_chrome.zip?dl=0

This script starts the chrome in debug mode. In your case it start_chrome_mac.sh . Steps:

  1. close all started chrome processes
  2. start chrome in debug mode start_chrome_mac.sh
  3. reproduce the issue
  4. send obtained logs to me nacl_stdout.log nacl_stderr.log nacl.log

Thanks, Alexey Bleikher bleikher@videoexpertsgroup.com