Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to Video chat only first time #6

Open
sidchoudhary opened this issue Jan 11, 2017 · 11 comments
Open

Able to Video chat only first time #6

sidchoudhary opened this issue Jan 11, 2017 · 11 comments

Comments

@sidchoudhary
Copy link

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
Copy link
Owner

mslosarz commented Jan 11, 2017 via email

@sidchoudhary
Copy link
Author

sidchoudhary commented Jan 11, 2017

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: SESSION_CLOSED (Optional[org.nextrtc.signalingserver.api.NextRTCEvents$$Lambda$35/396246759@12a35f65]) <- Optional.empty -> (Optional.empty)
Hibernate:
select
member0_.member_id as member_i1_2_,
member0_.connected as connecte2_2_,
member0_.disconnected as disconne3_2_,
member0_.left_reason as left_rea4_2_,
member0_.member_rtc_id as member_r5_2_,
member0_.user_id as user_id6_2_
from
Members member0_
where
member0_.member_rtc_id=?
Hibernate:
select
user0_.user_id as user_id1_3_0_,
user0_.auth_provider_id as auth_pro2_3_0_,
user0_.confirmation_key as confirma3_3_0_,
user0_.confirmed as confirme4_3_0_,
user0_.email as email5_3_0_,
user0_.password as password6_3_0_,
user0_.role as role7_3_0_,
user0_.username as username8_3_0_
from
Users user0_
where
user0_.user_id=?
Hibernate:
select
connection0_.id as id1_0_3_,
connection0_.begin as begin2_0_3_,
connection0_.closed as closed3_0_3_,
connection0_.conversation_id as conversa5_0_3_,
connection0_.member_id as member_i6_0_3_,
connection0_.took as took4_0_3_,
conversati1_.conversation_id as conversa1_1_0_,
conversati1_.conversation_name as conversa2_1_0_,
conversati1_.created as created3_1_0_,
conversati1_.destroyed as destroye4_1_0_,
member2_.member_id as member_i1_2_1_,
member2_.connected as connecte2_2_1_,
member2_.disconnected as disconne3_2_1_,
member2_.left_reason as left_rea4_2_1_,
member2_.member_rtc_id as member_r5_2_1_,
member2_.user_id as user_id6_2_1_,
user3_.user_id as user_id1_3_2_,
user3_.auth_provider_id as auth_pro2_3_2_,
user3_.confirmation_key as confirma3_3_2_,
user3_.confirmed as confirme4_3_2_,
user3_.email as email5_3_2_,
user3_.password as password6_3_2_,
user3_.role as role7_3_2_,
user3_.username as username8_3_2_
from
Connections connection0_
left outer join
Conversations conversati1_
on connection0_.conversation_id=conversati1_.conversation_id
left outer join
Members member2_
on connection0_.member_id=member2_.member_id
left outer join
Users user3_
on member2_.user_id=user3_.user_id
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
Copy link
Author

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
Copy link
Owner

mslosarz commented Jan 11, 2017 via email

@sidchoudhary
Copy link
Author

Hello, Any update ?

@mslosarz
Copy link
Owner

mslosarz commented Feb 10, 2017 via email

@sidchoudhary
Copy link
Author

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

@mslosarz
Copy link
Owner

mslosarz commented Feb 14, 2017 via email

@sidchoudhary
Copy link
Author

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
Copy link
Owner

mslosarz commented Feb 22, 2017 via email

@mslosarz
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants