File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ npm install srt-support-for-html5-videos
25
25
** CDN**
26
26
- Ready to use script, just include it, and it will parse all video elements to convert the tracks
27
27
``` text
28
- https://cdn.jsdelivr.net/gh/codeit-ninja/SRT-Support- for-HTML5 -videos@master /dist/main.iife.js
28
+ https://cdn.jsdelivr.net/npm/srt-support- for-html5 -videos/dist/main.iife.js
29
29
```
30
30
31
31
** ES Module**
32
32
- Use as ES Module, see usage section
33
33
``` text
34
- https://cdn.jsdelivr.net/gh/codeit-ninja/SRT-Support- for-HTML5 -videos@master /dist/main.es.js
34
+ https://cdn.jsdelivr.net/npm/srt-support- for-html5 -videos/dist/main.es.js
35
35
```
36
36
37
37
### Usage
@@ -41,7 +41,7 @@ If you installed it as a package using NPM or as an ES Module using the CDN, you
41
41
// If using NPM
42
42
import { transformSrtTracks } from ' srt-support-for-html5-videos' ;
43
43
// If using CDN
44
- import { transformSrtTracks } from ' https://cdn.jsdelivr.net/gh/codeit-ninja /srt-support-for-html5-videos/dist/main.es.js' ;
44
+ import { transformSrtTracks } from ' https://cdn.jsdelivr.net/npm /srt-support-for-html5-videos/dist/main.es.js' ;
45
45
46
46
// Single video element
47
47
const video = document .getElementById (' video' );
You can’t perform that action at this time.
0 commit comments