@mango-iiif/av 0.3.0 → 1.0.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/CHANGELOG.md +36 -0
- package/README.md +25 -13
- package/dist/annotations.d.ts +2 -2
- package/dist/annotations.js +4 -4
- package/dist/captions.d.ts +23 -0
- package/dist/captions.js +16 -0
- package/dist/captions.js.map +1 -0
- package/dist/chapters.d.ts +2 -2
- package/dist/chapters.js +3 -3
- package/dist/{chunk-4NOWGMI5.js → chunk-53ZN4Y4L.js} +28 -66
- package/dist/chunk-53ZN4Y4L.js.map +1 -0
- package/dist/chunk-AWLDINQR.js +73 -0
- package/dist/chunk-AWLDINQR.js.map +1 -0
- package/dist/chunk-BB7RE7EO.js +407 -0
- package/dist/chunk-BB7RE7EO.js.map +1 -0
- package/dist/chunk-BMMQFCD3.js +86 -0
- package/dist/chunk-BMMQFCD3.js.map +1 -0
- package/dist/chunk-IZYEGSGT.js +148 -0
- package/dist/chunk-IZYEGSGT.js.map +1 -0
- package/dist/chunk-JXZR5DL2.js +160 -0
- package/dist/chunk-JXZR5DL2.js.map +1 -0
- package/dist/{chunk-CIAQZ2EB.js → chunk-LMZIFVHN.js} +8 -4
- package/dist/chunk-LMZIFVHN.js.map +1 -0
- package/dist/chunk-TQNEVWUH.js +39 -0
- package/dist/chunk-TQNEVWUH.js.map +1 -0
- package/dist/chunk-XXM4G3K5.js +296 -0
- package/dist/chunk-XXM4G3K5.js.map +1 -0
- package/dist/chunk-YVI7J43Q.js +29 -0
- package/dist/chunk-YVI7J43Q.js.map +1 -0
- package/dist/chunk-Z2OF3RKT.js +152 -0
- package/dist/chunk-Z2OF3RKT.js.map +1 -0
- package/dist/{controller-SkwGkVE8.d.ts → controller-Ag3nFtwP.d.ts} +16 -24
- package/dist/{controller-element-CkXIA6w2.d.ts → controller-element-Cn5cxKnD.d.ts} +4 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +2 -2
- package/dist/index.d.ts +6 -3
- package/dist/index.js +21 -14
- package/dist/index.js.map +1 -1
- package/dist/media.d.ts +3 -3
- package/dist/media.js +11 -5
- package/dist/media.js.map +1 -1
- package/dist/player.d.ts +8 -2
- package/dist/player.js +3 -5
- package/dist/player.js.map +1 -1
- package/dist/ramp-2XKALEGA.js +98 -0
- package/dist/ramp-2XKALEGA.js.map +1 -0
- package/dist/transcript-element.d.ts +2 -2
- package/dist/transcript-element.js +6 -5
- package/dist/transcript-element.js.map +1 -1
- package/docs/API.md +70 -32
- package/package.json +18 -11
- package/dist/chunk-4NOWGMI5.js.map +0 -1
- package/dist/chunk-4V6FME6B.js +0 -643
- package/dist/chunk-4V6FME6B.js.map +0 -1
- package/dist/chunk-C4H46HDS.js +0 -95
- package/dist/chunk-C4H46HDS.js.map +0 -1
- package/dist/chunk-CDLYT3KB.js +0 -17
- package/dist/chunk-CDLYT3KB.js.map +0 -1
- package/dist/chunk-CIAQZ2EB.js.map +0 -1
- package/dist/chunk-EHIKFRFV.js +0 -75
- package/dist/chunk-EHIKFRFV.js.map +0 -1
- package/dist/chunk-ELGGWWDS.js +0 -257
- package/dist/chunk-ELGGWWDS.js.map +0 -1
- package/dist/chunk-FVYEV2LO.js +0 -163
- package/dist/chunk-FVYEV2LO.js.map +0 -1
- package/dist/chunk-YX32ZQPR.js +0 -83
- package/dist/chunk-YX32ZQPR.js.map +0 -1
- package/dist/chunk-YX6L6CUF.js +0 -355
- package/dist/chunk-YX6L6CUF.js.map +0 -1
|
@@ -145,6 +145,7 @@ interface AVManifest {
|
|
|
145
145
|
requiredStatement?: MetadataEntry;
|
|
146
146
|
homepage?: string;
|
|
147
147
|
logo?: string;
|
|
148
|
+
thumbnail?: string;
|
|
148
149
|
}
|
|
149
150
|
interface AVControlsConfig {
|
|
150
151
|
navigation?: boolean;
|
|
@@ -172,19 +173,22 @@ interface AVTranscriptConfig {
|
|
|
172
173
|
download?: boolean;
|
|
173
174
|
showNotes?: boolean;
|
|
174
175
|
showMetadata?: boolean;
|
|
175
|
-
showSearchMarkers?: boolean;
|
|
176
176
|
}
|
|
177
|
+
/** The card shown above the controls for audio, in place of a picture. */
|
|
177
178
|
interface AVAudioArtConfig {
|
|
179
|
+
/** Heading for the card. Defaults to the Manifest label. */
|
|
178
180
|
title?: string;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
+
/**
|
|
182
|
+
* Show the transcript in the card as captions, as on video: `'context'` with
|
|
183
|
+
* the lines either side faded, `'line'` with only the line being spoken.
|
|
184
|
+
*/
|
|
185
|
+
captions?: false | 'line' | 'context';
|
|
181
186
|
}
|
|
182
|
-
|
|
187
|
+
/** RAMP's playback position cache. RAMP offers to resume from a saved position. */
|
|
183
188
|
interface AVResumeConfig {
|
|
184
189
|
enabled?: boolean;
|
|
185
190
|
maxItems?: number;
|
|
186
191
|
ttlDays?: number;
|
|
187
|
-
prompt?: boolean;
|
|
188
192
|
}
|
|
189
193
|
/** Package-owned interface strings. Values may contain `{name}` placeholders. */
|
|
190
194
|
interface AVStrings {
|
|
@@ -203,17 +207,13 @@ interface AVStrings {
|
|
|
203
207
|
mediaSource: string;
|
|
204
208
|
mediaInformation: string;
|
|
205
209
|
download: string;
|
|
206
|
-
downloadMediaFile: string;
|
|
207
210
|
searchTranscript: string;
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
resume: string;
|
|
212
|
-
startOver: string;
|
|
211
|
+
captions: string;
|
|
212
|
+
position: string;
|
|
213
|
+
recording: string;
|
|
213
214
|
loadingManifest: string;
|
|
214
215
|
loadingTranscript: string;
|
|
215
216
|
unableToLoadPlayer: string;
|
|
216
|
-
unableToLoadMedia: string;
|
|
217
217
|
noMediaLoaded: string;
|
|
218
218
|
noPlayableMedia: string;
|
|
219
219
|
noManifest: string;
|
|
@@ -245,8 +245,8 @@ interface AVPlayerConfig {
|
|
|
245
245
|
startCanvasId?: string;
|
|
246
246
|
startTime?: number;
|
|
247
247
|
activePanel?: 'chapters' | 'transcript' | 'annotations' | 'metadata' | 'files' | 'none';
|
|
248
|
-
|
|
249
|
-
|
|
248
|
+
/** Send credentials with the requests Video.js makes itself, such as HLS playlists and segments. */
|
|
249
|
+
withCredentials?: boolean;
|
|
250
250
|
playbackRates?: number[];
|
|
251
251
|
fetch?: typeof globalThis.fetch;
|
|
252
252
|
requestInit?: RequestInit;
|
|
@@ -317,14 +317,9 @@ interface AVPlayerEventMap {
|
|
|
317
317
|
config: Readonly<AVPlayerConfig>;
|
|
318
318
|
};
|
|
319
319
|
'av-statechange': AVPlayerState;
|
|
320
|
-
'av-visualizerfallback': {
|
|
321
|
-
canvasId: string;
|
|
322
|
-
sourceUrl: string;
|
|
323
|
-
reason: 'cors';
|
|
324
|
-
};
|
|
325
320
|
}
|
|
326
321
|
declare const defaultStrings: AVStrings;
|
|
327
|
-
declare const defaultConfig: Required<Pick<AVPlayerConfig, 'controls' | 'panels' | 'transcript' | 'audioArt' | 'resume' | 'strings' | 'preferredLanguages' | 'autoAdvance' | 'repeat' | 'activePanel' | '
|
|
322
|
+
declare const defaultConfig: Required<Pick<AVPlayerConfig, 'controls' | 'panels' | 'transcript' | 'audioArt' | 'resume' | 'strings' | 'preferredLanguages' | 'autoAdvance' | 'repeat' | 'activePanel' | 'withCredentials' | 'playbackRates'>>;
|
|
328
323
|
|
|
329
324
|
type ResolvedConfig = AVPlayerConfig & typeof defaultConfig;
|
|
330
325
|
declare class AVPlayerController extends EventTarget {
|
|
@@ -336,8 +331,6 @@ declare class AVPlayerController extends EventTarget {
|
|
|
336
331
|
get canvas(): AVCanvas | undefined;
|
|
337
332
|
get source(): MediaSource | undefined;
|
|
338
333
|
get media(): HTMLMediaElement | undefined;
|
|
339
|
-
/** Whether the host explicitly selected the media element CORS policy. */
|
|
340
|
-
get crossoriginExplicit(): boolean;
|
|
341
334
|
on<K extends keyof AVPlayerEventMap>(type: K, listener: (event: CustomEvent<AVPlayerEventMap[K]>) => void): () => void;
|
|
342
335
|
configure(config: AVPlayerConfig): void;
|
|
343
336
|
load(input: JsonObject | string): Promise<AVManifest>;
|
|
@@ -364,9 +357,8 @@ declare class AVPlayerController extends EventTarget {
|
|
|
364
357
|
removeAnnotation(id: string): Promise<void>;
|
|
365
358
|
setAutoAdvance(enabled: boolean): void;
|
|
366
359
|
setRepeat(enabled: boolean): void;
|
|
367
|
-
getSavedPosition(): number | undefined;
|
|
368
360
|
destroy(): void;
|
|
369
361
|
resolvedSourceUrl(): Promise<string | undefined>;
|
|
370
362
|
}
|
|
371
363
|
|
|
372
|
-
export { type AVAnnotation as A, type Chapter as C, type DownloadResource as D, type IIIFPresentationVersion as I, type JsonObject as J, type LocalizedValue as L, type MediaKind as M, type TextTrack as T, type AVAnnotationAdapter as a, type AVAnnotationDraft as b, type AVAudioArtConfig as c, type
|
|
364
|
+
export { type AVAnnotation as A, type Chapter as C, type DownloadResource as D, type IIIFPresentationVersion as I, type JsonObject as J, type LocalizedValue as L, type MediaKind as M, type TextTrack as T, type AVAnnotationAdapter as a, type AVAnnotationDraft as b, type AVAudioArtConfig as c, type AVCanvas as d, type AVControlsConfig as e, type AVManifest as f, type AVPanelsConfig as g, type AVPlayerConfig as h, AVPlayerController as i, type AVPlayerEventMap as j, type AVPlayerState as k, type AVResumeConfig as l, type AVStrings as m, type AVTranscriptConfig as n, type AuthService as o, type MediaSource as p, type MetadataEntry as q, type TextTrackKind as r, type TimeSpan as s, type TranscriptCue as t, type TranscriptCueType as u, type TranscriptResource as v, defaultConfig as w, defaultStrings as x };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as AVPlayerController, j as AVPlayerEventMap } from './controller-Ag3nFtwP.js';
|
|
2
2
|
|
|
3
3
|
declare const HTMLElementBase: typeof HTMLElement;
|
|
4
4
|
declare abstract class AVControllerElement extends HTMLElementBase {
|
|
5
5
|
#private;
|
|
6
|
+
/** The tag this class was defined under, which the complete element renders. */
|
|
7
|
+
static registeredTag: string | undefined;
|
|
6
8
|
get controller(): AVPlayerController;
|
|
7
9
|
set controller(value: AVPlayerController);
|
|
8
10
|
connectedCallback(): void;
|
|
@@ -12,4 +14,4 @@ declare abstract class AVControllerElement extends HTMLElementBase {
|
|
|
12
14
|
protected abstract handleControllerEvent<K extends keyof AVPlayerEventMap>(type: K, event: CustomEvent<AVPlayerEventMap[K]>): void;
|
|
13
15
|
}
|
|
14
16
|
|
|
15
|
-
export { AVControllerElement as A };
|
|
17
|
+
export { AVControllerElement as A, HTMLElementBase as H };
|
package/dist/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AVAnnotation, a as AVAnnotationAdapter, b as AVAnnotationDraft, c as AVAudioArtConfig, d as
|
|
1
|
+
import { m as AVStrings, J as JsonObject, f as AVManifest, v as TranscriptResource, t as TranscriptCue, s as TimeSpan } from './controller-Ag3nFtwP.js';
|
|
2
|
+
export { A as AVAnnotation, a as AVAnnotationAdapter, b as AVAnnotationDraft, c as AVAudioArtConfig, d as AVCanvas, e as AVControlsConfig, g as AVPanelsConfig, h as AVPlayerConfig, i as AVPlayerController, j as AVPlayerEventMap, k as AVPlayerState, l as AVResumeConfig, n as AVTranscriptConfig, o as AuthService, C as Chapter, D as DownloadResource, I as IIIFPresentationVersion, L as LocalizedValue, M as MediaKind, p as MediaSource, q as MetadataEntry, T as TextTrack, r as TextTrackKind, u as TranscriptCueType, w as defaultConfig, x as defaultStrings } from './controller-Ag3nFtwP.js';
|
|
3
3
|
|
|
4
4
|
interface NormalizeOptions {
|
|
5
5
|
fetch?: typeof globalThis.fetch;
|
package/dist/core.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
loadTranscript,
|
|
4
4
|
parseTimedText,
|
|
5
5
|
parseTranscript
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LMZIFVHN.js";
|
|
7
7
|
import {
|
|
8
8
|
AVPlayerController,
|
|
9
9
|
defaultConfig,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
normalizeManifest,
|
|
13
13
|
parseTemporalFragment,
|
|
14
14
|
parseTime
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-53ZN4Y4L.js";
|
|
16
16
|
export {
|
|
17
17
|
AVPlayerController,
|
|
18
18
|
defaultConfig,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { MangoAVCaptionsElement } from './captions.js';
|
|
2
|
+
export { defineMangoAVCaptions } from './captions.js';
|
|
1
3
|
import { MangoAVAnnotationsElement } from './annotations.js';
|
|
2
4
|
export { defineMangoAVAnnotations } from './annotations.js';
|
|
3
5
|
import { MangoAVTranscriptElement } from './transcript-element.js';
|
|
@@ -8,9 +10,9 @@ import { MangoAVPlayerElement } from './player.js';
|
|
|
8
10
|
export { defineMangoAVPlayer } from './player.js';
|
|
9
11
|
import { MangoAVMediaElement } from './media.js';
|
|
10
12
|
export { defineMangoAVMedia } from './media.js';
|
|
11
|
-
export { A as AVAnnotation, a as AVAnnotationAdapter, b as AVAnnotationDraft, c as AVAudioArtConfig, d as
|
|
13
|
+
export { A as AVAnnotation, a as AVAnnotationAdapter, b as AVAnnotationDraft, c as AVAudioArtConfig, d as AVCanvas, e as AVControlsConfig, f as AVManifest, g as AVPanelsConfig, h as AVPlayerConfig, i as AVPlayerController, j as AVPlayerEventMap, k as AVPlayerState, l as AVResumeConfig, m as AVStrings, n as AVTranscriptConfig, o as AuthService, C as Chapter, D as DownloadResource, I as IIIFPresentationVersion, J as JsonObject, L as LocalizedValue, M as MediaKind, p as MediaSource, q as MetadataEntry, T as TextTrack, r as TextTrackKind, s as TimeSpan, t as TranscriptCue, u as TranscriptCueType, v as TranscriptResource, w as defaultConfig, x as defaultStrings } from './controller-Ag3nFtwP.js';
|
|
12
14
|
export { NormalizeOptions, formatTime, loadTranscript, normalizeManifest, parseTemporalFragment, parseTime, parseTimedText, parseTranscript } from './core.js';
|
|
13
|
-
import './controller-element-
|
|
15
|
+
import './controller-element-Cn5cxKnD.js';
|
|
14
16
|
|
|
15
17
|
declare global {
|
|
16
18
|
interface HTMLElementTagNameMap {
|
|
@@ -19,7 +21,8 @@ declare global {
|
|
|
19
21
|
'mango-av-chapters': MangoAVChaptersElement;
|
|
20
22
|
'mango-av-transcript': MangoAVTranscriptElement;
|
|
21
23
|
'mango-av-annotations': MangoAVAnnotationsElement;
|
|
24
|
+
'mango-av-captions': MangoAVCaptionsElement;
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
|
|
25
|
-
export { MangoAVAnnotationsElement, MangoAVChaptersElement, MangoAVMediaElement, MangoAVPlayerElement, MangoAVTranscriptElement };
|
|
28
|
+
export { MangoAVAnnotationsElement, MangoAVCaptionsElement, MangoAVChaptersElement, MangoAVMediaElement, MangoAVPlayerElement, MangoAVTranscriptElement };
|
package/dist/index.js
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
|
+
import "./chunk-GAVG7CPU.js";
|
|
2
|
+
import {
|
|
3
|
+
MangoAVMediaElement,
|
|
4
|
+
defineMangoAVMedia
|
|
5
|
+
} from "./chunk-XXM4G3K5.js";
|
|
1
6
|
import {
|
|
2
7
|
MangoAVAnnotationsElement,
|
|
3
8
|
defineMangoAVAnnotations
|
|
4
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AWLDINQR.js";
|
|
10
|
+
import {
|
|
11
|
+
MangoAVCaptionsElement,
|
|
12
|
+
defineMangoAVCaptions
|
|
13
|
+
} from "./chunk-IZYEGSGT.js";
|
|
5
14
|
import {
|
|
6
15
|
MangoAVChaptersElement,
|
|
7
16
|
defineMangoAVChapters
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-GAVG7CPU.js";
|
|
10
|
-
import {
|
|
11
|
-
MangoAVMediaElement,
|
|
12
|
-
defineMangoAVMedia
|
|
13
|
-
} from "./chunk-4V6FME6B.js";
|
|
17
|
+
} from "./chunk-BMMQFCD3.js";
|
|
14
18
|
import {
|
|
15
19
|
MangoAVPlayerElement,
|
|
16
20
|
defineMangoAVPlayer
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-ELGGWWDS.js";
|
|
21
|
+
} from "./chunk-BB7RE7EO.js";
|
|
19
22
|
import {
|
|
20
23
|
MangoAVTranscriptElement,
|
|
21
24
|
defineMangoAVTranscript
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-Z2OF3RKT.js";
|
|
26
|
+
import "./chunk-TQNEVWUH.js";
|
|
27
|
+
import "./chunk-YVI7J43Q.js";
|
|
25
28
|
import {
|
|
26
29
|
loadTranscript,
|
|
27
30
|
parseTimedText,
|
|
28
31
|
parseTranscript
|
|
29
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-LMZIFVHN.js";
|
|
33
|
+
import "./chunk-JXZR5DL2.js";
|
|
30
34
|
import {
|
|
31
35
|
AVPlayerController,
|
|
32
36
|
defaultConfig,
|
|
@@ -35,7 +39,7 @@ import {
|
|
|
35
39
|
normalizeManifest,
|
|
36
40
|
parseTemporalFragment,
|
|
37
41
|
parseTime
|
|
38
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-53ZN4Y4L.js";
|
|
39
43
|
|
|
40
44
|
// src/index.ts
|
|
41
45
|
if (typeof window !== "undefined" && "customElements" in window) {
|
|
@@ -44,10 +48,12 @@ if (typeof window !== "undefined" && "customElements" in window) {
|
|
|
44
48
|
defineMangoAVChapters();
|
|
45
49
|
defineMangoAVTranscript();
|
|
46
50
|
defineMangoAVAnnotations();
|
|
51
|
+
defineMangoAVCaptions();
|
|
47
52
|
}
|
|
48
53
|
export {
|
|
49
54
|
AVPlayerController,
|
|
50
55
|
MangoAVAnnotationsElement,
|
|
56
|
+
MangoAVCaptionsElement,
|
|
51
57
|
MangoAVChaptersElement,
|
|
52
58
|
MangoAVMediaElement,
|
|
53
59
|
MangoAVPlayerElement,
|
|
@@ -55,6 +61,7 @@ export {
|
|
|
55
61
|
defaultConfig,
|
|
56
62
|
defaultStrings,
|
|
57
63
|
defineMangoAVAnnotations,
|
|
64
|
+
defineMangoAVCaptions,
|
|
58
65
|
defineMangoAVChapters,
|
|
59
66
|
defineMangoAVMedia,
|
|
60
67
|
defineMangoAVPlayer,
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './core';\nexport { defineMangoAVMedia, MangoAVMediaElement } from './components/mango-av-media';\nexport { defineMangoAVPlayer, MangoAVPlayerElement } from './components/mango-av-player';\nexport { defineMangoAVChapters, MangoAVChaptersElement } from './components/mango-av-chapters';\nexport { defineMangoAVTranscript, MangoAVTranscriptElement } from './components/mango-av-transcript';\nexport { defineMangoAVAnnotations, MangoAVAnnotationsElement } from './components/mango-av-annotations';\n\nimport { defineMangoAVMedia } from './components/mango-av-media';\nimport { defineMangoAVPlayer } from './components/mango-av-player';\nimport { defineMangoAVChapters } from './components/mango-av-chapters';\nimport { defineMangoAVTranscript } from './components/mango-av-transcript';\nimport { defineMangoAVAnnotations } from './components/mango-av-annotations';\n\nif (typeof window !== 'undefined' && 'customElements' in window) {\n defineMangoAVMedia();\n defineMangoAVPlayer();\n defineMangoAVChapters();\n defineMangoAVTranscript();\n defineMangoAVAnnotations();\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'mango-av-media': import('./components/mango-av-media').MangoAVMediaElement;\n 'mango-av-player': import('./components/mango-av-player').MangoAVPlayerElement;\n 'mango-av-chapters': import('./components/mango-av-chapters').MangoAVChaptersElement;\n 'mango-av-transcript': import('./components/mango-av-transcript').MangoAVTranscriptElement;\n 'mango-av-annotations': import('./components/mango-av-annotations').MangoAVAnnotationsElement;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './core';\nexport { defineMangoAVMedia, MangoAVMediaElement } from './components/mango-av-media';\nexport { defineMangoAVPlayer, MangoAVPlayerElement } from './components/mango-av-player';\nexport { defineMangoAVChapters, MangoAVChaptersElement } from './components/mango-av-chapters';\nexport { defineMangoAVTranscript, MangoAVTranscriptElement } from './components/mango-av-transcript';\nexport { defineMangoAVAnnotations, MangoAVAnnotationsElement } from './components/mango-av-annotations';\nexport { defineMangoAVCaptions, MangoAVCaptionsElement } from './components/mango-av-captions';\n\nimport { defineMangoAVMedia } from './components/mango-av-media';\nimport { defineMangoAVPlayer } from './components/mango-av-player';\nimport { defineMangoAVChapters } from './components/mango-av-chapters';\nimport { defineMangoAVTranscript } from './components/mango-av-transcript';\nimport { defineMangoAVAnnotations } from './components/mango-av-annotations';\nimport { defineMangoAVCaptions } from './components/mango-av-captions';\n\nif (typeof window !== 'undefined' && 'customElements' in window) {\n defineMangoAVMedia();\n defineMangoAVPlayer();\n defineMangoAVChapters();\n defineMangoAVTranscript();\n defineMangoAVAnnotations();\n defineMangoAVCaptions();\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'mango-av-media': import('./components/mango-av-media').MangoAVMediaElement;\n 'mango-av-player': import('./components/mango-av-player').MangoAVPlayerElement;\n 'mango-av-chapters': import('./components/mango-av-chapters').MangoAVChaptersElement;\n 'mango-av-transcript': import('./components/mango-av-transcript').MangoAVTranscriptElement;\n 'mango-av-annotations': import('./components/mango-av-annotations').MangoAVAnnotationsElement;\n 'mango-av-captions': import('./components/mango-av-captions').MangoAVCaptionsElement;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,IAAI,OAAO,WAAW,eAAe,oBAAoB,QAAQ;AAC/D,qBAAmB;AACnB,sBAAoB;AACpB,wBAAsB;AACtB,0BAAwB;AACxB,2BAAyB;AACzB,wBAAsB;AACxB;","names":[]}
|
package/dist/media.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as AVPlayerController, J as JsonObject, h as AVPlayerConfig, f as AVManifest, d as AVCanvas } from './controller-Ag3nFtwP.js';
|
|
2
|
+
import { H as HTMLElementBase } from './controller-element-Cn5cxKnD.js';
|
|
2
3
|
|
|
3
|
-
declare const HTMLElementBase: typeof HTMLElement;
|
|
4
4
|
declare class MangoAVMediaElement extends HTMLElementBase {
|
|
5
5
|
#private;
|
|
6
6
|
static observedAttributes: string[];
|
|
7
7
|
readonly player: AVPlayerController;
|
|
8
8
|
constructor();
|
|
9
9
|
get manifest(): JsonObject | string | undefined;
|
|
10
|
-
get controller(): AVPlayerController;
|
|
11
10
|
set manifest(value: JsonObject | string | undefined);
|
|
11
|
+
get controller(): AVPlayerController;
|
|
12
12
|
get config(): AVPlayerConfig;
|
|
13
13
|
set config(value: AVPlayerConfig);
|
|
14
14
|
connectedCallback(): void;
|
package/dist/media.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MangoAVMediaElement,
|
|
3
3
|
defineMangoAVMedia
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-XXM4G3K5.js";
|
|
5
|
+
import "./chunk-AWLDINQR.js";
|
|
6
|
+
import "./chunk-IZYEGSGT.js";
|
|
7
|
+
import "./chunk-BMMQFCD3.js";
|
|
8
|
+
import "./chunk-BB7RE7EO.js";
|
|
9
|
+
import "./chunk-Z2OF3RKT.js";
|
|
10
|
+
import "./chunk-TQNEVWUH.js";
|
|
11
|
+
import "./chunk-YVI7J43Q.js";
|
|
12
|
+
import "./chunk-LMZIFVHN.js";
|
|
13
|
+
import "./chunk-JXZR5DL2.js";
|
|
14
|
+
import "./chunk-53ZN4Y4L.js";
|
|
9
15
|
|
|
10
16
|
// src/media.ts
|
|
11
17
|
if (typeof window !== "undefined" && "customElements" in window) defineMangoAVMedia();
|
package/dist/media.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/media.ts"],"sourcesContent":["export { defineMangoAVMedia, MangoAVMediaElement } from './components/mango-av-media';\n\nimport { defineMangoAVMedia } from './components/mango-av-media';\nif (typeof window !== 'undefined' && 'customElements' in window) defineMangoAVMedia();\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/media.ts"],"sourcesContent":["export { defineMangoAVMedia, MangoAVMediaElement } from './components/mango-av-media';\n\nimport { defineMangoAVMedia } from './components/mango-av-media';\nif (typeof window !== 'undefined' && 'customElements' in window) defineMangoAVMedia();\n"],"mappings":";;;;;;;;;;;;;;;;AAGA,IAAI,OAAO,WAAW,eAAe,oBAAoB,OAAQ,oBAAmB;","names":[]}
|
package/dist/player.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { A as AVControllerElement } from './controller-element-
|
|
2
|
-
import { J as JsonObject,
|
|
1
|
+
import { A as AVControllerElement } from './controller-element-Cn5cxKnD.js';
|
|
2
|
+
import { J as JsonObject, h as AVPlayerConfig, f as AVManifest, d as AVCanvas, j as AVPlayerEventMap } from './controller-Ag3nFtwP.js';
|
|
3
3
|
|
|
4
4
|
declare class MangoAVPlayerElement extends AVControllerElement {
|
|
5
5
|
#private;
|
|
6
6
|
static observedAttributes: string[];
|
|
7
|
+
/**
|
|
8
|
+
* Whether controller events are re-dispatched from this element. The complete
|
|
9
|
+
* element turns this off for the player inside it, which forwards them itself.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
forwardEvents: boolean;
|
|
7
13
|
constructor();
|
|
8
14
|
get manifest(): JsonObject | string | undefined;
|
|
9
15
|
set manifest(value: JsonObject | string | undefined);
|
package/dist/player.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MangoAVPlayerElement,
|
|
3
3
|
defineMangoAVPlayer
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-CIAQZ2EB.js";
|
|
8
|
-
import "./chunk-4NOWGMI5.js";
|
|
4
|
+
} from "./chunk-BB7RE7EO.js";
|
|
5
|
+
import "./chunk-JXZR5DL2.js";
|
|
6
|
+
import "./chunk-53ZN4Y4L.js";
|
|
9
7
|
|
|
10
8
|
// src/player.ts
|
|
11
9
|
if (typeof window !== "undefined" && "customElements" in window) defineMangoAVPlayer();
|
package/dist/player.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/player.ts"],"sourcesContent":["export { defineMangoAVPlayer, MangoAVPlayerElement } from './components/mango-av-player';\n\nimport { defineMangoAVPlayer } from './components/mango-av-player';\nif (typeof window !== 'undefined' && 'customElements' in window) defineMangoAVPlayer();\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/player.ts"],"sourcesContent":["export { defineMangoAVPlayer, MangoAVPlayerElement } from './components/mango-av-player';\n\nimport { defineMangoAVPlayer } from './components/mango-av-player';\nif (typeof window !== 'undefined' && 'customElements' in window) defineMangoAVPlayer();\n"],"mappings":";;;;;;;;AAGA,IAAI,OAAO,WAAW,eAAe,oBAAoB,OAAQ,qBAAoB;","names":[]}
|