-
Notifications
You must be signed in to change notification settings - Fork 3
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
VHS-NEXT RFC #3
base: main
Are you sure you want to change the base?
VHS-NEXT RFC #3
Conversation
Hi, great writeup. 👍 Very exhaustive on the feature set. I have a few questions/comments that hopefully are helpful. Where does something like a "youtube tech" fit into this equation? I know of VHS as a tech/source handler, but this rewrite has it owning the "playback" namespace, which in current video.js land is more than just hls/dash. Related, the term "player" is pretty overloaded and could lead to some confusion in this. I'd suggest finding a more specific word where you can. Like "player engine" if we're talking about an HLS.js shaped tool. Otherwise, for the API design, if this is a major change, I think it'd be great to switch to javascript setters and getters for the API. e.g. Happy to jump on call if you want to talk through any of this IRL. |
Hi @heff
After briefly reviewing the YouTube tech source code, I noticed it does not own playback and is just an adapter for the YT Player iframe embed. We can think about such integrations (such as "youtube tech") in the next major videojs RFC.
Answering this question, I think it is more inclined to this space:
Ultimately (with
Yeah, good call, I will remove
That is a good point.
Yeah, the API outlined in this doc is a very high-level example and does not reflect the final decision. Moreover, I've already altered several API aspects in the source code. However, I want to note that we do not strive to mimic video element API. Regarding getters and setters. I don't have strong preferences here, but I would generally agree. However, here is a list of DX-related points where I would prefer methods over getters and setters:
|
Use the following URL to preview the md file with the RFC proposal:
https://github.com/videojs/rfcs/blob/vhs-next-rfc/proposals/0003-vhs-next.md