@scarlett-player/captions 1.6.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -1
- package/package.json +7 -6
package/dist/index.cjs
CHANGED
|
@@ -24,6 +24,11 @@ __export(index_exports, {
|
|
|
24
24
|
default: () => index_default
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(index_exports);
|
|
27
|
+
|
|
28
|
+
// src/version.ts
|
|
29
|
+
var PKG_VERSION = true ? "1.7.1" : "0.0.0-dev";
|
|
30
|
+
|
|
31
|
+
// src/index.ts
|
|
27
32
|
var HLS_SUBTITLE_TRACKS_UPDATED = "hlsSubtitleTracksUpdated";
|
|
28
33
|
var HLS_INSTANCE_RETRY_MS = 500;
|
|
29
34
|
function createCaptionsPlugin(config = {}) {
|
|
@@ -194,7 +199,7 @@ function createCaptionsPlugin(config = {}) {
|
|
|
194
199
|
return {
|
|
195
200
|
id: "captions",
|
|
196
201
|
name: "Captions",
|
|
197
|
-
version:
|
|
202
|
+
version: PKG_VERSION,
|
|
198
203
|
type: "feature",
|
|
199
204
|
description: "WebVTT subtitles and closed captions with HLS extraction",
|
|
200
205
|
init(pluginApi) {
|
package/dist/index.d.cts
CHANGED
|
@@ -53,9 +53,10 @@ interface CaptionsPluginConfig {
|
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
|
+
* import { createPlayer } from '@scarlett-player/core';
|
|
56
57
|
* import { createCaptionsPlugin } from '@scarlett-player/captions';
|
|
57
58
|
*
|
|
58
|
-
* const player =
|
|
59
|
+
* const player = await createPlayer({
|
|
59
60
|
* container: '#player',
|
|
60
61
|
* plugins: [
|
|
61
62
|
* createCaptionsPlugin({
|
package/dist/index.d.ts
CHANGED
|
@@ -53,9 +53,10 @@ interface CaptionsPluginConfig {
|
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
|
+
* import { createPlayer } from '@scarlett-player/core';
|
|
56
57
|
* import { createCaptionsPlugin } from '@scarlett-player/captions';
|
|
57
58
|
*
|
|
58
|
-
* const player =
|
|
59
|
+
* const player = await createPlayer({
|
|
59
60
|
* container: '#player',
|
|
60
61
|
* plugins: [
|
|
61
62
|
* createCaptionsPlugin({
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// src/version.ts
|
|
2
|
+
var PKG_VERSION = true ? "1.7.1" : "0.0.0-dev";
|
|
3
|
+
|
|
1
4
|
// src/index.ts
|
|
2
5
|
var HLS_SUBTITLE_TRACKS_UPDATED = "hlsSubtitleTracksUpdated";
|
|
3
6
|
var HLS_INSTANCE_RETRY_MS = 500;
|
|
@@ -169,7 +172,7 @@ function createCaptionsPlugin(config = {}) {
|
|
|
169
172
|
return {
|
|
170
173
|
id: "captions",
|
|
171
174
|
name: "Captions",
|
|
172
|
-
version:
|
|
175
|
+
version: PKG_VERSION,
|
|
173
176
|
type: "feature",
|
|
174
177
|
description: "WebVTT subtitles and closed captions with HLS extraction",
|
|
175
178
|
init(pluginApi) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scarlett-player/captions",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Captions Plugin for Scarlett Player - WebVTT subtitles and closed captions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@scarlett-player/core": "^1.0
|
|
25
|
+
"@scarlett-player/core": "^1.7.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@vitest/coverage-v8": "^1.6.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsup": "^8.5.1",
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
32
|
"vitest": "^1.6.0",
|
|
33
|
-
"@scarlett-player/core": "1.
|
|
33
|
+
"@scarlett-player/core": "1.8.0"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"video",
|
|
@@ -53,10 +53,11 @@
|
|
|
53
53
|
},
|
|
54
54
|
"homepage": "https://scarlettplayer.com",
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "tsup
|
|
57
|
-
"dev": "tsup
|
|
56
|
+
"build": "tsup",
|
|
57
|
+
"dev": "tsup --watch",
|
|
58
58
|
"test": "vitest --run",
|
|
59
59
|
"test:watch": "vitest",
|
|
60
|
-
"test:coverage": "vitest --coverage"
|
|
60
|
+
"test:coverage": "vitest --coverage",
|
|
61
|
+
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json"
|
|
61
62
|
}
|
|
62
63
|
}
|