mslosarz / nextrtc-videochat-with-rest

Application with spring security, spring rest, spring jpa to show how to use NextRTC signaling server with existing application (treat it like prototype!)
https://restvideochat.nextrtc.org/
MIT License
15 stars 16 forks source link

Able to Video chat only first time #6

Open sidchoudhary opened 7 years ago

sidchoudhary commented 7 years ago

When i freshly start server then only I am able to connect through my mobile and laptop, after subsequent login video chat stop working and not able to stream video on both client.

Please suggest what should I do.

mslosarz commented 7 years ago

Hello :)

Please provides server side and client side logs

Best regards

2017-01-11 10:26 GMT+01:00 sidchoudhary notifications@github.com:

When i freshly start server then only I am able to connect through my mobile and laptop, after subsequent login video chat stop working and not able to stream video on both client.

Please suggest what should I do.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-videochat-with-rest/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRdo3IPospsbc9_V82dJKoFJwKdfjks5rRKBcgaJpZM4LgW6f .

-- Marcin Ślósarz

sidchoudhary commented 7 years ago

2017-01-11 17:31:14 INFO NextRTCEndpoint:35 - Handling message from: 1 2017-01-11 17:31:16 INFO Server:42 - Incoming: (1 -> null)[join]: 9999 |{type=} 2017-01-11 17:31:20 INFO NextRTCEndpoint:47 - Occured exception for session: 1 2017-01-11 17:31:20 ERROR NextRTCEndpoint:48 - Signaling Exception (CODE: 0103) 0103: CONVERSATION_NOT_FOUND [] 2017-01-11 17:31:20 INFO NextRTCEventBus:22 - POSTED EVENT: UNEXPECTED_SITUATION (Optional[org.nextrtc.signalingserver.api.NextRTCEvents$$Lambda$35/396246759@31e102fc]) <- Optional.empty -> (Optional.empty) 2017-01-11 17:31:20 ERROR ExceptionHandler:19 - UNEXPECTED_SITUATION (Optional[org.nextrtc.signalingserver.api.NextRTCEvents$$Lambda$35/396246759@31e102fc]) <- Optional.empty -> (Optional.empty) 2017-01-11 17:32:37 INFO NextRTCEndpoint:41 - Closing: 1 with reason: An unrecoverable IOException occurred so the connection was closed 2017-01-11 17:32:37 INFO NextRTCEventBus:22 - POSTED EVENT: SESSIONCLOSED (Optional[org.nextrtc.signalingserver.api.NextRTCEvents$$Lambda$35/396246759@12a35f65]) <- Optional.empty -> (Optional.empty) Hibernate: select member0.member_id as member_i12, member0_.connected as connecte22, member0_.disconnected as disconne32, member0_.left_reason as left_rea42, member0_.member_rtc_id as member_r52, member0_.user_id as user_id62 from Members member0 where member0.member_rtcid=? Hibernate: select user0.user_id as user_id1_30, user0_.auth_provider_id as auth_pro2_30, user0_.confirmation_key as confirma3_30, user0_.confirmed as confirme4_30, user0_.email as email5_30, user0_.password as password6_30, user0_.role as role7_30, user0_.username as username8_30 from Users user0 where user0.userid=? Hibernate: select connection0.id as id1_03, connection0_.begin as begin2_03, connection0_.closed as closed3_03, connection0_.conversation_id as conversa5_03, connection0_.member_id as member_i6_03, connection0_.took as took4_03, conversati1_.conversation_id as conversa1_10, conversati1_.conversation_name as conversa2_10, conversati1_.created as created3_10, conversati1_.destroyed as destroye4_10, member2_.member_id as member_i1_21, member2_.connected as connecte2_21, member2_.disconnected as disconne3_21, member2_.left_reason as left_rea4_21, member2_.member_rtc_id as member_r5_21, member2_.user_id as user_id6_21, user3_.user_id as user_id1_32, user3_.auth_provider_id as auth_pro2_32, user3_.confirmation_key as confirma3_32, user3_.confirmed as confirme4_32, user3_.email as email5_32, user3_.password as password6_32, user3_.role as role7_32, user3_.username as username8_32 from Connections connection0 left outer join Conversations conversati1 on connection0_.conversationid=conversati1.conversationid left outer join Members member2 on connection0_.memberid=member2.memberid left outer join Users user3 on member2_.userid=user3.userid where connection0.member_id=? Hibernate: update Members set connected=?, disconnected=?, left_reason=?, member_rtc_id=?, user_id=? where member_id=? 2017-01-11 17:32:39 INFO NextRTCEndpoint:47 - Occured exception for session: 1 2017-01-11 17:32:39 ERROR NextRTCEndpoint:48 - java.io.EOFException 2017-01-11 17:32:39 INFO NextRTCEventBus:22 - POSTED EVENT: UNEXPECTED_SITUATION (Optional[org.nextrtc.signalingserver.api.NextRTCEvents$$Lambda$35/396246759@59595970]) <- Optional.empty -> (Optional.empty) 2017-01-11 17:32:39 ERROR ExceptionHandler:19 - UNEXPECTED_SITUATION (Optional[org.nextrtc.signalingserver.api.NextRTCEvents$$Lambda$35/396246759@59595970]) <- Optional.empty -> (Optional.empty)

On client side I get only this.

On client side I get only this.

It is highly recommended to override method NextRTC.onReady nextRTC.js:51 channel ready 72nextRTC.js:45 res: {"from":"","to":"2","signal":"ping","content":"","custom":{}}

Also what I observed that, when connection does not establish, execution does not come in onMessage of NextRTCEndpoint

sidchoudhary commented 7 years ago

Thanks for the quick response 👍 and thanks for providing this implementation. You saved a lot of time

This happens only when i try to join conversation, sometimes it works but most of the time i get this error.

mslosarz commented 7 years ago

Thanks for details I'll look into it today or tomorrow (I have to push my previous changes connected with improvement in JOIN/CREATE and improvements in logging)

2017-01-11 13:13 GMT+01:00 sidchoudhary notifications@github.com:

On client side I get only this.

It is highly recommended to override method NextRTC.onReady nextRTC.js:51 channel ready 72nextRTC.js:45 res: {"from":"","to":"2","signal":" ping","content":"","custom":{}}

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-videochat-with-rest/issues/6#issuecomment-271853672, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysReQA_b9S6i8dCtrcM3NzIlJOHVMxks5rRMdlgaJpZM4LgW6f .

-- Marcin Ślósarz

sidchoudhary commented 7 years ago

Hello, Any update ?

mslosarz commented 7 years ago

Please use version 0.0.5. (And set logging level to debug)

Best regards

2017-02-10 11:24 GMT+01:00 sidchoudhary notifications@github.com:

Hello, Any update ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-videochat-with-rest/issues/6#issuecomment-278908697, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRbID1xvgtcKH_B6B5H-DFrOLwhq3ks5rbDrQgaJpZM4LgW6f .

-- Marcin Ślósarz

sidchoudhary commented 7 years ago

Sorry I did not get which version you are talking about ?

mslosarz commented 7 years ago

nextrtc-videochat-with-rest is using nextrtc-signaling-server in version 0.0.4, please update it to 0.0.5. I made following changes in new version ( https://nextrtc.org/archives/129). Those changes might resolve your problem.

Best regards

2017-02-14 10:47 GMT+01:00 sidchoudhary notifications@github.com:

Sorry I did not get which version you are talking about ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-videochat-with-rest/issues/6#issuecomment-279659126, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRS3yz64mBHYQBo4_xoDjqmQwlifBks5rcXhDgaJpZM4LgW6f .

-- Marcin Ślósarz

sidchoudhary commented 7 years ago

Tried as you suggested. But now I am not even able to chat, I think there is some problem with Signalling server. Not able to video chat. Here are few details of what I am doing.

I just setup the project in Eclipse ran it, then after using browser I hit https://localhost:8433 and http://(my IP address):8433 from mobile browser.

Then i start conversation using any of the browser after login and nothing happens.

Please help to resolve my problem as I am new to server side.

mslosarz commented 7 years ago

Hello

I'm sorry for late response, but I had other commitment to do. Now I'll focus on issue described by you. Please be patient.

Best regards

2017-02-20 13:06 GMT+01:00 sidchoudhary notifications@github.com:

Tried as you suggested. But now I am not even able to chat, I think there is some problem with Signalling server. Not able to video chat. Here are few details of what I am doing.

I just setup the project in Eclipse ran it, then after using browser I hit https://localhost:8433 and http://(my IP address):8433 from mobile browser.

Then i start conversation using any of the browser after login and nothing happens.

Please help to resolve my problem as I am new to server side.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mslosarz/nextrtc-videochat-with-rest/issues/6#issuecomment-281062716, or mute the thread https://github.com/notifications/unsubscribe-auth/ADysRfLFLT51wBNB5J8up93ELJXSHvFGks5reYGwgaJpZM4LgW6f .

-- Marcin Ślósarz

mslosarz commented 7 years ago

Please update your videochat-with-rest to latest version. I've made some small fixes and how issues described by you shouldn't appear