WebRTC input failed #1173
-
Hello everyone, After installing, then launch the index.html with google chrome. I gave the it the camera and mic permission. The video is on but I can't get the output stream. I tried all possible ways with URL
I can see the video on index.html but actually it is not streaming. I inspect (right click -> inspect), I see the error: 'webSocket.onerror Event {isTrusted: true, type: 'error', target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}isTrusted: truebubbles: falsecancelBubble: falsecancelable: falsecomposed: falsecurrentTarget: WebSocket {url: 'ws://192.168.0.19:3333/app/stream?direction=send&transport=tcp', readyState: 3, bufferedAmount: 0, onopen: ƒ, onerror: ƒ, …}defaultPrevented: falseeventPhase: 0returnValue: truesrcElement: WebSocket {url: 'ws://192.168.0.19:3333/app/stream?direction=send&transport=tcp', readyState: 3, bufferedAmount: 0, onopen: ƒ, onerror: ƒ, …}target: WebSocket {url: 'ws://192.168.0.19:3333/app/stream?direction=send&transport=tcp', readyState: 3, bufferedAmount: 0, onopen: ƒ, onerror: ƒ, …}timeStamp: 4646.200000047684type: "error"[[Prototype]]: Event' I got the same error when using the URL ( change in the index.html ): I also check on https://demo.ovenplayer.com/ for input URL and output I tried all possible ways but can't see any output stream.
Any suggestion is greatly appreciated. Thank you ### UPDATE 1: I tried to change the port from 3333 to 3334 , the input URL becomes
`` `OvenLiveKit.js : Received Media Stream From Input Device MediaStreamactive: trueid: "42325d48-a3f2-4b16-b97e-1cda7276d0e0"onactive: nullonaddtrack: nulloninactive: nullonremovetrack: null[[Prototype]]: MediaStreamactive: (...)addTrack: ƒ addTrack()clone: ƒ clone()getAudioTracks: ƒ getAudioTracks()getTrackById: ƒ getTrackById()getTracks: ƒ getTracks()getVideoTracks: ƒ getVideoTracks()id: (...)onactive: (...)onaddtrack: (...)oninactive: (...)onremovetrack: (...)removeTrack: ƒ removeTrack()constructor: ƒ MediaStream()Symbol(Symbol.toStringTag): "MediaStream"get active: ƒ active()get id: ƒ id()get onactive: ƒ onactive()set onactive: ƒ onactive()get onaddtrack: ƒ onaddtrack()set onaddtrack: ƒ onaddtrack()get oninactive: ƒ oninactive()set oninactive: ƒ oninactive()get onremovetrack: ƒ onremovetrack()set onremovetrack: ƒ onremovetrack()[[Prototype]]: EventTarget v=0 OvenLiveKit.js:628 OvenLiveKit.js : Modified answer sdp v=0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
WebRTC device access can only be done from a Secured URL. That is, it must be an https site where the certificate is installed, such as https://demo.ovenplayer.com/demo_input.html . At this time, since the browser does not allow mixed content, OME must use the wss URL. Your wss url is the same as ws url with port 3333. TLSPort is probably 3334 if you are using the default settings. Did you install the certificate? When posting a question, uploading your Server.xml and ovenmediaengine.log files will save our energy. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your quick reply. Thank you so much. It's running now. |
Beta Was this translation helpful? Give feedback.
WebRTC device access can only be done from a Secured URL. That is, it must be an https site where the certificate is installed, such as https://demo.ovenplayer.com/demo_input.html .
At this time, since the browser does not allow mixed content, OME must use the wss URL.
Your wss url is the same as ws url with port 3333. TLSPort is probably 3334 if you are using the default settings. Did you install the certificate?
When posting a question, uploading your Server.xml and ovenmediaengine.log files will save our energy.