@vidtreo/recorder 1.7.7 → 1.7.8
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 +1 -8
- package/package.json +1 -1
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.8",
|
|
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,9 +23108,6 @@ class RecordingManager {
|
|
|
23112
23108
|
if (!this.activeRecordingConfig) {
|
|
23113
23109
|
throw new Error("Recording config unavailable for final video processing");
|
|
23114
23110
|
}
|
|
23115
|
-
if (isBlobAlreadyInTargetFormat(blob, this.activeRecordingConfig)) {
|
|
23116
|
-
return blob;
|
|
23117
|
-
}
|
|
23118
23111
|
this.callbacks.onTranscodingProgress?.(0);
|
|
23119
23112
|
const result = await this.dependencies.transcodeVideo(blob, this.activeRecordingConfig, (progress) => {
|
|
23120
23113
|
this.callbacks.onTranscodingProgress?.(progress);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vidtreo/recorder",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.8",
|
|
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",
|