Skip to content

Conversation

bustardcelly
Copy link
Contributor

  • clear out mediatracks on unpublish in camera select examples.

@bustardcelly
Copy link
Contributor Author

The issue was that the MediaTrack for the camera was not being properly cleared on some Mobile Device + Browsers.

Upon unpublish (which is invoked when switching cameras and starting a new broadcast), I added code to remove the previous MediaTrack and srcObject on the video element. Seems to have fixed the issue.

Tests affected:

  • Publish - Camera Source (WebRTC)
  • Publish - Stream Manager Proxy w/ Camera

Base automatically changed from develop to master May 17, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants