@vkontakte/videoplayer-core 2.0.171-dev.c1327f3bc.0 → 2.0.171-dev.ed76c949d.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 (40) hide show
  1. package/es2015.cjs +30 -138
  2. package/es2015.esm.js +32 -140
  3. package/esnext.cjs +24 -132
  4. package/esnext.esm.js +24 -132
  5. package/evergreen.esm.js +26 -134
  6. package/package.json +2 -2
  7. package/types/player/Player.d.ts +1 -0
  8. package/types/providers/DashLiveProvider/utils/LiveDashPlayer.d.ts +2 -0
  9. package/types/providers/DashProvider/baseDashProvider.d.ts +1 -2
  10. package/types/providers/DashProviderVirtual/baseDashProvider.d.ts +1 -2
  11. package/types/providers/ProviderContainer/Mayday/GraceTimeout.d.ts +17 -0
  12. package/types/providers/ProviderContainer/Mayday/heuristics/StartupHangupHeuristic.d.ts +46 -0
  13. package/types/providers/ProviderContainer/Mayday/heuristics/TvFetcherErrorHeuristic.d.ts +10 -0
  14. package/types/providers/ProviderContainer/Mayday/index.d.ts +2 -1
  15. package/types/providers/ProviderContainer/Mayday/types.d.ts +1 -0
  16. package/types/providers/ProviderContainer/utils/formatsSupport.d.ts +0 -1
  17. package/types/providers/ProviderContainer/utils/playbackHangup.d.ts +6 -2
  18. package/types/providers/utils/Abr/abrController.d.ts +4 -1
  19. package/types/providers/utils/Abr/abrManager.d.ts +1 -0
  20. package/types/providers/utils/Abr/controllers/stallsController.d.ts +8 -1
  21. package/types/providers/utils/Abr/rules/audio/audioThroughputRule.d.ts +2 -2
  22. package/types/providers/utils/Abr/rules/audio/minAudioForVideoRule.d.ts +2 -2
  23. package/types/providers/utils/Abr/rules/baseRule.d.ts +2 -2
  24. package/types/providers/utils/Abr/rules/video/abandonRequestRule.d.ts +2 -2
  25. package/types/providers/utils/Abr/rules/video/bolaRule.d.ts +2 -2
  26. package/types/providers/utils/Abr/rules/video/bufferRule.d.ts +2 -2
  27. package/types/providers/utils/Abr/rules/video/fitsContainerRule.d.ts +2 -2
  28. package/types/providers/utils/Abr/rules/video/insufficientBufferRule.d.ts +2 -2
  29. package/types/providers/utils/Abr/rules/video/lowerLimitRule.d.ts +2 -2
  30. package/types/providers/utils/Abr/rules/video/stallsRule.d.ts +6 -2
  31. package/types/providers/utils/Abr/rules/video/throughputRule.d.ts +2 -2
  32. package/types/providers/utils/Abr/rules/video/tvDisabledVideoTrackRule.d.ts +2 -2
  33. package/types/providers/utils/Abr/rules/video/upperLimitRule.d.ts +2 -2
  34. package/types/providers/utils/Abr/types.d.ts +6 -6
  35. package/types/providers/utils/Abr/utils.d.ts +1 -3
  36. package/types/utils/timers.d.ts +2 -0
  37. package/types/utils/tuningConfig.d.ts +16 -17
  38. package/types/providers/ProviderContainer/Mayday/heuristics/HangupHeuristic.d.ts +0 -22
  39. package/types/providers/utils/Abr/rules/video/downloadTimeRule.d.ts +0 -15
  40. package/types/utils/buffer/dynamicBufferTarget.d.ts +0 -10
@@ -1,22 +0,0 @@
1
- import type { IError } from "@vkontakte/videoplayer-shared";
2
- import type { IHeuristicDeps } from "../types";
3
- import type { IAsyncHeuristic, HeuristicResult } from "./IHeuristic";
4
- export declare class HangupHeuristic implements IAsyncHeuristic {
5
- private deps;
6
- static readonly heuristicName = "HangupHeuristic";
7
- readonly type = "async";
8
- readonly recommendation$;
9
- private timerId;
10
- private sub;
11
- private error;
12
- private manifestRequested;
13
- private manifestRequestedAt;
14
- private manifestReceivedMs;
15
- constructor(deps: IHeuristicDeps);
16
- analyze(error: IError): HeuristicResult;
17
- private restartTimer;
18
- private expire;
19
- private cancel;
20
- reset(): void;
21
- destroy(): void;
22
- }
@@ -1,15 +0,0 @@
1
- import type { IAbrRule, IAbrRuleResolution, IVideoAbrContext } from "../../types";
2
- import type { IVideoTrack } from "../../../../../player/types";
3
- import type { Kbps, Milliseconds } from "@vkontakte/videoplayer-shared";
4
- import { LimitAboveRule } from "../limitAboveRule";
5
- import type { RulePhaseConfig } from "../../controllers/abrPhaseController";
6
- type DownloadTimeLogsArgs = [estimatedThroughput: Kbps, forwardBufferDuration: Milliseconds, simulatedFinalBufferMs: Milliseconds | null];
7
- export declare class DownloadTimeRule extends LimitAboveRule<IVideoTrack, IVideoAbrContext, DownloadTimeLogsArgs> implements IAbrRule<IVideoTrack, IVideoAbrContext> {
8
- constructor(phaseConfig: RulePhaseConfig);
9
- execute(context: IVideoAbrContext): IAbrRuleResolution<IVideoTrack>;
10
- private buildReferenceTimeline;
11
- private resolveLookaheadCount;
12
- private simulate;
13
- protected createLogMessage(selectedTrack: IVideoTrack, estimatedThroughput: Kbps, forwardBufferDuration: Milliseconds, simulatedFinalBufferMs: Milliseconds | null): string;
14
- }
15
- export {};
@@ -1,10 +0,0 @@
1
- import type { Kbps, Milliseconds, Nullable } from "@vkontakte/videoplayer-shared";
2
- import type { ITuningConfig } from "../tuningConfig";
3
- type DynamicBufferTargetConfig = ITuningConfig["dash"]["dynamicBufferTarget"];
4
- export interface IDynamicBufferTargetState {
5
- throughputKbps: Kbps;
6
- currentBitrateKbps: Nullable<Kbps>;
7
- baseTargetMs: Milliseconds;
8
- }
9
- export declare const computeDynamicBufferTarget: (state: IDynamicBufferTargetState, config: DynamicBufferTargetConfig) => Milliseconds;
10
- export {};