@vkontakte/videoplayer-statistics 1.0.115-dev.2cfd41de6.0 → 1.0.115-dev.adb464b3a.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.
@@ -66,7 +66,8 @@ export declare enum SurfaceMode {
66
66
  AIRPLAY = "airplay",
67
67
  CHROMECAST = "chromecast",
68
68
  INVISIBLE = "invisible",
69
- MINIMAL = "minimal"
69
+ MINIMAL = "minimal",
70
+ SCREENCAST = "screencast"
70
71
  }
71
72
  /**
72
73
  * Режим отправки статистики
@@ -379,6 +379,7 @@ export declare class ThinOneStat implements IThinOneStat {
379
379
  private genCodecInfo;
380
380
  private getLatencyInfo;
381
381
  private collectTelemetryData;
382
+ private getPlaybackPosition;
382
383
  private isValidPlatform;
383
384
  private createRequiredParams;
384
385
  private createRequiredFatParams;
@@ -0,0 +1,5 @@
1
+ import type { Milliseconds, Seconds } from "@vkontakte/videoplayer-shared";
2
+ export declare const isLiveTime: (time: Milliseconds | undefined) => time is Milliseconds;
3
+ export declare const getLiveTime: (liveTime: Milliseconds | undefined) => Milliseconds;
4
+ export declare const toMilliseconds: (seconds: Seconds | undefined) => Milliseconds;
5
+ export declare const isValidPosition: (position: Milliseconds) => boolean;
@@ -1,8 +1,9 @@
1
1
  import type { IThinOneStatPlayerAdapter } from "../playerAdapter";
2
- import type { Seconds, IObservable, IRange } from "@vkontakte/videoplayer-shared";
2
+ import type { Milliseconds, IObservable, IRange } from "@vkontakte/videoplayer-shared";
3
3
  import type { IAdsEvents } from "../events";
4
4
  export type IParams = {
5
- heartbeatInterval?: Seconds;
5
+ heartbeatInterval?: Milliseconds;
6
6
  exactTime: boolean;
7
+ onInvalidInterval?: (range: IRange<Milliseconds>) => void;
7
8
  };
8
- export declare const watchCoverage: (player: IThinOneStatPlayerAdapter, adsEvents: IAdsEvents, params: IParams) => IObservable<IRange<Seconds>>;
9
+ export declare const watchCoverage: (player: IThinOneStatPlayerAdapter, adsEvents: IAdsEvents, params: IParams) => IObservable<IRange<Milliseconds>>;