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

Fix #3 - Safari crashes when remote video tiles are added or toggled #1

Merged
merged 1 commit into from
Nov 25, 2019

Conversation

justindarc
Copy link
Contributor

This PR fixes an issue where Safari may crash and reload the page when remote video tiles are added or toggled.

Previously, when cleaning up a video tile, we would simply set videoElement.srcObject = null to end the MediaStream. However, this seems to invoke a crash in Safari where internally a NULL pointer is referenced. The solution is to remove all tracks from the <video> element's MediaStream before waiting until the next frame to set videoElement.srcObject = null.

@justindarc justindarc changed the title Fix Safari crash when adding or toggling remote video tiles Fix #3 - Safari crashes when remote video tiles are added or toggled Nov 25, 2019
@justindarc justindarc changed the title Fix #3 - Safari crashes when remote video tiles are added or toggled Fix Issue #3 - Safari crashes when remote video tiles are added or toggled Nov 25, 2019
@justindarc justindarc changed the title Fix Issue #3 - Safari crashes when remote video tiles are added or toggled Fix #3 - Safari crashes when remote video tiles are added or toggled Nov 25, 2019
@justindarc justindarc force-pushed the fix-safari-crash branch 2 times, most recently from 96a586a to 8e511bc Compare November 25, 2019 19:27
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

Successfully merging this pull request may close these issues.

2 participants