@vidtreo/recorder 1.7.7 → 1.7.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/index.d.ts +11 -0
- package/dist/index.js +6 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -185,6 +185,17 @@ export {};
|
|
|
185
185
|
|
|
186
186
|
export {};
|
|
187
187
|
|
|
188
|
+
export type MediaStats = {
|
|
189
|
+
audioChannels: number;
|
|
190
|
+
audioDuration: number;
|
|
191
|
+
audioSampleRate: number;
|
|
192
|
+
videoFrameCount: number;
|
|
193
|
+
videoFrameRate: number;
|
|
194
|
+
videoDuration: number;
|
|
195
|
+
};
|
|
196
|
+
export declare function inspectMedia(blob: Blob): Promise<MediaStats>;
|
|
197
|
+
export declare function transcodePreservingCadence(blob: Blob): Promise<Blob>;
|
|
198
|
+
|
|
188
199
|
export {};
|
|
189
200
|
|
|
190
201
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -6315,7 +6315,7 @@ function resolveDeviceError(input) {
|
|
|
6315
6315
|
// package.json
|
|
6316
6316
|
var package_default = {
|
|
6317
6317
|
name: "@vidtreo/recorder",
|
|
6318
|
-
version: "1.7.
|
|
6318
|
+
version: "1.7.9",
|
|
6319
6319
|
type: "module",
|
|
6320
6320
|
description: "Vidtreo SDK for browser-based video recording and transcoding. Features include camera/screen recording, real-time MP4 transcoding, audio level analysis, mute/pause controls, source switching, device selection, and automatic backend uploads. Similar to Ziggeo and Addpipe, Vidtreo provides enterprise-grade video processing capabilities for web applications.",
|
|
6321
6321
|
main: "./dist/index.js",
|
|
@@ -22766,10 +22766,6 @@ var DEFAULT_ROUTE_DECISION2 = {
|
|
|
22766
22766
|
var DEFAULT_RECORDING_MANAGER_DEPENDENCIES = {
|
|
22767
22767
|
transcodeVideo
|
|
22768
22768
|
};
|
|
22769
|
-
function isBlobAlreadyInTargetFormat(blob, config) {
|
|
22770
|
-
const expectedMimeTypePrefix = getMimeTypeForOutputFormat(config.format);
|
|
22771
|
-
return blob.type.toLowerCase().startsWith(expectedMimeTypePrefix);
|
|
22772
|
-
}
|
|
22773
22769
|
|
|
22774
22770
|
class RecordingManager {
|
|
22775
22771
|
recordingState = RECORDING_STATE_IDLE;
|
|
@@ -23112,11 +23108,12 @@ class RecordingManager {
|
|
|
23112
23108
|
if (!this.activeRecordingConfig) {
|
|
23113
23109
|
throw new Error("Recording config unavailable for final video processing");
|
|
23114
23110
|
}
|
|
23115
|
-
|
|
23116
|
-
|
|
23117
|
-
|
|
23111
|
+
const transcodeConfig = {
|
|
23112
|
+
...this.activeRecordingConfig,
|
|
23113
|
+
fps: undefined
|
|
23114
|
+
};
|
|
23118
23115
|
this.callbacks.onTranscodingProgress?.(0);
|
|
23119
|
-
const result = await this.dependencies.transcodeVideo(blob,
|
|
23116
|
+
const result = await this.dependencies.transcodeVideo(blob, transcodeConfig, (progress) => {
|
|
23120
23117
|
this.callbacks.onTranscodingProgress?.(progress);
|
|
23121
23118
|
});
|
|
23122
23119
|
this.callbacks.onTranscodingProgress?.(1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidtreo/recorder",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vidtreo SDK for browser-based video recording and transcoding. Features include camera/screen recording, real-time MP4 transcoding, audio level analysis, mute/pause controls, source switching, device selection, and automatic backend uploads. Similar to Ziggeo and Addpipe, Vidtreo provides enterprise-grade video processing capabilities for web applications.",
|
|
6
6
|
"main": "./dist/index.js",
|