Giter Site home page Giter Site logo

Comments (4)

kaito-kaito avatar kaito-kaito commented on August 16, 2024 2

I see. Any way, thanks for the plugin and thanks for your time. I found a way to load more than one subtitle :)

from videojs-ass.

SunnyLi avatar SunnyLi commented on August 16, 2024

Unfortunately, that may not be possible with the current implementation.
To load a different subtitle file, for now you'll have to reload the player and provide a different file URL during the plugin initialization.

Although you might (not sure if it's really doable) be able to load up several subtitles on one instance of videojs if you duplicate the plugin to have several different names (duplicate this line and make each line have a different name) and load each duplicated plugin with different subtitle file.. but that'll have some performance penalties..

Or just improve the code base itself to support loading multiple subtitle with a switcher, but it'll be a pretty big change and I don't have time to look into it right now but any contributions are welcome!

from videojs-ass.

hrk avatar hrk commented on August 16, 2024

@kaito-kaito care to share? :)

from videojs-ass.

SunnyLi avatar SunnyLi commented on August 16, 2024

You can now switch subtitles via the API. (there isn't an UI for it yet)
See here for detail.

from videojs-ass.

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.