@vkontakte/videoplayer-core 2.0.163-dev.c64982d44.0 → 2.0.163-dev.d4bc1cafc.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-core",
3
- "version": "2.0.163-dev.c64982d44.0",
3
+ "version": "2.0.163-dev.d4bc1cafc.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -42,6 +42,6 @@
42
42
  "**/*.d.ts"
43
43
  ],
44
44
  "dependencies": {
45
- "@vkontakte/videoplayer-shared": "1.0.92-dev.c64982d44.0"
45
+ "@vkontakte/videoplayer-shared": "1.0.92-dev.d4bc1cafc.0"
46
46
  }
47
47
  }
@@ -0,0 +1,9 @@
1
+ import type { IAbrRule, IAbrRuleResolution, IVideoAbrContext } from "../../types";
2
+ import type { IVideoTrack } from "../../../../../player/types";
3
+ import { LimitAboveRule } from "../limitAboveRule";
4
+ import type { RulePhaseConfig } from "../../controllers/abrPhaseController";
5
+ export declare class TvDisabledVideoTrackRule extends LimitAboveRule<IVideoTrack, IVideoAbrContext> implements IAbrRule<IVideoTrack, IVideoAbrContext> {
6
+ constructor(phaseConfig: RulePhaseConfig);
7
+ execute(context: IVideoAbrContext): IAbrRuleResolution<IVideoTrack>;
8
+ protected createLogMessage(selectedTrack: IVideoTrack): string;
9
+ }
@@ -16,6 +16,7 @@ export declare enum VideoRuleName {
16
16
  Bola = "bola_rule",
17
17
  FitsContainer = "fits_container_rule",
18
18
  FailedVideoTrack = "failed_video_track_rule",
19
+ TvDisabledVideoTrack = "tv_disabled_video_track_rule",
19
20
  Stalls = "stalls_rule",
20
21
  LowerLimit = "lower_limit_rule",
21
22
  UpperLimit = "upper_limit_rule",
@@ -0,0 +1,3 @@
1
+ import type { ITuningConfig } from "../../utils/tuningConfig";
2
+ import type { Stream } from "./parsers/types";
3
+ export declare const filterStreams: (streams: Stream[], videoElement: HTMLVideoElement, canPlayTypeRestriction: ITuningConfig["dash"]["checkRepresentationCanPlayType"]) => Stream[];
@@ -212,6 +212,7 @@ export type ITuningConfig = {
212
212
  videoStreamRepresentaionsFilter: [VideoQuality, number, VideoCodecName][];
213
213
  filterOnDemandQualityList: boolean;
214
214
  dashMaxTvVideoQuality: boolean;
215
+ checkRepresentationCanPlayType: Extract<CanPlayTypeResult, "maybe" | "probably"> | false;
215
216
  };
216
217
  dashCmafLive: {
217
218
  externalStopControl: boolean;