Adding custom controls #2614
Unanswered
julianklotz
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear community,
I’m currently trying to customize the controls of Plyr. We’d like to have controls for showing video copyrights and to toggle a sidebar that shows additional info while the video is playing.
It’s possible to bring your own HTML (in fact, we’ve been doing this for a while: https://github.com/sampotts/plyr/blob/master/CONTROLS.md), but when adding captions, I found creating the custom HTML do be quite tedious.
My idea is to pass a custom
controls
function as part of the options. Inside this function, callcontrols.create()
which is used internally to build the user interface.EDIT: I just tried a few solutions and the issue is that the
controls
(andcaptions
) module isn’t exported in the dist package. Any ideas?--
Beta Was this translation helpful? Give feedback.
All reactions