-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
keep consistent video ID regardless the method executed #5411
keep consistent video ID regardless the method executed #5411
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
I narrowed down to https://github.com/videojs/video.js/blob/master/src/js/player.js#L948 and I'll be happy to create a PR I just need confirmation to: changing this line is the way to go? |
Hm, I believe they should be the same, although @gkatsev will need to chime in on this one. If they are supposed to match, the fix will depend on whether it should be uppercase or lowercase. If it should be lowercase, the fix will be changing |
Looks like line 623 is older, so it should be considered correct - so, lower-case. Really, I think line 948 should be using Ideally, these would be unified into a single function - maybe a static method on the @alecsgone A PR would be very welcome here! 😄 |
Yeah, it should be |
Change the constant used in the techId prop to the camelCased version, this will result on consistent id when loadTech_() is executed. Fixes #5411
Prevent video.js from throwing errors when reloading the tech a after using reset(). This was already fixed for version 7 here: videojs#5415 Fixes videojs#5411
Description
The ID of the video instance changes after
reset()
, is a small change but it should be consistent.https://jsbin.com/fisoyabuve/edit?html,console,output
Steps to reproduce
Results
Expected
if not the inial class of the video tag a consistent all lowercase id
Actual
it Capitalizes the previously lowercase
tech
Additional Information
versions
videojs 7.0
browsers all
OSes all
plugins none
The text was updated successfully, but these errors were encountered: