-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 access of mediaSrc value #6611
Fix access of mediaSrc value #6611
Conversation
Hello, @robwalch. Is it possible to add this patch to a new version |
Please open a PR against the "patch/v1.5.x" branch. The latest release is v1.5.13 so that would get merged and released at v1.5.14. Consider that there may be integrations or platforms where querySelector is not a method available on the object attached (not an actual HTMLMediaElement but an object with a src property). |
a12a6b5
to
ac1c666
Compare
I'll need to update it again, the new implementation brings back the problem that I've reported. |
ac1c666
to
0013621
Compare
I updated and added a check to ensure that I don't know if there is a scenario where the |
13301b4
to
764551a
Compare
Co-authored-by: Jhonatan Cavalcanti <[email protected]>
Thank you for the fix. This has been released in v1.5.14 and merged into dev. |
This PR will...
Fix the access to retrieve the
src
value from current media.The problem happens when there is a video element child which is not a
source
element. Other children could betrack
or any other element.Now, instead of retrieving the
src
fromfirstChild
, it is retrieved from thesource
element if it exists.Why is this Pull Request needed?
The cleanup when detaching media is being skipped and an error is wrongly logged due to this problem.
Are there any points in the code the reviewer needs to double check?
Resolves issues:
Checklist