@vidtreo/recorder 1.10.0 → 1.11.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/dist/index.d.ts CHANGED
@@ -455,6 +455,7 @@ export type TranscodedAudio = {
455
455
  };
456
456
 
457
457
  export declare const DISABLED_AUDIO_RECORDING_CONFIG: Readonly<AudioRecordingConfig>;
458
+ export declare const DEMO_AUDIO_RECORDING_CONFIG: Readonly<AudioRecordingConfig>;
458
459
  export declare function parseAudioRecordingConfig(value: unknown): AudioRecordingConfig;
459
460
  export declare function requireEnabledAudioRecordingConfig(config: AudioRecordingConfig | undefined): AudioRecordingConfig;
460
461
 
@@ -1123,6 +1124,7 @@ export declare class ConfigManager {
1123
1124
  private configFetched;
1124
1125
  private configReady;
1125
1126
  initialize(apiKey: string | null, backendUrl: string | null, getAccessToken?: AccessTokenProvider | null): Promise<void>;
1127
+ applyDemoConfig(): void;
1126
1128
  fetchConfig(): Promise<void>;
1127
1129
  getConfig(): Promise<TranscodeConfig>;
1128
1130
  getConfigForRecording(): TranscodeConfig;
package/dist/index.js CHANGED
@@ -544,6 +544,10 @@ var DISABLED_AUDIO_RECORDING_CONFIG = Object.freeze({
544
544
  autoGain: true,
545
545
  normalize: false
546
546
  });
547
+ var DEMO_AUDIO_RECORDING_CONFIG = Object.freeze({
548
+ ...DISABLED_AUDIO_RECORDING_CONFIG,
549
+ enabled: true
550
+ });
547
551
  function isRecord(value) {
548
552
  return typeof value === "object" && value !== null && !Array.isArray(value);
549
553
  }
@@ -1098,6 +1102,12 @@ class ConfigManager {
1098
1102
  }
1099
1103
  this.fetchConfigInBackground();
1100
1104
  }
1105
+ applyDemoConfig() {
1106
+ this.currentConfig = {
1107
+ ...DEFAULT_TRANSCODE_CONFIG,
1108
+ audioRecording: { ...DEMO_AUDIO_RECORDING_CONFIG }
1109
+ };
1110
+ }
1101
1111
  async fetchConfig() {
1102
1112
  if (!this.configService) {
1103
1113
  return;
@@ -9091,7 +9101,7 @@ function resolveDeviceError(input) {
9091
9101
  // package.json
9092
9102
  var package_default = {
9093
9103
  name: "@vidtreo/recorder",
9094
- version: "1.10.0",
9104
+ version: "1.11.0",
9095
9105
  type: "module",
9096
9106
  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.",
9097
9107
  main: "./dist/index.js",
@@ -32185,6 +32195,9 @@ class RecorderController {
32185
32195
  isDemo = config.demo;
32186
32196
  }
32187
32197
  this.isDemo = isDemo;
32198
+ if (isDemo) {
32199
+ this.configManager.applyDemoConfig();
32200
+ }
32188
32201
  let apiKey = null;
32189
32202
  if (typeof config.apiKey === "string" && config.apiKey.length > 0) {
32190
32203
  apiKey = config.apiKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidtreo/recorder",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
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",