-
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
Source Handler Options #2616
Comments
Look forward to the Source Handler options. This should address our issue: |
Any chance we can get #2616 and #2617 into 5.3 please? |
@richardbushell we haven't forgotten about this. Unfortunately, we've had other things come up. Also, instead of letting a PR sit around, I decided we should just merge and release it. |
Thanks, appreciate it. |
I do like @heff's idea (although I think his example is wrong; the second line should be However, we then need a way to know which options-object to pass to which source handler. What about the following:
What do you guys think about this idea? |
Hi Nicky |
@richardbushell I know we could do that, but we load sources dynamically in the player so doing it there is not that easy. We could do it someplace else, but as a nice OS citizen I think this issue is a nice way to solve it and provide something anybody can use :) |
Any opinions on this? So I could start implementing it :) |
Yeah, I believe the second line should've been
Thoughts, @videojs/core-committers? |
Maybe generating a dynamic name by default + deprecation warning?
Hmmm. The tech handler for html5 and flash HLS now have the same name, but I guess we should then change that to be
Yeah I guess we should do this separately, probably by something like |
@gkatsev I don't @nickygerritsen proposal for a This may not be as elegant but instead of extending SourceHandler registration to accept names, can't we just pass the entire If you want to enforce segregation of tech-level options from SourceHandler options, you could have a The reason I make this suggestion is that SourceHandlers are intended of being the extension mechanism for techs. My opinion is that instead of building more book-keeping into video.js we should consider ways to let |
@imbcmdth I guess your idea would work yes. If I understand correctly you want to add |
@nickygerritsen Yes, that is exactly what I am proposing: keeping the SourceHandler <-> Tech interface as simple as possible. |
OK let's wait what @dmlap thinks and then I'll start on this. |
I like the idea of cutting down on the bookkeeping-- I'm in favor of @imbcmdth's suggestion. Thanks for offering to take a crack at it, @nickygerritsen! |
Btw for now should I just use |
I think we have some version of source handler options. Going to close this one. |
We need a way to pass options to the source handlers from the player options. The API will most likely look like...
The text was updated successfully, but these errors were encountered: