Hi, we have a setup working with openvidu-server-kms - if the browser is running on the same machine as the server.
However, as soon as we point a browser from another machine to the server, we get NO_STREAM_PLAYING_EVENT.
There are no network issues logged in the browser console, using “verbose” log and omitting enableProdMode().
We also tried a full CE install (on-premises) and here the same issues occur.
OpenVidu Client “getActiveSessions()” shows proper “IPCAM” connection and “WEBRTC” connection.
One difference we noticed between “embedded” install (openvidu-server-kms) and CE install:
- “embedded” install does not show “RTCPeerConnection …connected” at all
- with CE install the browser shows a log message along the lines:
IceConnectionState of RTCPeerConnection f73c8820-7855-4f7d-9c6e-8456a9ba2e90 (str_IPC_UxYw_ipc_IPCAM_rtsp_YPPI_10_232_4_80_554_h264Preview_01_main) change to "connected"
(yet, still getting NO_STREAM_PLAYING_EVENT)
Any help would be greatly appreciated since we don’t really know how to dig into this any further.
PS I intended to attach the verbose log from the browser console but the post got too big.
This is a working log - Browser on the same machine as the Server.
openvidu-browser version: 2.19.0
OpenViduLogger.js:246 openvidu-server version: 2.19.0
OpenViduLogger.js:246 'Connection' created (local)
OpenViduLogger.js:246 Remote 'Connection' with 'connectionId' [ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main] is now configured for receiving Streams with options: Object
OpenViduLogger.js:246 'Connection' created (remote) with 'connectionId' [ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main]
OpenViduLogger.js:246 Event 'streamCreated' triggered by 'Session' StreamEventcancelable: falsehasBeenPrevented: falsereason: ""stream: Stream {isSubscribeToRemote: false, isLocalStreamReadyToPublish: false, isLocalStreamPublished: false, publishedOnce: false, harkSpeakingEnabled: false, …}target: Session {userHandlerArrowHandler: WeakMap, ee: EventEmitter, streamManagers: Array(1), remoteStreamsCreated: Map(1), remoteConnections: Map(1), …}type: "streamCreated"[[Prototype]]: Event
open-vidu-session-manager.service.ts:98 streamCreated StreamEvent
OpenViduLogger.js:246 Subscribing to ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main
OpenViduLogger.js:246 New video element associated to Subscriber
OpenViduLogger.js:219 IceConnectionState of RTCPeerConnection 97cdb1f4-0dbd-47ad-81c4-e3ceb10013a9 (str_IPC_VYGB_ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main) change to "checking"
OpenViduLogger.js:246 'Subscriber' (str_IPC_VYGB_ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main) successfully subscribed
OpenViduLogger.js:246 Subscribed correctly to ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main
OpenViduLogger.js:219 IceConnectionState of RTCPeerConnection 97cdb1f4-0dbd-47ad-81c4-e3ceb10013a9 (str_IPC_VYGB_ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main) change to "connected"
OpenViduLogger.js:246 Remote 'Stream' with id [str_IPC_VYGB_ipc_IPCAM_rtsp_AY68_10_232_4_80_554_h264Preview_01_main] video is now playing
This is a non-working log, Browser on a different Machine than the Server.
######################
openvidu-browser version: 2.19.0
main-es2015.8f3d93404a6063b9f714.js:1 openvidu-server version: 2.19.0
main-es2015.8f3d93404a6063b9f714.js:1 'Connection' created (local)
main-es2015.8f3d93404a6063b9f714.js:1 Remote 'Connection' with 'connectionId' [ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main] is now configured for receiving Streams with options: {id: 'str_IPC_G0UH_ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main', createdAt: 1636472643014, connection: e, hasAudio: true, hasVideo: true, …}
main-es2015.8f3d93404a6063b9f714.js:1 'Connection' created (remote) with 'connectionId' [ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main]
main-es2015.8f3d93404a6063b9f714.js:1 Event 'streamCreated' triggered by 'Session' t {hasBeenPrevented: false, cancelable: false, target: t, type: 'streamCreated', stream: e, …}cancelable: falsehasBeenPrevented: falsereason: ""stream: e {isSubscribeToRemote: false, isLocalStreamReadyToPublish: false, isLocalStreamPublished: false, publishedOnce: false, harkSpeakingEnabled: false, …}target: t {userHandlerArrowHandler: WeakMap, ee: l, streamManagers: Array(1), remoteStreamsCreated: Map(1), remoteConnections: Map(1), …}type: "streamCreated"[[Prototype]]: e
main-es2015.8f3d93404a6063b9f714.js:1 streamCreated t {hasBeenPrevented: false, cancelable: false, target: t, type: 'streamCreated', stream: e, …}
main-es2015.8f3d93404a6063b9f714.js:1 Subscribing to ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main
main-es2015.8f3d93404a6063b9f714.js:1 New video element associated to t {userHandlerArrowHandler: WeakMap, ee: l, videos: Array(1), lazyLaunchVideoElementCreatedEvent: false, stream: e, …}
main-es2015.8f3d93404a6063b9f714.js:1 'Subscriber' (str_IPC_G0UH_ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main) successfully subscribed
main-es2015.8f3d93404a6063b9f714.js:1 Subscribed correctly to ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main
main-es2015.8f3d93404a6063b9f714.js:1 IceConnectionState of RTCPeerConnection 51d960e1-f8cf-46e5-a670-e898e0ab4560 (str_IPC_G0UH_ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main) change to "checking"
main-es2015.8f3d93404a6063b9f714.js:1 StreamManager of Stream str_IPC_G0UH_ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main (Subscriber) did not trigger "streamPlaying" event in 20000 ms
main-es2015.8f3d93404a6063b9f714.js:1 Event 'exception' triggered by 'Session' t {hasBeenPrevented: false, cancelable: false, target: t, type: 'exception', name: 'NO_STREAM_PLAYING_EVENT', …}
main-es2015.8f3d93404a6063b9f714.js:1 clientSession exception t {hasBeenPrevented: false, cancelable: false, target: t, type: 'exception', name: 'NO_STREAM_PLAYING_EVENT', …}
main-es2015.8f3d93404a6063b9f714.js:1 IceConnectionState of RTCPeerConnection 51d960e1-f8cf-46e5-a670-e898e0ab4560 (str_IPC_G0UH_ipc_IPCAM_rtsp_DMZT_10_232_4_80_554_h264Preview_01_main) change to "disconnected". Possible network disconnection
main-es2015.8f3d93404a6063b9f714.js:1 Event 'exception' triggered by 'Session' t {hasBeenPrevented: false, cancelable: false, target: t, type: 'exception', name: 'ICE_CONNECTION_DISCONNECTED', …}
main-es2015.8f3d93404a6063b9f714.js:1 clientSession exception t {hasBeenPrevented: false, cancelable: false, target: t, type: 'exception', name: 'ICE_CONNECTION_DISCONNECTED', …}