Default Video component features and functionality for React. #161
Closed
cjpillsbury
started this conversation in
Polls
Replies: 1 comment 1 reply
-
|
Proposal:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Default Video Component
TL;DR
We will support official components etc. for standard HLS, DASH, and natively supported media mime types, but we need to decide what the "default" component should be for
<Video/>- something simple and lightweight or something that comes with full support of (at least) these common media formats. The primary tradeoffs of each:Background
In our current Tech Preview implementation, just as a POC, the
<Video/>component is an interface-compliant wrapper around hls.js and also does not support mp4 playback. We also have a<SimpleVideo/>component, which just uses the<video/>tag under the hood. This status quo is obviously not what we're anticipating for any official releases (even alpha). However, we should figure out what we want the default<Video/>element to support and, conversely, how much code it should include (since small code footprints are among our top priorities with the new architecture).video.js currently ships vhs (dash + hls supporting tech) by default, which was an intentional decision and a change from prior version where it was an "opt-in" tech. This reduced discovery friction for common use cases, but also added additional weight to the code footprint.
Additional context that may be relevant
<VideoProvider/>will have support for the sorts of features that only make sense for HTTP Adaptive Streaming ("HAS") standards like HLS/DASH, e.g. different media tracks, different quality levels, live streaming, etc.<Video/>component will almost always be overkill for a particular use case (this is one of our central goals/motivations for the new architecture).5 votes ·
Beta Was this translation helpful? Give feedback.
All reactions