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

[1.x] About janus.js websocket pattern send keepalive message #3490

Closed
DividingLine opened this issue Dec 12, 2024 · 3 comments
Closed

[1.x] About janus.js websocket pattern send keepalive message #3490

DividingLine opened this issue Dec 12, 2024 · 3 comments
Labels
multistream Related to Janus 1.x

Comments

@DividingLine
Copy link

Hello, esteemed Creator! Regarding the use of the 'janus.plugin.sip' plugin in janus.js, when the browser's memory allocation is insufficient or the browser is running in the background, the current page may freeze, causing the keepalive messages to gradually slow down and eventually stop sending. However, the SIP status remains registered.

I would like to ask if it is appropriate to use document.addEventListener('visibilitychange') to monitor visibility changes and proactively send a keepalive message, or if you have any better solutions.

@DividingLine DividingLine added the multistream Related to Janus 1.x label Dec 12, 2024
@DividingLine
Copy link
Author

WechatIMG386 In this way

@DividingLine
Copy link
Author

I found the issue: it's because I have two media servers. Media server A notifies me of an incoming call, but when I call "answer," the request is sent to media server B. I don't know why the receiving and sending media servers are different. I'm using WebSocket, and it should only connect to one media server, right? This is really troubling me. Could you please share any ideas or suggestions to help me with this?

@lminiero
Copy link
Member

Please discuss this on our group, as this doesn't sound like a code issue (which is the only thing we use github for).

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

No branches or pull requests

2 participants