bloom-player 2.19.9-alpha.1 → 2.19.9
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/{bloomPlayer-C9uip0ge.css → bloomPlayer-CMetOJLC.css} +1 -1
- package/dist/bloomPlayer.M4oHdiC2.js +8060 -0
- package/dist/bloomplayer.htm +2 -2
- package/lib/narration.d.ts +6 -1
- package/lib/shared.es.js +4643 -4602
- package/lib/shared.es.js.map +1 -1
- package/package.json +1 -1
- package/src/shared/narration.ts +91 -5
- package/dist/bloomPlayer.CwARRpl-.js +0 -8060
package/dist/bloomplayer.htm
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<head>
|
|
8
8
|
<meta charset="UTF-8" />
|
|
9
9
|
<!-- At build time, we replace this with the actual css file -->
|
|
10
|
-
<link rel="stylesheet" href="bloomPlayer-
|
|
10
|
+
<link rel="stylesheet" href="bloomPlayer-CMetOJLC.css">
|
|
11
11
|
</head>
|
|
12
12
|
|
|
13
13
|
<!-- About the background-color here... the bloomPlayer.js will set the background color
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<!-- At build time, we replace the target of this script tag to point at the
|
|
20
20
|
the bloom player bundle with the cache-busting hash in its name. -->
|
|
21
|
-
<script src="bloomPlayer.
|
|
21
|
+
<script src="bloomPlayer.M4oHdiC2.js"></script>
|
|
22
22
|
</body>
|
|
23
23
|
|
|
24
24
|
|
package/lib/narration.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare function getCurrentNarrationPage(): HTMLElement;
|
|
|
35
35
|
export declare const PageNarrationComplete: LiteEvent<HTMLElement>;
|
|
36
36
|
export declare const PlayCompleted: LiteEvent<HTMLElement>;
|
|
37
37
|
export declare const PlayFailed: LiteEvent<HTMLElement>;
|
|
38
|
+
export declare const PlayUnblocked: LiteEvent<void>;
|
|
38
39
|
export declare const ToggleImageDescription: LiteEvent<boolean>;
|
|
39
40
|
export declare function setIncludeImageDescriptions(b: boolean): void;
|
|
40
41
|
export declare function playAllSentences(page: HTMLElement | null, canvasToExclude?: HTMLElement): void;
|
|
@@ -46,7 +47,11 @@ export declare function pauseNarration(): void;
|
|
|
46
47
|
export declare function computeDuration(page: HTMLElement): number;
|
|
47
48
|
export declare function hidingPage(): void;
|
|
48
49
|
export declare function stopPlayAllVideoPlayback(): void;
|
|
49
|
-
export declare function
|
|
50
|
+
export declare function isTransientVideoPlayFailure(reason: any): boolean;
|
|
51
|
+
export declare function showVideoFirstFrameWhenReady(video: HTMLVideoElement, shouldPauseAfterPlaying?: () => boolean, onAutoplayBlocked?: () => void): void;
|
|
50
52
|
export declare function playAllVideo(elements: HTMLVideoElement[], then: () => void): void;
|
|
53
|
+
export declare function isDefiniteVideoPlaybackSupportFailure(video: HTMLVideoElement, reason?: any): boolean;
|
|
51
54
|
export declare function showVideoError(video: HTMLVideoElement): void;
|
|
55
|
+
export declare function showVideoAutoplayBlockedHint(video: HTMLVideoElement): void;
|
|
56
|
+
export declare function hideVideoAutoplayBlockedHint(video: HTMLVideoElement): void;
|
|
52
57
|
export declare function hideVideoError(video: HTMLVideoElement): void;
|