@vocalstack/player 0.1.0-alpha.11 → 0.1.0-alpha.13
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.js +2101 -2093
- package/dist/index.js.map +1 -1
- package/dist/ui/VocalStackPlayer.d.ts +3 -0
- package/dist/ui/core.d.ts +3 -1
- package/package.json +1 -1
|
@@ -27,12 +27,14 @@ export interface PlaybackState {
|
|
|
27
27
|
idx: number;
|
|
28
28
|
seekN: number;
|
|
29
29
|
lang: string | null;
|
|
30
|
+
muted: boolean;
|
|
30
31
|
}
|
|
31
32
|
export interface PlayerHandle {
|
|
32
33
|
seek: (t: number) => void;
|
|
33
34
|
play: () => void;
|
|
34
35
|
pause: () => void;
|
|
35
36
|
toggle: () => void;
|
|
37
|
+
toggleMute: () => void;
|
|
36
38
|
}
|
|
37
39
|
export interface VocalStackPlayerProps {
|
|
38
40
|
id?: string;
|
|
@@ -53,6 +55,7 @@ export interface VocalStackPlayerProps {
|
|
|
53
55
|
endCard?: EndCardOptions | false;
|
|
54
56
|
appUrl?: string;
|
|
55
57
|
poster?: string | null;
|
|
58
|
+
voice?: string | null;
|
|
56
59
|
settingsExtra?: ReactNode;
|
|
57
60
|
shareUrl?: (t: number | null) => string;
|
|
58
61
|
onSource?: (s: LoadedSource) => void;
|
package/dist/ui/core.d.ts
CHANGED
|
@@ -118,8 +118,9 @@ export interface VoiceSheetHooks {
|
|
|
118
118
|
castBuilding?: (sp: CastMember, ctx: VoiceSheetCtx) => boolean;
|
|
119
119
|
castWarn?: (sp: CastMember, ctx: VoiceSheetCtx) => string | null;
|
|
120
120
|
}
|
|
121
|
-
export declare function useTxVoice({ recordingId, model, rows, lenS, ended, cred, langs, srcLang, canTranslate, pickedLang, setPickedLang, side, hearOriginal, timed, stockVoices, stickyPicker, pickerBusy, voiceSheet }: {
|
|
121
|
+
export declare function useTxVoice({ recordingId, model, rows, lenS, ended, cred, langs, srcLang, canTranslate, pickedLang, setPickedLang, side, hearOriginal, timed, stockVoices, stickyPicker, pickerBusy, voiceSheet, forcedVoice }: {
|
|
122
122
|
voiceSheet?: VoiceSheetHooks;
|
|
123
|
+
forcedVoice?: string | null;
|
|
123
124
|
hearOriginal?: boolean;
|
|
124
125
|
stockVoices?: boolean;
|
|
125
126
|
stickyPicker?: boolean;
|
|
@@ -184,6 +185,7 @@ export declare function useTxVoice({ recordingId, model, rows, lenS, ended, cred
|
|
|
184
185
|
resetCast: () => void;
|
|
185
186
|
readLang: string | null;
|
|
186
187
|
readVoiceKey: string;
|
|
188
|
+
pickedVoiceKey: string | null;
|
|
187
189
|
readVoiceName: string;
|
|
188
190
|
canSpeak: boolean;
|
|
189
191
|
requestTrack: () => Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vocalstack/player",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.13",
|
|
4
4
|
"description": "VocalStack video and transcript player for React: synced transcript, subtitles, spoken translations and background sound, over the public VocalStack API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|