@vindral/web-sdk 3.1.0 → 3.2.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/index.d.ts CHANGED
@@ -597,11 +597,36 @@ interface SyncModuleStatistics {
597
597
  timeshiftDriftAdjustmentCount: number;
598
598
  seekTime: number;
599
599
  }
600
- interface UserAgentInformation {
601
- userAgent: string;
602
- locationOrigin: string;
603
- locationPath: string;
604
- ancestorOrigins?: string[];
600
+ declare class UserAgentInformation {
601
+ private highEntropyValues?;
602
+ constructor();
603
+ getUserAgentInformation(): {
604
+ userAgentLegacy: string;
605
+ ua: {
606
+ browser: {
607
+ brands: string[];
608
+ fullVersionBrands: string[];
609
+ majorVersions: string[];
610
+ };
611
+ device: string;
612
+ os: {
613
+ family: string;
614
+ version: string;
615
+ major_version: number;
616
+ };
617
+ };
618
+ locationOrigin: string;
619
+ locationPath: string;
620
+ ancestorOrigins: string[] | undefined;
621
+ userAgent?: undefined;
622
+ } | {
623
+ userAgent: string;
624
+ locationOrigin: string;
625
+ locationPath: string;
626
+ ancestorOrigins: string[] | undefined;
627
+ userAgentLegacy?: undefined;
628
+ ua?: undefined;
629
+ };
605
630
  }
606
631
  declare type ModuleStatistics = AdaptivityStatistics & BufferTimeStatistics & ConnectionStatistics & ConstraintCapStatistics & DecoderStatistics & DocumentStateModulesStatistics & IncomingDataModuleStatistics & MseModuleStatistics & PlaybackModuleStatistics & QualityOfServiceModuleStatistics & RenditionsModuleStatistics & SyncModuleStatistics & TelemetryModuleStatistics & VideoPlayerStatistics;
607
632
  /**
@@ -612,7 +637,7 @@ declare type ModuleStatistics = AdaptivityStatistics & BufferTimeStatistics & Co
612
637
  *
613
638
  * @interface
614
639
  */
615
- export declare type Statistics = ModuleStatistics & UserAgentInformation & {
640
+ export declare type Statistics = ModuleStatistics & ReturnType<UserAgentInformation["getUserAgentInformation"]> & {
616
641
  /**
617
642
  * Version of the @vindral/web-sdk being used.
618
643
  */
@@ -737,6 +762,7 @@ export declare class Vindral extends Emitter<PublicVindralEvents> {
737
762
  private cachedEdges;
738
763
  private shiftedEdges;
739
764
  private pool;
765
+ private userAgentInformation;
740
766
  private sampleProcessingSesssions;
741
767
  private sizes;
742
768
  private isSuspended;
@@ -1157,14 +1183,6 @@ export interface Options {
1157
1183
  * Note: We recommend to keep this at the default value unless you have very specific needs.
1158
1184
  */
1159
1185
  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;
1168
1186
  /**
1169
1187
  * Enable Opus with the MediaSource API on supported browsers.
1170
1188
  *
@@ -1409,7 +1427,6 @@ declare const defaultOptions: {
1409
1427
  abrEnabled: boolean;
1410
1428
  burstEnabled: boolean;
1411
1429
  mseEnabled: boolean;
1412
- managedMseEnabled: boolean;
1413
1430
  mseOpusEnabled: boolean;
1414
1431
  muted: boolean;
1415
1432
  minBufferTime: number;