Closed jhavishal10 closed 5 years ago
You should use your self ws server
i don't have any ws server is their any way to test the app i just want to test the app so that i can get what the functionality it is providing and how it works thanks in advance
The feature just for janus video room
Yes I want to use that video room in my project please help to run this project
Read some from https://janus.conf.meetecho.com/videoroomtest.js
hey, i read the docs which u provided , i am still very confused ....? and need ur help can i use my localhost as server and provide the op address as the link in that mWebSocketChannel.initConnection("ws://" + "192.168.1.1" + ":8188");
somewhat like this but i tried this too it is showing an error of onFailurejava.net.SocketTimeoutException: connect timed out and one more error i am facing is of open sl es that is like this my phone model is blacklisted for OpenSL ES usage!
hey i got a url for turn server where i can create connection and i got a username and password for that too which is like PeerConnection.IceServer iceServer = new PeerConnection.IceServer("turn:turn.loola.tv:80?transport=tcp", "janususer", "janupswd");
but still i am cofused what to write in websocket ???
if i have to put their my local server url then i think i have to put some javascript file which will pass those values to server
The iceserver just turn server, but you need some message to janus server, so try use websocket on you janus, see https://github.com/meetecho/janus-gateway/blob/master/transports/janus_websockets.c
this app is making a video call but between whom two phones or between a phone and a browser or what ?? do u have any app running screenshots please post it here with logcat
hey i run it on two Android devices connected with same wifi network and made my self ws server using XAMPP and then i am facing and error like this
failed to connect to /192.168.1.226 (port 8188) from /192.168.1.223 (port 33158) after 10000ms
and this is my code which i used ... mWebSocketChannel.initConnection("ws://192.168.1.226:8188"); PeerConnection.IceServer iceServer = new PeerConnection.IceServer("turn:192.168.1.226:3478", "janususer", "janupswd"); will u please help me to resolve this error .
You should deploy yourself janus gateway, use it's websocket plugin
now i used my own janus gateway using it's websocket plugin but after installing logcat is showing this......
2019-04-08 16:25:17.337 4800-4969/in.minewave.janusvideoroom E/org.webrtc.Logging: WebRtcAudioManager: SM-G615F is blacklisted for OpenSL ES usage! 2019-04-08 16:25:17.338 4800-4969/in.minewave.janusvideoroom E/org.webrtc.Logging: WebRtcAudioManager: SM-G615F is blacklisted for OpenSL ES usage! 2019-04-08 16:25:18.787 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onOpen 2019-04-08 16:25:19.078 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:19.078 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "success", "transaction": "BXNRx6cw83HM", "data": { "id": 8681115041421030 } } 2019-04-08 16:25:19.653 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:19.653 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "ack", "session_id": 8681115041421030, "transaction": "cSep9SXZNIIg" } 2019-04-08 16:25:19.654 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: Just an ack 2019-04-08 16:25:19.655 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:19.655 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "success", "session_id": 8681115041421030, "transaction": "Ytvopxu9QNE6", "data": { "id": 7515228087851720 } } 2019-04-08 16:25:19.972 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:19.972 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "ack", "session_id": 8681115041421030, "transaction": "xi5a3JFo2qqX" } 2019-04-08 16:25:19.974 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: Just an ack 2019-04-08 16:25:19.974 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:19.974 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "event", "session_id": 8681115041421030, "transaction": "xi5a3JFo2qqX", "sender": 7515228087851720, "plugindata": { "plugin": "janus.plugin.videoroom", "data": { "videoroom": "joined", "room": 1234, "description": "Demo Room", "id": 2429114399112025, "private_id": 829893296, "publishers": [] } } } 2019-04-08 16:25:20.217 4800-4970/in.minewave.janusvideoroom E/PCRTCClient: SDP on create success 2019-04-08 16:25:20.341 4800-4959/in.minewave.janusvideoroom E/MainActivity: OFFER 2019-04-08 16:25:20.712 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:20.713 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "ack", "session_id": 8681115041421030, "transaction": "9UXAKKFs2hPg" } 2019-04-08 16:25:20.714 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: Just an ack 2019-04-08 16:25:20.814 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:20.815 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "event", "session_id": 8681115041421030, "transaction": "9UXAKKFs2hPg", "sender": 7515228087851720, "plugindata": { "plugin": "janus.plugin.videoroom", "data": { "videoroom": "event", "room": 1234, "configured": "ok", "audio_codec": "opus", "video_codec": "vp8" } }, "jsep": { "type": "answer", "sdp": "v=0\r\no=- 3867205472535080954 2 IN IP4 35.178.39.126\r\ns=VideoRoom 1234\r\nt=0 0\r\na=group:BUNDLE audio video\r\na=msid-semantic: WMS janus\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 35.178.39.126\r\na=recvonly\r\na=mid:audio\r\na=rtcp-mux\r\na=ice-ufrag:56NO\r\na=ice-pwd:Lar5KLR9/muEJe9VZU8Khh\r\na=ice-options:trickle\r\na=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38\r\na=setup:active\r\na=rtpmap:111 opus/48000/2\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=candidate:1 1 udp 2013266431 35.178.39.126 52605 typ host\r\na=candidate:2 1 udp 1677722111 35.178.39.126 52605 typ srflx raddr 172.31.25.96 rport 52605\r\na=end-of-candidates\r\nm=video 9 UDP/TLS/RTP/SAVPF 96\r\nc=IN IP4 35.178.39.126\r\na=recvonly\r\na=mid:video\r\na=rtcp-mux\r\na=ice-ufrag:56NO\r\na=ice-pwd:Lar5KLR9/muEJe9VZU8Khh\r\na=ice-options:trickle\r\na=fingerprint:sha-256 D2:B9:31:8F:DF:24:D8:0E:ED:D2:EF:25:9E:AF:6F:B8:34:AE:53:9C:E6:F3:8F:F2:64:15:FA:E8:7F:53:2D:38\r\na=setup:active\r\na=rtpmap:96 VP8/90000\r\na=rtcp-fb:96 ccm fir\r\na=rtcp-fb:96 nack\r\na=rtcp-fb:96 nack pli\r\na=rtcp-fb:96 goog-remb\r\na=rtcp-fb:96 transport-cc\r\na=extmap:4 urn:3gpp:video-orientation\r\na=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay\r\na=candidate:1 1 udp 2013266431 35.178.39.126 52605 typ host\r\na=candidate:2 1 udp 1677722111 35.178.39.126 52605 typ srflx raddr 172.31.25.96 rport 52605\r\na=end-of-candidates\r\n" } } 2019-04-08 16:25:49.411 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:25:49.412 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "ack", "session_id": 8681115041421030, "transaction": "vBCuAJFpyZrV" } 2019-04-08 16:25:49.412 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: Just an ack 2019-04-08 16:26:19.574 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:26:19.575 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "ack", "session_id": 8681115041421030, "transaction": "3yB2gNts2Ndt" } 2019-04-08 16:26:19.584 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: Just an ack 2019-04-08 16:26:49.625 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage 2019-04-08 16:26:49.625 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: onMessage{ "janus": "ack", "session_id": 8681115041421030, "transaction": "XlEHLZGn6hEj" } 2019-04-08 16:26:49.627 4800-4936/in.minewave.janusvideoroom E/WebSocketChannel: Just an ack
please help me i had spend more than a month on ur project
It's worked from the log, WebRtcAudioManager: SM-G615F is blacklisted for OpenSL ES usage!
the log from webrtc library, so you can use other device test
The code is following the janus video room API like javascript API
i had used more than 5 devices all are showing the same error of openSL ES usage error
i lives in india and i think most of the phones here restrict this usage
it is showing something like this in my emulator but nit working in my real device
Give me your ws address? the emulator can not work because it's no camera
mWebSocketChannel.initConnection("wss://dev.loola.tv/janus-ws-janus-protocol");
PeerConnection.IceServer iceServer = new PeerConnection.IceServer("stun:turn.loola.tv:80", "janususer", "janupswd");
how can I make it to work with real devices
it started working with real devices too but I am not able to see remote vedio for that should I have to open my remote server whose links I had used ??
Are you have remote video on same room?
BTW, you should use turn server, not stun
PeerConnection.IceServer iceServer = new PeerConnection.IceServer("stun:turn.loola.tv:80", "janususer", "janupswd");
what i have to write in the mWebSocketChannel.initConnection("ws://xxx:xxx");
because this is showing an error..