GithubHelp home page GithubHelp logo

Custom controls? about plyrue HOT 2 CLOSED

zcuric avatar zcuric commented on July 18, 2024
Custom controls?

from plyrue.

Comments (2)

zcuric avatar zcuric commented on July 18, 2024

From what I read on plyr documentation it is possible to add custom controls like this.

So you would have to add a controls field in options when setting up Plyrue. This could be done easier to add controls in pluginOptions when Plyrue is initialised by vue so you don't have to define it everywhere.

From the documentation above, if HTML can be set to controls field as a function, maybe vue component could be injected. I could try, or you can if you have time.

Some examples:
https://codepen.io/jwjcmw/pen/pedQRL
http://jsfiddle.net/onigetoc/ehqu4o6x/

from plyrue.

francoism90 avatar francoism90 commented on July 18, 2024

@zcuric Thanks for your reply!

I'm indeed aware of using the controls options, but as far I've tested it isn't possible to inject a (native) Vue component, only plain HTML seems to be possible. However I haven't fully tested other things, like tweaking the project/app.js/.. configuration.

At the moment I've simply disabled the controls, and use a custom Vue component that hovers on top of the Plyr-instance (including fullscreen), which seems to work pretty well. This also makes connecting to other stuff like Vuex and (template) framework a lot easier.

Maybe moving this to the actual controls function would help Plyr(eu) integration. Will try to investigate when possible.

from plyrue.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.