@vindral/web-sdk 4.1.4-13-g5a363d43 → 4.1.4-15-g2fdfd007

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.1.4-13-g5a363d43",
2
+ "version": "4.1.4-15-g2fdfd007",
3
3
  "name": "@vindral/web-sdk",
4
4
  "main": "./legacy.umd.js",
5
5
  "module": "./legacy.es.js",
package/player.d.ts CHANGED
@@ -773,6 +773,26 @@ interface SyncModuleStatistics {
773
773
  timeshiftDriftAdjustmentCount: number;
774
774
  seekTime: number;
775
775
  }
776
+ interface JitterStatistics {
777
+ /** Current jitter in ms (RFC 3550 style, smoothed with /16) */
778
+ jitter: number;
779
+ /** Reactive jitter in ms (more sensitive, smoothed with /4) - better for detecting spikes */
780
+ reactiveJitter: number;
781
+ /** Maximum jitter in the recent window (last ~50 samples) - for spike detection */
782
+ recentMaxJitter: number;
783
+ /** Average jitter over the sample window */
784
+ averageJitter: number;
785
+ /** Maximum jitter seen in the full sample window */
786
+ maxJitter: number;
787
+ /** Minimum jitter seen in the sample window */
788
+ minJitter: number;
789
+ /** Number of samples in the jitter calculation */
790
+ sampleCount: number;
791
+ }
792
+ interface JitterModuleStatistics {
793
+ audioJitter: JitterStatistics | undefined;
794
+ videoJitter: JitterStatistics | undefined;
795
+ }
776
796
  interface VideoPlayerStatistics {
777
797
  renderedFrameCount: number;
778
798
  rendererDroppedFrameCount: number;
@@ -811,7 +831,7 @@ declare class UserAgentInformation {
811
831
  userAgent: string;
812
832
  };
813
833
  }
814
- type ModuleStatistics = AdaptivityStatistics & BufferTimeStatistics & ConnectionStatistics & ConstraintCapStatistics & DecoderStatistics & DocumentStateModulesStatistics & IncomingDataModuleStatistics & MseModuleStatistics & PlaybackModuleStatistics & QualityOfServiceModuleStatistics & RenditionsModuleStatistics & SyncModuleStatistics & TelemetryModuleStatistics & VideoPlayerStatistics;
834
+ type ModuleStatistics = AdaptivityStatistics & BufferTimeStatistics & ConnectionStatistics & ConstraintCapStatistics & DecoderStatistics & DocumentStateModulesStatistics & IncomingDataModuleStatistics & JitterModuleStatistics & MseModuleStatistics & PlaybackModuleStatistics & QualityOfServiceModuleStatistics & RenditionsModuleStatistics & SyncModuleStatistics & TelemetryModuleStatistics & VideoPlayerStatistics;
815
835
  type Statistics = ModuleStatistics & ReturnType<UserAgentInformation["getUserAgentInformation"]> & {
816
836
  /**
817
837
  * Version of the @vindral/web-sdk being used.
package/player.js CHANGED
@@ -31,7 +31,7 @@ var $ = (c, a, t) => new Promise((i, s) => {
31
31
  }, p = (v) => v.done ? i(v.value) : Promise.resolve(v.value).then(o, u);
32
32
  p((t = t.apply(c, a)).next());
33
33
  });
34
- import { L as Tr, V as $o, i as Bo, C as Go, A as Ko, a as qo, b as Xo } from "./Rz6y4oFD.js";
34
+ import { L as Tr, V as $o, i as Bo, C as Go, A as Ko, a as qo, b as Xo } from "./DiXVSsYY.js";
35
35
  import { E as us } from "./Bx7s5QdT.js";
36
36
  import { CastSender as Vo } from "./cast-sender.js";
37
37
  import { A as jo, d as Yo } from "./Bs3ZbgIy.js";
package/react.d.ts CHANGED
@@ -775,6 +775,26 @@ interface SyncModuleStatistics {
775
775
  timeshiftDriftAdjustmentCount: number;
776
776
  seekTime: number;
777
777
  }
778
+ interface JitterStatistics {
779
+ /** Current jitter in ms (RFC 3550 style, smoothed with /16) */
780
+ jitter: number;
781
+ /** Reactive jitter in ms (more sensitive, smoothed with /4) - better for detecting spikes */
782
+ reactiveJitter: number;
783
+ /** Maximum jitter in the recent window (last ~50 samples) - for spike detection */
784
+ recentMaxJitter: number;
785
+ /** Average jitter over the sample window */
786
+ averageJitter: number;
787
+ /** Maximum jitter seen in the full sample window */
788
+ maxJitter: number;
789
+ /** Minimum jitter seen in the sample window */
790
+ minJitter: number;
791
+ /** Number of samples in the jitter calculation */
792
+ sampleCount: number;
793
+ }
794
+ interface JitterModuleStatistics {
795
+ audioJitter: JitterStatistics | undefined;
796
+ videoJitter: JitterStatistics | undefined;
797
+ }
778
798
  interface VideoPlayerStatistics {
779
799
  renderedFrameCount: number;
780
800
  rendererDroppedFrameCount: number;
@@ -813,7 +833,7 @@ declare class UserAgentInformation {
813
833
  userAgent: string;
814
834
  };
815
835
  }
816
- type ModuleStatistics = AdaptivityStatistics & BufferTimeStatistics & ConnectionStatistics & ConstraintCapStatistics & DecoderStatistics & DocumentStateModulesStatistics & IncomingDataModuleStatistics & MseModuleStatistics & PlaybackModuleStatistics & QualityOfServiceModuleStatistics & RenditionsModuleStatistics & SyncModuleStatistics & TelemetryModuleStatistics & VideoPlayerStatistics;
836
+ type ModuleStatistics = AdaptivityStatistics & BufferTimeStatistics & ConnectionStatistics & ConstraintCapStatistics & DecoderStatistics & DocumentStateModulesStatistics & IncomingDataModuleStatistics & JitterModuleStatistics & MseModuleStatistics & PlaybackModuleStatistics & QualityOfServiceModuleStatistics & RenditionsModuleStatistics & SyncModuleStatistics & TelemetryModuleStatistics & VideoPlayerStatistics;
817
837
  type Statistics = ModuleStatistics & ReturnType<UserAgentInformation["getUserAgentInformation"]> & {
818
838
  /**
819
839
  * Version of the @vindral/web-sdk being used.