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: [#1557] TypeError: Cannot set property srcObject had only a getter #1560

Merged

Conversation

ewesemann
Copy link
Contributor

Changed the srcObject of the HTMLMediaElement to include a setter. See issue [#1557]. I came across this issue as well and thought it shouldn't be to bad to fix.

@ewesemann ewesemann requested a review from capricorn86 as a code owner October 6, 2024 21:34
@ewesemann
Copy link
Contributor Author

Looks like the failing unit test does so randomly when tested on my machine.

Copy link
Owner

@capricorn86 capricorn86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @ewesemann! ⭐

Sorry that it took such a long time to get this in.

I have added validation for if the object to be set is of type MediaStream as a commit.

@capricorn86 capricorn86 merged commit 32f7510 into capricorn86:master Nov 6, 2024
3 checks passed
@capricorn86
Copy link
Owner

Looks like the failing unit test does so randomly when tested on my machine.

There are some flaky tests that are based on timers. I'm trying to create a list of them and will hopefully fix it soon.

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