Comments (4)
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.
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.
@kaito-kaito care to share? :)
from videojs-ass.
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)
- control-bar under the subtitle text HOT 1
- Embedded Subtitles HOT 1
- Subtitle Not Correctly display on different browsers HOT 5
- How to insert a subtitle link? HOT 2
- Cannot toggle subtitle display on touch devices HOT 2
- Subtitle on iPhone and iPad doesn't show HOT 1
- [Question] Possible to load a new subtitle file via JS? HOT 8
- [Suggestion] Video Resize HOT 3
- what about JavascriptSubtitlesOctopus? HOT 1
- Videojs Caption Selection HOT 2
- . HOT 3
- Do not support metadata type data?
- Subtitle on ps4
- When playing preroll ads, sometimes the text appears very small
- Update to VideoJS 7
- subtitle changes position is wrong in chrome
- Libjass is discontinued.
- Use libjass.ASS.fromUrl ? HOT 1
- Jitter in the youtube example HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videojs-ass.