@vidtreo/recorder-vue 1.6.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/README.md +412 -0
- package/dist/components/MobileWebRecorderUI.vue.d.ts +7 -0
- package/dist/components/NativeCameraUI.vue.d.ts +7 -0
- package/dist/components/StandardRecorder.vue.d.ts +29 -0
- package/dist/components/VidtreoRecorder.vue.d.ts +29 -0
- package/dist/components/ui/AudioVisualizer.vue.d.ts +7 -0
- package/dist/components/ui/AudioWarningToast.vue.d.ts +35 -0
- package/dist/components/ui/ConfigurationErrorDisplay.vue.d.ts +9 -0
- package/dist/components/ui/DeviceErrorOverlay.vue.d.ts +14 -0
- package/dist/components/ui/DeviceSelector.vue.d.ts +18 -0
- package/dist/components/ui/ErrorBoundary.vue.d.ts +21 -0
- package/dist/components/ui/PermissionFlowSteps.vue.d.ts +40 -0
- package/dist/components/ui/PermissionRecoveryGuide.vue.d.ts +7 -0
- package/dist/components/ui/PreviewContent.vue.d.ts +72 -0
- package/dist/components/ui/RecordingControlsButtons.vue.d.ts +72 -0
- package/dist/components/ui/SettingsPanel.vue.d.ts +34 -0
- package/dist/components/ui/TranscodingProgress.vue.d.ts +6 -0
- package/dist/components/ui/UploadProgress.vue.d.ts +7 -0
- package/dist/components/ui/VideoPreview.vue.d.ts +16 -0
- package/dist/components/ui/VideoPreviewSkeleton.vue.d.ts +8 -0
- package/dist/composables/use-mobile-web-recorder.d.ts +8 -0
- package/dist/composables/use-native-camera.d.ts +22 -0
- package/dist/composables/use-permission-flow.d.ts +22 -0
- package/dist/composables/use-recorder-translations.d.ts +46 -0
- package/dist/composables/use-vidtreo-recorder.d.ts +2 -0
- package/dist/constants/constants.d.ts +1 -0
- package/dist/i18n/translations.d.ts +96 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1 -0
- package/dist/recorder-vue.css +1 -0
- package/dist/services/config-service-wrapper.d.ts +15 -0
- package/dist/services/upload-service-wrapper.d.ts +12 -0
- package/dist/types/index.d.ts +128 -0
- package/dist/utils/button-visibility.d.ts +18 -0
- package/dist/utils/config-builder.d.ts +4 -0
- package/dist/utils/device-error-overlay-mapper.d.ts +29 -0
- package/dist/utils/download-file.d.ts +1 -0
- package/dist/utils/env-utils.d.ts +1 -0
- package/dist/utils/min-time-record.d.ts +9 -0
- package/dist/utils/recorder-constants.d.ts +12 -0
- package/package.json +68 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { RecorderController } from "@vidtreo/recorder";
|
|
2
|
+
import type { ButtonVisibility } from "../../utils/button-visibility";
|
|
3
|
+
import { type RecordingControlsButtonsTranslations } from "./RecordingControlsButtons.vue";
|
|
4
|
+
export type PreviewContentState = {
|
|
5
|
+
stream: MediaStream | null;
|
|
6
|
+
transitionMessage: string | null;
|
|
7
|
+
recordingState: string;
|
|
8
|
+
countdown: number | null;
|
|
9
|
+
timer: string;
|
|
10
|
+
isMuted: boolean;
|
|
11
|
+
isPaused: boolean;
|
|
12
|
+
isAudioReady: boolean;
|
|
13
|
+
errorCode: string | null;
|
|
14
|
+
browserName: string | null;
|
|
15
|
+
browserVersion: string | null;
|
|
16
|
+
};
|
|
17
|
+
export type PreviewContentTranslations = {
|
|
18
|
+
initializingCamera: string;
|
|
19
|
+
grantPermissions: string;
|
|
20
|
+
browserUnsupported: string;
|
|
21
|
+
browserUnsupportedDynamic: string;
|
|
22
|
+
browserUnsupportedSafari: string;
|
|
23
|
+
browserUnsupportedFirefox: string;
|
|
24
|
+
retryCamera: string;
|
|
25
|
+
cameraInUse: string;
|
|
26
|
+
cameraNotFound: string;
|
|
27
|
+
cameraPermissionDenied: string;
|
|
28
|
+
failedToStartCamera: string;
|
|
29
|
+
audioInUse: string;
|
|
30
|
+
audioNotFound: string;
|
|
31
|
+
audioPermissionDenied: string;
|
|
32
|
+
failedToStartAudio: string;
|
|
33
|
+
switchingDevice: string;
|
|
34
|
+
recordingStartsIn: string;
|
|
35
|
+
rec: string;
|
|
36
|
+
};
|
|
37
|
+
type __VLS_Props = {
|
|
38
|
+
state: PreviewContentState;
|
|
39
|
+
isVideoLoaded: boolean;
|
|
40
|
+
isRecording: boolean;
|
|
41
|
+
controller: RecorderController | null;
|
|
42
|
+
audioLevel: number;
|
|
43
|
+
buttonVisibility: ButtonVisibility;
|
|
44
|
+
currentSourceType: "camera" | "screen";
|
|
45
|
+
isStopLocked: boolean;
|
|
46
|
+
stopLockedTooltip: string;
|
|
47
|
+
translations: PreviewContentTranslations;
|
|
48
|
+
buttonTranslations: RecordingControlsButtonsTranslations;
|
|
49
|
+
};
|
|
50
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
pause: () => any;
|
|
52
|
+
resume: () => any;
|
|
53
|
+
switchSource: () => any;
|
|
54
|
+
download: () => any;
|
|
55
|
+
toggleSettings: () => any;
|
|
56
|
+
startRecording: () => any;
|
|
57
|
+
stopRecording: () => any;
|
|
58
|
+
toggleMute: () => any;
|
|
59
|
+
loadedChange: (loaded: boolean) => any;
|
|
60
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
61
|
+
onPause?: (() => any) | undefined;
|
|
62
|
+
onResume?: (() => any) | undefined;
|
|
63
|
+
onSwitchSource?: (() => any) | undefined;
|
|
64
|
+
onDownload?: (() => any) | undefined;
|
|
65
|
+
onToggleSettings?: (() => any) | undefined;
|
|
66
|
+
onStartRecording?: (() => any) | undefined;
|
|
67
|
+
onStopRecording?: (() => any) | undefined;
|
|
68
|
+
onToggleMute?: (() => any) | undefined;
|
|
69
|
+
onLoadedChange?: ((loaded: boolean) => any) | undefined;
|
|
70
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
71
|
+
declare const _default: typeof __VLS_export;
|
|
72
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export type RecordingControlsButtonsTranslations = {
|
|
2
|
+
settings: string;
|
|
3
|
+
record: string;
|
|
4
|
+
stop: string;
|
|
5
|
+
minimumRecordingTimeNotReached: string;
|
|
6
|
+
pause: string;
|
|
7
|
+
resume: string;
|
|
8
|
+
mute: string;
|
|
9
|
+
unmute: string;
|
|
10
|
+
switchSource: string;
|
|
11
|
+
download: string;
|
|
12
|
+
microphoneConnecting: string;
|
|
13
|
+
};
|
|
14
|
+
declare const DEFAULT_TRANSLATIONS: RecordingControlsButtonsTranslations;
|
|
15
|
+
export { DEFAULT_TRANSLATIONS as RECORDING_CONTROLS_DEFAULT_TRANSLATIONS };
|
|
16
|
+
declare const _default: typeof __VLS_export;
|
|
17
|
+
export default _default;
|
|
18
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
19
|
+
buttonVisibility: {
|
|
20
|
+
showSettingsButton: boolean;
|
|
21
|
+
showMuteButton: boolean;
|
|
22
|
+
showPauseButton: boolean;
|
|
23
|
+
showResumeButton: boolean;
|
|
24
|
+
showStopButton: boolean;
|
|
25
|
+
showSwitchSourceButton: boolean;
|
|
26
|
+
showDownloadButton?: boolean;
|
|
27
|
+
};
|
|
28
|
+
recordingState: string;
|
|
29
|
+
isMuted: boolean;
|
|
30
|
+
isAudioReady: boolean;
|
|
31
|
+
currentSourceType: "camera" | "screen";
|
|
32
|
+
isStopLocked: boolean;
|
|
33
|
+
stopLockedTooltip: string;
|
|
34
|
+
translations?: RecordingControlsButtonsTranslations;
|
|
35
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
pause: () => any;
|
|
37
|
+
resume: () => any;
|
|
38
|
+
switchSource: () => any;
|
|
39
|
+
download: () => any;
|
|
40
|
+
toggleSettings: () => any;
|
|
41
|
+
startRecording: () => any;
|
|
42
|
+
stopRecording: () => any;
|
|
43
|
+
toggleMute: () => any;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
45
|
+
buttonVisibility: {
|
|
46
|
+
showSettingsButton: boolean;
|
|
47
|
+
showMuteButton: boolean;
|
|
48
|
+
showPauseButton: boolean;
|
|
49
|
+
showResumeButton: boolean;
|
|
50
|
+
showStopButton: boolean;
|
|
51
|
+
showSwitchSourceButton: boolean;
|
|
52
|
+
showDownloadButton?: boolean;
|
|
53
|
+
};
|
|
54
|
+
recordingState: string;
|
|
55
|
+
isMuted: boolean;
|
|
56
|
+
isAudioReady: boolean;
|
|
57
|
+
currentSourceType: "camera" | "screen";
|
|
58
|
+
isStopLocked: boolean;
|
|
59
|
+
stopLockedTooltip: string;
|
|
60
|
+
translations?: RecordingControlsButtonsTranslations;
|
|
61
|
+
}> & Readonly<{
|
|
62
|
+
onPause?: (() => any) | undefined;
|
|
63
|
+
onResume?: (() => any) | undefined;
|
|
64
|
+
onSwitchSource?: (() => any) | undefined;
|
|
65
|
+
onDownload?: (() => any) | undefined;
|
|
66
|
+
onToggleSettings?: (() => any) | undefined;
|
|
67
|
+
onStartRecording?: (() => any) | undefined;
|
|
68
|
+
onStopRecording?: (() => any) | undefined;
|
|
69
|
+
onToggleMute?: (() => any) | undefined;
|
|
70
|
+
}>, {
|
|
71
|
+
translations: RecordingControlsButtonsTranslations;
|
|
72
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type SettingsPanelTranslations = {
|
|
2
|
+
settings: string;
|
|
3
|
+
camera: string;
|
|
4
|
+
microphone: string;
|
|
5
|
+
};
|
|
6
|
+
declare const DEFAULT_TRANSLATIONS: SettingsPanelTranslations;
|
|
7
|
+
export { DEFAULT_TRANSLATIONS as SETTINGS_PANEL_DEFAULT_TRANSLATIONS };
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<{
|
|
11
|
+
devices: {
|
|
12
|
+
cameras: MediaDeviceInfo[];
|
|
13
|
+
microphones: MediaDeviceInfo[];
|
|
14
|
+
selectedCamera: string | null;
|
|
15
|
+
selectedMic: string | null;
|
|
16
|
+
};
|
|
17
|
+
translations?: SettingsPanelTranslations;
|
|
18
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
cameraChange: (value: string) => any;
|
|
20
|
+
micChange: (value: string) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
22
|
+
devices: {
|
|
23
|
+
cameras: MediaDeviceInfo[];
|
|
24
|
+
microphones: MediaDeviceInfo[];
|
|
25
|
+
selectedCamera: string | null;
|
|
26
|
+
selectedMic: string | null;
|
|
27
|
+
};
|
|
28
|
+
translations?: SettingsPanelTranslations;
|
|
29
|
+
}> & Readonly<{
|
|
30
|
+
onCameraChange?: ((value: string) => any) | undefined;
|
|
31
|
+
onMicChange?: ((value: string) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
translations: SettingsPanelTranslations;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
progress: number;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
progress: number | null;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RecorderController } from "@vidtreo/recorder";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
controller?: RecorderController | null;
|
|
4
|
+
stream?: MediaStream | null;
|
|
5
|
+
transitionMessage?: string | null;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
loadedChange: (loaded: boolean) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onLoadedChange?: ((loaded: boolean) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
className: string;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
className?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
className: string;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { UseVidtreoRecorderConfig, UseVidtreoRecorderReturn } from "../types";
|
|
2
|
+
export type UseMobileWebRecorderReturn = UseVidtreoRecorderReturn & {
|
|
3
|
+
isModalOpen: import("vue").Ref<boolean>;
|
|
4
|
+
canCloseModal: import("vue").ComputedRef<boolean>;
|
|
5
|
+
openModal: () => void;
|
|
6
|
+
closeModal: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function useMobileWebRecorder(config: UseVidtreoRecorderConfig): UseMobileWebRecorderReturn;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type NativeCameraFile } from "@vidtreo/recorder";
|
|
2
|
+
import type { UseVidtreoRecorderConfig } from "../types";
|
|
3
|
+
export type NativeCameraState = {
|
|
4
|
+
file: NativeCameraFile | null;
|
|
5
|
+
transcodingProgress: number | null;
|
|
6
|
+
uploadProgress: number | null;
|
|
7
|
+
isTranscoding: boolean;
|
|
8
|
+
isConfigLoading: boolean;
|
|
9
|
+
error: string | null;
|
|
10
|
+
transcodedBlob: Blob | null;
|
|
11
|
+
};
|
|
12
|
+
export type NativeCameraActions = {
|
|
13
|
+
handleFileSelect: (selectedFile: File) => Promise<NativeCameraFile>;
|
|
14
|
+
processAndUpload: (fileToProcess?: NativeCameraFile) => Promise<void>;
|
|
15
|
+
downloadVideo: () => void;
|
|
16
|
+
reset: () => void;
|
|
17
|
+
};
|
|
18
|
+
export type UseNativeCameraReturn = {
|
|
19
|
+
state: NativeCameraState;
|
|
20
|
+
actions: NativeCameraActions;
|
|
21
|
+
};
|
|
22
|
+
export declare function useNativeCamera(config: UseVidtreoRecorderConfig): UseNativeCameraReturn;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { PermissionFlowChangeReason, PermissionFlowLanguage, PermissionFlowState, PermissionFlowStep } from "@vidtreo/recorder";
|
|
2
|
+
import { type ComputedRef, type MaybeRefOrGetter } from "vue";
|
|
3
|
+
export type PermissionStepStatus = PermissionFlowState["permissions"]["camera"];
|
|
4
|
+
export type PermissionFlowStepInfo = {
|
|
5
|
+
deviceType: "camera" | "microphone";
|
|
6
|
+
status: PermissionStepStatus;
|
|
7
|
+
};
|
|
8
|
+
export type UsePermissionFlowOptions = {
|
|
9
|
+
language?: MaybeRefOrGetter<PermissionFlowLanguage | undefined>;
|
|
10
|
+
onComplete?: (state: PermissionFlowState) => void;
|
|
11
|
+
onChange?: (state: PermissionFlowState, reason: PermissionFlowChangeReason) => void;
|
|
12
|
+
};
|
|
13
|
+
export type UsePermissionFlowReturn = {
|
|
14
|
+
isActive: ComputedRef<boolean>;
|
|
15
|
+
isComplete: ComputedRef<boolean>;
|
|
16
|
+
currentStep: ComputedRef<PermissionFlowStep>;
|
|
17
|
+
steps: ComputedRef<readonly PermissionFlowStepInfo[]>;
|
|
18
|
+
recoveryData: ComputedRef<PermissionFlowState["recoveryData"] | undefined>;
|
|
19
|
+
requestPermission: () => Promise<void>;
|
|
20
|
+
retryPermission: () => Promise<void>;
|
|
21
|
+
};
|
|
22
|
+
export declare function usePermissionFlow(options?: UsePermissionFlowOptions): UsePermissionFlowReturn;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ComputedRef, type MaybeRefOrGetter } from "vue";
|
|
2
|
+
import type { TranslationKeys } from "../i18n/translations";
|
|
3
|
+
export type PreviewTranslations = {
|
|
4
|
+
initializingCamera: string;
|
|
5
|
+
grantPermissions: string;
|
|
6
|
+
browserUnsupported: string;
|
|
7
|
+
browserUnsupportedDynamic: string;
|
|
8
|
+
browserUnsupportedSafari: string;
|
|
9
|
+
browserUnsupportedFirefox: string;
|
|
10
|
+
retryCamera: string;
|
|
11
|
+
cameraInUse: string;
|
|
12
|
+
cameraNotFound: string;
|
|
13
|
+
cameraPermissionDenied: string;
|
|
14
|
+
failedToStartCamera: string;
|
|
15
|
+
audioInUse: string;
|
|
16
|
+
audioNotFound: string;
|
|
17
|
+
audioPermissionDenied: string;
|
|
18
|
+
failedToStartAudio: string;
|
|
19
|
+
switchingDevice: string;
|
|
20
|
+
recordingStartsIn: string;
|
|
21
|
+
rec: string;
|
|
22
|
+
};
|
|
23
|
+
export type ButtonTranslations = {
|
|
24
|
+
settings: string;
|
|
25
|
+
record: string;
|
|
26
|
+
stop: string;
|
|
27
|
+
minimumRecordingTimeNotReached: string;
|
|
28
|
+
pause: string;
|
|
29
|
+
resume: string;
|
|
30
|
+
mute: string;
|
|
31
|
+
unmute: string;
|
|
32
|
+
switchSource: string;
|
|
33
|
+
download: string;
|
|
34
|
+
microphoneConnecting: string;
|
|
35
|
+
};
|
|
36
|
+
export type SettingsTranslations = {
|
|
37
|
+
settings: string;
|
|
38
|
+
camera: string;
|
|
39
|
+
microphone: string;
|
|
40
|
+
};
|
|
41
|
+
export type RecorderTranslations = {
|
|
42
|
+
preview: ComputedRef<PreviewTranslations>;
|
|
43
|
+
buttons: ComputedRef<ButtonTranslations>;
|
|
44
|
+
settings: ComputedRef<SettingsTranslations>;
|
|
45
|
+
};
|
|
46
|
+
export declare function useRecorderTranslations(translations: MaybeRefOrGetter<TranslationKeys>): RecorderTranslations;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_BACKEND_URL = "https://core.vidtreo.com";
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
export type TranslationKeys = {
|
|
2
|
+
initializingCamera: string;
|
|
3
|
+
grantPermissions: string;
|
|
4
|
+
browserUnsupported: string;
|
|
5
|
+
browserUnsupportedDynamic: string;
|
|
6
|
+
browserUnsupportedSafari: string;
|
|
7
|
+
browserUnsupportedFirefox: string;
|
|
8
|
+
retryCamera: string;
|
|
9
|
+
cameraInUse: string;
|
|
10
|
+
cameraNotFound: string;
|
|
11
|
+
cameraPermissionDenied: string;
|
|
12
|
+
failedToStartCamera: string;
|
|
13
|
+
audioInUse: string;
|
|
14
|
+
audioNotFound: string;
|
|
15
|
+
audioPermissionDenied: string;
|
|
16
|
+
failedToStartAudio: string;
|
|
17
|
+
audioErrorTitle: string;
|
|
18
|
+
audioErrorMessage: string;
|
|
19
|
+
audioErrorRetry: string;
|
|
20
|
+
audioMissingTitle: string;
|
|
21
|
+
audioMissingMessage: string;
|
|
22
|
+
audioSilentTitle: string;
|
|
23
|
+
audioSilentMessage: string;
|
|
24
|
+
audioProcessingErrorTitle: string;
|
|
25
|
+
audioProcessingErrorMessage: string;
|
|
26
|
+
audioMissingRetry: string;
|
|
27
|
+
audioWarningNoSignalTitle: string;
|
|
28
|
+
audioWarningNoSignalMessage: string;
|
|
29
|
+
audioWarningLowSignalTitle: string;
|
|
30
|
+
audioWarningLowSignalMessage: string;
|
|
31
|
+
audioWarningTrackEndedTitle: string;
|
|
32
|
+
audioWarningTrackEndedMessage: string;
|
|
33
|
+
audioWarningNoChunksTitle: string;
|
|
34
|
+
audioWarningNoChunksMessage: string;
|
|
35
|
+
audioWarningTrackMutedTitle: string;
|
|
36
|
+
audioWarningTrackMutedMessage: string;
|
|
37
|
+
audioWarningDismiss: string;
|
|
38
|
+
cameraErrorTitle: string;
|
|
39
|
+
cameraErrorMessage: string;
|
|
40
|
+
browserErrorTitle: string;
|
|
41
|
+
browserErrorMessage: string;
|
|
42
|
+
genericErrorTitle: string;
|
|
43
|
+
genericErrorMessage: string;
|
|
44
|
+
errorRetry: string;
|
|
45
|
+
switchingDevice: string;
|
|
46
|
+
recordingStartsIn: string;
|
|
47
|
+
switchingSource: string;
|
|
48
|
+
rec: string;
|
|
49
|
+
settings: string;
|
|
50
|
+
record: string;
|
|
51
|
+
stop: string;
|
|
52
|
+
pause: string;
|
|
53
|
+
resume: string;
|
|
54
|
+
mute: string;
|
|
55
|
+
unmute: string;
|
|
56
|
+
switchSource: string;
|
|
57
|
+
camera: string;
|
|
58
|
+
microphone: string;
|
|
59
|
+
microphoneConnecting: string;
|
|
60
|
+
minimumRecordingTimeNotReached: string;
|
|
61
|
+
uploading: string;
|
|
62
|
+
userInAnotherTab: string;
|
|
63
|
+
download: string;
|
|
64
|
+
nativeCameraSelectVideo: string;
|
|
65
|
+
nativeCameraRecordVideo: string;
|
|
66
|
+
nativeCameraProcessing: string;
|
|
67
|
+
nativeCameraConfigLoading: string;
|
|
68
|
+
errorTitle: string;
|
|
69
|
+
errorApiKeyRequired: string;
|
|
70
|
+
errorGeneric: string;
|
|
71
|
+
mobileOpenCamera: string;
|
|
72
|
+
mobileOpenCameraTitle: string;
|
|
73
|
+
mobileOpenCameraDescription: string;
|
|
74
|
+
mobileCloseCamera: string;
|
|
75
|
+
mobilePermissionDenied: string;
|
|
76
|
+
mobilePermissionDeniedDescription: string;
|
|
77
|
+
permissionFlowTitle: string;
|
|
78
|
+
permissionFlowCameraTitle: string;
|
|
79
|
+
permissionFlowMicrophoneTitle: string;
|
|
80
|
+
permissionFlowCameraLabel: string;
|
|
81
|
+
permissionFlowMicrophoneLabel: string;
|
|
82
|
+
permissionFlowStatusPending: string;
|
|
83
|
+
permissionFlowStatusGranted: string;
|
|
84
|
+
permissionFlowStatusDenied: string;
|
|
85
|
+
permissionFlowStatusRequesting: string;
|
|
86
|
+
permissionFlowAllowCamera: string;
|
|
87
|
+
permissionFlowAllowMicrophone: string;
|
|
88
|
+
permissionFlowRetry: string;
|
|
89
|
+
permissionFlowRecoveryTitle: string;
|
|
90
|
+
permissionFlowRecoveryInstructions: string;
|
|
91
|
+
permissionFlowRecoveryGuideHint: string;
|
|
92
|
+
permissionFlowConnecting: string;
|
|
93
|
+
};
|
|
94
|
+
export declare const defaultTranslations: Record<string, TranslationKeys>;
|
|
95
|
+
export type PartialTranslations = Partial<TranslationKeys>;
|
|
96
|
+
export declare function getTranslations(lang?: string, customTexts?: PartialTranslations): TranslationKeys;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "@vidtreo/ui-styles/recorder.css";
|
|
2
|
+
export { default as MobileWebRecorderUI } from "./components/MobileWebRecorderUI.vue";
|
|
3
|
+
export { default as NativeCameraUI } from "./components/NativeCameraUI.vue";
|
|
4
|
+
export { default as StandardRecorder } from "./components/StandardRecorder.vue";
|
|
5
|
+
export { default as VidtreoRecorder } from "./components/VidtreoRecorder.vue";
|
|
6
|
+
export type { UseMobileWebRecorderReturn } from "./composables/use-mobile-web-recorder";
|
|
7
|
+
export { useMobileWebRecorder } from "./composables/use-mobile-web-recorder";
|
|
8
|
+
export type { NativeCameraActions, NativeCameraState, UseNativeCameraReturn, } from "./composables/use-native-camera";
|
|
9
|
+
export { useNativeCamera } from "./composables/use-native-camera";
|
|
10
|
+
export type { PermissionFlowStepInfo, PermissionStepStatus, UsePermissionFlowOptions, UsePermissionFlowReturn, } from "./composables/use-permission-flow";
|
|
11
|
+
export { usePermissionFlow } from "./composables/use-permission-flow";
|
|
12
|
+
export type { ButtonTranslations, PreviewTranslations, RecorderTranslations, SettingsTranslations, } from "./composables/use-recorder-translations";
|
|
13
|
+
export { useRecorderTranslations } from "./composables/use-recorder-translations";
|
|
14
|
+
export { useVidtreoRecorder } from "./composables/use-vidtreo-recorder";
|
|
15
|
+
export { defaultTranslations, getTranslations, type PartialTranslations, type TranslationKeys, } from "./i18n/translations";
|
|
16
|
+
export type { AudioWarning, MobileMode, RecordingState, RecordingStopResult, SourceType, UseVidtreoRecorderConfig, UseVidtreoRecorderReturn, VidtreoRecorderActions, VidtreoRecorderEmits, VidtreoRecorderProps, VidtreoRecorderState, } from "./types";
|