-
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
Name techs #1786
Comments
I'm not following. Can you give an example? |
If you print out a tech in the console, it's |
player.tech.name() // using non-minified videojs
// null
player.bigPlayButton.name()
// "bigPlayButton" Would be nicer if we got: player.tech.name() // using non-minified videojs
// "Tech html5" instead. |
Are you saying specifically give all tech names like "Tech html5", or that in the case where a tech name is null, the name would be "Tech [nothing]"? The component names are used for option setting and parent object references, so I don't know if we want to be prefixing the names.
Could we just make sure the name property gets set for techs? |
yeah, even if name returns 'tech' that give me a lot more info. I was debugging an issue earlier where a tech had no associated |
Cool. I think because of the point about how the name is used, adding a name to the techs by default would be the best approach. e.g.
|
This helps with debugging to know what a component's name is. We try to look up the tech's name via the constructor's name property, otherwise, we set it to 'Unknown Tech'. Can be overridden by setting `this.name_` after calling `super()` in the constructor. Fixes videojs#1786.
This helps with debugging to know what a component's name is. We try to look up the tech's name via the constructor's name property, otherwise, we set it to 'Unknown Tech'. Can be overridden by setting `this.name_` after calling `super()` in the constructor. Fixes #1786.
It'll be very helpful if tech components were named as such:
"Tech {{tech name}}"
. It'll make debugging easier when you just have a component with a name property set to null.The text was updated successfully, but these errors were encountered: