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

How do you stop a Publisher that is not published to a session? #205

Closed
derekpitts28 opened this issue Jan 4, 2024 · 2 comments
Closed

Comments

@derekpitts28
Copy link

derekpitts28 commented Jan 4, 2024

In our use case we create a publisher that shows a preview of the users camera to the user BEFORE connecting to the session. Currently i see no way to 'stop' the publisher. The android SDK has an onStop call that stops the camera but there is no such call in the iOS SDK.

@goncalocostamendes
Copy link
Contributor

@derekpitts28 the best way to stop the camera while on preview is to simply call [_publisher setPublishVideo:false]; which will stop the video and release the capturer. To display it simply call [_publisher setPublishVideo:true];

@goncalocostamendes
Copy link
Contributor

@derekpitts28 I hope your doubt was cleared. I've also answered the same question on your Android and iOS sample repos. I will close the ticket. If you still have any doubts, please let me know

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