You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I love the way techs need to conform to the HTML5 video element spec to participate with video.js.
One suggestion I have however is to expose all properties found in the HTML spec through the main video.js object to avoid making developers call them through the tech object. For example, audioTracks is part of the video element spec, but to access it today you must call player.tech.audioTracks(). This is very minor but I thought I'd mention it since it could make it a little easier on developers by not requiring them to know which APIs are plumbed all the way to the top level and which are not.
Original Title: Plumb through all tech properties defined in HTML5 video element
The text was updated successfully, but these errors were encountered:
Thanks Tim! We do try to discourage developers from accessing the tech directly, but that's obviously not possible if we don't support the needed property/method. We have a milestone for 100% Spec Coverage that I'll add this to, specifically for audio/video tracks.
There's a bit of a challenge around API properties that we can't also support easily through Flash, like playbackRate and audio/video tracks, but we need to find a better way to handle those cases, rather than just limiting what the html5 and other techs can provide.
If you'd be interested in putting together a pull request to add the tracks properties to the player API, please feel free. It hopefully shouldn't be too hard to follow the pattern of the existing API methods.
First, I love the way techs need to conform to the HTML5 video element spec to participate with video.js.
One suggestion I have however is to expose all properties found in the HTML spec through the main video.js object to avoid making developers call them through the tech object. For example, audioTracks is part of the video element spec, but to access it today you must call player.tech.audioTracks(). This is very minor but I thought I'd mention it since it could make it a little easier on developers by not requiring them to know which APIs are plumbed all the way to the top level and which are not.
Original Title: Plumb through all tech properties defined in HTML5 video element
The text was updated successfully, but these errors were encountered: