Skip to content

Commit

Permalink
feat: upgrade to libjass 0.11.0
Browse files Browse the repository at this point in the history
and bump plugin to v0.6.0
  • Loading branch information
SunnyLi committed Feb 2, 2016
1 parent 4bc6b3d commit 96426b1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,28 @@ Add **Advanced SubStation Alpha (ASS)** subtitles support to
[videojs](https://github.com/videojs/video.js) using the
[libjass](https://github.com/Arnavion/libjass) library.


## Demo

If you are not on a phone or using a very bad browser, come check out the demo
Check out the demo
[here](https://sunnyli.github.io/videojs-ass/example.html)


## Install

You can get this plugin using either bower or npm:
For plugin that supports videojs v5.x install using either:

- `bower install videojs-ass`

or

`bower install videojs-ass`
- `npm install videojs-ass`

`npm install videojs-ass`
For videojs v4:

Just specify version to be within:

```
"videojs-ass": ">=0.3.0 < 0.5.0"
```
for bower or npm whichever you perfer using.


## Usage
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"example.html"
],
"dependencies": {
"libjass": "https://github.com/Arnavion/libjass/releases/download/v0.10.0/libjass.zip"
"libjass": "https://github.com/Arnavion/libjass/releases/download/v0.11.0/libjass.zip"
},
"devDependencies": {
"videojs": "5.x"
Expand Down
4 changes: 2 additions & 2 deletions example.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

<!-- npm -->
<link href="node_modules/video.js/dist/video-js.min.css" rel="stylesheet">
<link href="node_modules/libjass/lib/libjass.css" rel="stylesheet">
<link href="node_modules/libjass/libjass.css" rel="stylesheet">
<script src="node_modules/video.js/dist/video.min.js"></script>
<script src="node_modules/libjass/lib/libjass.js"></script>
<script src="node_modules/libjass/libjass.js"></script>

<!-- bower-->
<!--
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "videojs-ass",
"version": "0.6.0-alpha.0",
"version": "0.6.0",
"author": "Sunny Li",
"description": "ASS/SSA subtitle overlay for videojs",
"repository": {
Expand All @@ -20,7 +20,7 @@
"license": "Apache-2.0",
"main": "./src/videojs.ass.js",
"dependencies": {
"libjass": "Arnavion/libjass#ff9fa3954d57"
"libjass": "0.11.0"
},
"devDependencies": {
"video.js": "5.x"
Expand Down
5 changes: 0 additions & 5 deletions src/videojs.ass.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@
color: grey;
}

/* Backport from libjass v0.11 */
.libjass-subs, .libjass-subs * {
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}

0 comments on commit 96426b1

Please sign in to comment.