@vindral/web-sdk 3.0.8 → 3.1.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.
Files changed (4) hide show
  1. package/index.d.ts +16 -0
  2. package/index.mjs +1159 -1129
  3. package/index.umd.js +5 -5
  4. package/package.json +2 -1
package/index.d.ts CHANGED
@@ -753,6 +753,13 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
753
753
  * Set the current volume.
754
754
  * Setting this to 0 is not equivalent to muting the audio.
755
755
  * Setting this to >0 is not equivalent to unmuting the audio.
756
+ *
757
+ * Note that setting volume is not allowed on iPadOS and iOS devices.
758
+ * This is an OS/browser limitation on the video element.
759
+ *
760
+ * [Read more about it on Apple docs](https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/Using_HTML5_Audio_Video/Device-SpecificConsiderations/Device-SpecificConsiderations.html)
761
+ * for iOS-Specific Considerations. The following section is the important part:
762
+ * ```On iOS devices, the audio level is always under the user's physical control. The volume property is not settable in JavaScript. Reading the volume property always returns 1.```
756
763
  */
757
764
  set volume(volume: number);
758
765
  /**
@@ -1150,6 +1157,14 @@ export interface Options {
1150
1157
  * Note: We recommend to keep this at the default value unless you have very specific needs.
1151
1158
  */
1152
1159
  mseEnabled?: boolean;
1160
+ /**
1161
+ * Enables Managed Media Source on iOS devices.
1162
+ *
1163
+ * It is disabled by default.
1164
+ *
1165
+ * Note: This will be removed and merged with mseEnabled in a future release once iOS releases ManagedMediaSource.
1166
+ */
1167
+ managedMseEnabled?: boolean;
1153
1168
  /**
1154
1169
  * Enable Opus with the MediaSource API on supported browsers.
1155
1170
  *
@@ -1394,6 +1409,7 @@ declare const defaultOptions: {
1394
1409
  abrEnabled: boolean;
1395
1410
  burstEnabled: boolean;
1396
1411
  mseEnabled: boolean;
1412
+ managedMseEnabled: boolean;
1397
1413
  mseOpusEnabled: boolean;
1398
1414
  muted: boolean;
1399
1415
  minBufferTime: number;