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

getting error while creating producer #4

Open
satishjkoladiya opened this issue Jan 27, 2023 · 1 comment
Open

getting error while creating producer #4

satishjkoladiya opened this issue Jan 27, 2023 · 1 comment

Comments

@satishjkoladiya
Copy link

Unexpected error: unknown(Error Domain=MediasoupClientErrorDomain Code=3 "The associated promise has been destructed prior to the associated state becoming ready." UserInfo={NSLocalizedDescription=The associated promise has been destructed prior to the associated state becoming ready.}).

@fedulvtubudul
Copy link
Collaborator

fedulvtubudul commented Feb 9, 2023

Most probably it's one of the next:

  1. Calling createProducer(...) from arbitrary thread (you must make all calls to Device / Transports / Producers / Consumers from the same dedicated thread / serial queue)

  2. onProduce method implemented incorrectly. This method MUST call it's callback either with nil parameter in case of an error, or with producer id value provided by your media server via signaling mechanism. In this case you must hold the callback until signaling is finished and call the callback on main thread passing producerId provided by your media server.

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