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

Stop function does not work as expected in React Native SDK #6190

Closed
yashtandon113 opened this issue Mar 18, 2024 · 2 comments
Closed

Stop function does not work as expected in React Native SDK #6190

yashtandon113 opened this issue Mar 18, 2024 · 2 comments
Assignees
Labels

Comments

@yashtandon113
Copy link
Contributor

Short description

Despite calling the adaptor.stop function to terminate the connection, I am still encountering errors in the callback error handler.

Steps to reproduce

  1. Start publishing by calling adaptor.publish(roomId)
  2. Stop publishing by calling adaptor.stop(roomId)
  3. But after stopping, the callback error keeps throwing errors for that room.

###Expected behavior
Once the host stops the broadcast, the callback should also stop.

###Actual behavior
Once the app starts the broadcast, then the host stops the broadcast, and then we use the below code:
adaptor.stop(roomId);

But after this, the callback always throws an error:

callbackError >> no_active_streams_in_room {"command": "error", "definition": "no_active_streams_in_room", "room": "65f1a02a1980acedde5e4721"}

It uses a lot of memory and batteries. It is also causing app crashes.

@mustafaboleken mustafaboleken self-assigned this Mar 19, 2024
@mustafaboleken mustafaboleken moved this to 🔖 Sprint in Ant Media Server Mar 19, 2024
@mustafaboleken mustafaboleken moved this from 🔖 Sprint to 🏗 In progress in Ant Media Server Mar 21, 2024
@MaZZly
Copy link

MaZZly commented Mar 22, 2024

This might be related to "Problem 2" from #4071 (comment)

@mustafaboleken
Copy link
Contributor

Hi @MaZZly
It can be. I will work on React Native at the weekend. I hope these issues will solved until Monday :)

@burak-58 burak-58 moved this from 🏗 In progress to ✅ Done in Ant Media Server Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

4 participants