@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.
- package/es2015.cjs +3 -3
- package/es2015.esm.js +3 -3
- package/esnext.cjs +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +3 -3
- package/types/oneStat/OneStat.d.ts +12 -0
- package/types/oneStat/config.d.ts +2 -0
- package/types/oneStat/index.d.ts +2 -2
- package/types/oneStat/playerAdapter.d.ts +1 -1
- package/types/oneStat/types.d.ts +9 -0
- package/types/oneStat/uiEvents.d.ts +4 -0
- package/types/oneStat/values.d.ts +2 -1
- package/types/thinOneStat/ThinOneStat.d.ts +1 -0
- package/types/thinOneStat/utils/playbackTime.d.ts +5 -0
- package/types/thinOneStat/utils/watchCoverage.d.ts +4 -3
|
@@ -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 {
|
|
2
|
+
import type { Milliseconds, IObservable, IRange } from "@vkontakte/videoplayer-shared";
|
|
3
3
|
import type { IAdsEvents } from "../events";
|
|
4
4
|
export type IParams = {
|
|
5
|
-
heartbeatInterval?:
|
|
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<
|
|
9
|
+
export declare const watchCoverage: (player: IThinOneStatPlayerAdapter, adsEvents: IAdsEvents, params: IParams) => IObservable<IRange<Milliseconds>>;
|