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

TypeError: Cannot read properties of null (reading 'srcObject') #11

Closed
JayCabasag opened this issue Feb 26, 2023 · 2 comments · Fixed by #23
Closed

TypeError: Cannot read properties of null (reading 'srcObject') #11

JayCabasag opened this issue Feb 26, 2023 · 2 comments · Fixed by #23
Assignees
Labels
bug Something isn't working

Comments

@JayCabasag
Copy link

This happens when using the hook inside a component, in my case its a 'react-modal',
What happen is when user opens the modal and close it without letting the video streaming started yet, this error will occur.

@adamalfredsson adamalfredsson added the bug Something isn't working label Mar 20, 2023
@adamalfredsson adamalfredsson self-assigned this Aug 15, 2023
@adamalfredsson
Copy link
Owner

Could you provide any reproduction of this? I'm trying to replicate it by mounting and unmounting the video ref, but I'm not seeing this error.

@adamalfredsson adamalfredsson added question Further information is requested and removed question Further information is requested labels Aug 16, 2023
@adamalfredsson
Copy link
Owner

Ah, I see it now. It happens when unmounting while or after requesting permissions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants