Creating Custom Provider (Override priority of providers and export provider class) #1676
Unanswered
hsnfirdaus
asked this question in
Q&A
Replies: 0 comments
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.
-
After looking source code of this project, i think custom provider can be passed to loaders props of MediaProvider. But i encounter some issue while trying to create my custom provider:
The source code hardcoded the priority of the provider, custom provider always last to use. It will be nice if we can dynamically change the order of providers? For example, i don't want to use dash or hls.js, want to use my own provider.
I want to create custom provider that extends the VideoProvider, currently it will not possible (without hacky way) because the provider is not exported. It also can be used to "override" provider priority in the first point.
The only possible way to achieve what i want to do is to directly change source code and add providers. Is there are any recommendation? or maybe this can be a suggestion for developers. It will be nice if this player is very customizable. People want to use this player because it has nice looking UI and easy to use in react.
Beta Was this translation helpful? Give feedback.
All reactions