libbitsub 1.12.0 → 1.12.1
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/README.md +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/integrations/hlsjs.d.ts +6 -0
- package/dist/integrations/hlsjs.d.ts.map +1 -1
- package/dist/integrations/hlsjs.js +3 -0
- package/dist/integrations/hlsjs.js.map +1 -1
- package/dist/integrations/index.d.ts +10 -2
- package/dist/integrations/index.d.ts.map +1 -1
- package/dist/integrations/index.js +10 -2
- package/dist/integrations/index.js.map +1 -1
- package/dist/integrations/react.d.ts +10 -1
- package/dist/integrations/react.d.ts.map +1 -1
- package/dist/integrations/react.js +4 -1
- package/dist/integrations/react.js.map +1 -1
- package/dist/integrations/shaka.d.ts +6 -0
- package/dist/integrations/shaka.d.ts.map +1 -1
- package/dist/integrations/shaka.js +3 -0
- package/dist/integrations/shaka.js.map +1 -1
- package/dist/integrations/shared.d.ts +2 -0
- package/dist/integrations/shared.d.ts.map +1 -1
- package/dist/integrations/shared.js.map +1 -1
- package/dist/integrations/videojs.d.ts +9 -0
- package/dist/integrations/videojs.d.ts.map +1 -1
- package/dist/integrations/videojs.js +3 -0
- package/dist/integrations/videojs.js.map +1 -1
- package/dist/ts/capabilities.d.ts +6 -0
- package/dist/ts/capabilities.d.ts.map +1 -1
- package/dist/ts/capabilities.js +6 -0
- package/dist/ts/capabilities.js.map +1 -1
- package/dist/ts/diagnostics.d.ts +6 -0
- package/dist/ts/diagnostics.d.ts.map +1 -1
- package/dist/ts/diagnostics.js +6 -0
- package/dist/ts/diagnostics.js.map +1 -1
- package/dist/ts/frame-export.d.ts +4 -0
- package/dist/ts/frame-export.d.ts.map +1 -1
- package/dist/ts/frame-export.js +4 -0
- package/dist/ts/frame-export.js.map +1 -1
- package/dist/ts/range-loader.d.ts +6 -0
- package/dist/ts/range-loader.d.ts.map +1 -1
- package/dist/ts/range-loader.js +3 -0
- package/dist/ts/range-loader.js.map +1 -1
- package/dist/ts/renderers.d.ts +1 -0
- package/dist/ts/renderers.d.ts.map +1 -1
- package/dist/ts/renderers.js +1 -0
- package/dist/ts/renderers.js.map +1 -1
- package/dist/ts/types.d.ts +37 -0
- package/dist/ts/types.d.ts.map +1 -1
- package/dist/ts/utils.d.ts +2 -0
- package/dist/ts/utils.d.ts.map +1 -1
- package/dist/ts/utils.js +2 -0
- package/dist/ts/utils.js.map +1 -1
- package/package.json +5 -1
- package/pkg/README.md +1 -1
- package/pkg/libbitsub_bg.wasm +0 -0
- package/pkg/package.json +1 -1
- package/src/integrations/hlsjs.ts +6 -0
- package/src/integrations/index.ts +10 -2
- package/src/integrations/react.tsx +10 -1
- package/src/integrations/shaka.ts +6 -0
- package/src/integrations/shared.ts +2 -0
- package/src/integrations/videojs.ts +9 -0
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Optional Video.js plugin for libbitsub bitmap subtitles.
|
|
3
3
|
*
|
|
4
|
+
* @module
|
|
5
|
+
*
|
|
4
6
|
* @example
|
|
5
7
|
* ```ts
|
|
6
8
|
* import videojs from 'video.js'
|
|
@@ -26,24 +28,29 @@ export interface VideoJsPlayerLike {
|
|
|
26
28
|
trigger?(event: string, data?: unknown): void
|
|
27
29
|
}
|
|
28
30
|
|
|
31
|
+
/** Minimal Video.js plugin instance surface. */
|
|
29
32
|
export interface VideoJsPluginBase {
|
|
30
33
|
player: VideoJsPlayerLike
|
|
31
34
|
options_: unknown
|
|
32
35
|
dispose(): void
|
|
33
36
|
}
|
|
34
37
|
|
|
38
|
+
/** Minimal Video.js plugin constructor surface. */
|
|
35
39
|
export interface VideoJsPluginConstructor {
|
|
36
40
|
new (player: VideoJsPlayerLike, options?: unknown): VideoJsPluginBase
|
|
37
41
|
prototype: VideoJsPluginBase
|
|
38
42
|
}
|
|
39
43
|
|
|
44
|
+
/** Minimal video.js factory used by the plugin. */
|
|
40
45
|
export interface VideoJsLike {
|
|
41
46
|
getPlugin(name: string): VideoJsPluginConstructor
|
|
42
47
|
registerPlugin(name: string, plugin: unknown): void
|
|
43
48
|
}
|
|
44
49
|
|
|
50
|
+
/** Options for player.bitsub(). */
|
|
45
51
|
export type BitSubVideoJsOptions = AttachBitSubOptions
|
|
46
52
|
|
|
53
|
+
/** Video.js player.bitsub() API. */
|
|
47
54
|
export interface BitSubVideoJsApi {
|
|
48
55
|
/** Active controller, if any. */
|
|
49
56
|
controller(): BitSubController | null
|
|
@@ -196,5 +203,7 @@ export type VideoJsBitSubPlayer = VideoJsPlayerLike & {
|
|
|
196
203
|
bitsub(options?: BitSubVideoJsOptions): BitSubVideoJsApi
|
|
197
204
|
}
|
|
198
205
|
|
|
206
|
+
/** Shared attach options and controller types. */
|
|
199
207
|
export type { AttachBitSubOptions, BitSubController, BitSubSourceOptions, BitSubRenderer } from './shared'
|
|
208
|
+
/** Attach or construct a libbitsub controller. */
|
|
200
209
|
export { attachBitSub, createBitSubRenderer } from './shared'
|