-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
feat(plugins): add peertubeHelpers.loadWithFiles #6302
feat(plugins): add peertubeHelpers.loadWithFiles #6302
Conversation
|
Yes, I need to call |
f449bc9
to
924c9d9
Compare
Okay then, but Don't you prefer to create a dedicated plugin helper, like we did for video files, to fetch HLS playlist information? |
That would be nice, but I think this use case is too niche to deserve its own plugin API. We use it like this:
It's dirty but I guess the odds this (inofficial) API will frequently change is high. I'm not sure how a plugin API would look like, but maybe something like:
The currently existing method |
Thanks! |
It can, that's where we're running the code I pasted above. We return different playlists depending whether the user is a "premium user" or not. |
Description
Let plugin authors to load a video with all its files. This can be useful when a plugin want to switch video files based on the users capabilities.
Has this been tested?