Giter Site home page Giter Site logo

Can't get options to work about vue-plyr HOT 5 CLOSED

redxtech avatar redxtech commented on July 19, 2024
Can't get options to work

from vue-plyr.

Comments (5)

bgantick avatar bgantick commented on July 19, 2024 3

I was able to get this working (with an audio instance specifically). Example:

<plyr :options="options">
  <audio>
    <source :src="file" type="audio/mp3" />
  </audio>
</plyr>
props: {
  file: String,
  options: {
    type: Object,
    default: function () {
      return { selectors: { container: 'test' } }
    }
  }
}

from vue-plyr.

jwjcmw avatar jwjcmw commented on July 19, 2024

Have you tried some other options? I just tried volume, and it doesn't do anything for me either...but other options do work (html, autoplay). This may be an issue with plyr itself. Note I just tested this on a 2.x version of plyr...not sure if 3 is any different.

from vue-plyr.

redxtech avatar redxtech commented on July 19, 2024

Sorry for the late response - I should be able to take a look at this soon.
I can take a look at this and see if it's a problem with vue-plyr or plyr itself.

from vue-plyr.

smilingpeanut avatar smilingpeanut commented on July 19, 2024

@redxtech I'm struggling with this as well. Trying to customize the controls and can't seem to figure it out. How is the prop supposed to be structured?

from vue-plyr.

redxtech avatar redxtech commented on July 19, 2024

I have tried with a multitude of different options and I'm unable to reproduce. Closing for now. Feel free to reopen if you have more issues.

Note: I was unable to get volume working properly. This is mostly likely an issue with plyr itself. Feel free to make an issue there.

from vue-plyr.

Related Issues (20)

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.