@vkontakte/videoplayer-core 2.0.163-dev.2ed41cd75.0 → 2.0.163-dev.3ec5a1ede.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.2ed41cd75.0",
3
+ "version": "2.0.163-dev.3ec5a1ede.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.2ed41cd75.0"
45
+ "@vkontakte/videoplayer-shared": "1.0.92-dev.3ec5a1ede.0"
46
46
  }
47
47
  }
@@ -96,7 +96,7 @@ export declare class Player {
96
96
  private updateManifestUrlWithTimeOffset;
97
97
  private updateLiveBuffersFromManifest;
98
98
  private stopStallWatchdogSubscription;
99
- initRepresentations: ReturnType<typeof abortable<[Representation["id"], Representation["id"] | undefined, IHLSSource | undefined]>>;
99
+ initRepresentations: ReturnType<typeof abortable<[Representation["id"] | undefined, Representation["id"] | undefined, IHLSSource | undefined]>>;
100
100
  initBuffer(): void;
101
101
  switchRepresentation(kind: StreamKind, id: Representation["id"], dropBuffer?: boolean): Promise<void>;
102
102
  seek(requestedPosition: Milliseconds, forcePrecise: boolean): Promise<void>;
@@ -20,7 +20,7 @@ export declare abstract class BasePlayer {
20
20
  protected manifest: Manifest | null;
21
21
  protected tuning: ITuningConfig;
22
22
  protected tracer: ITracer;
23
- protected stallTracer: ITracer;
23
+ protected stallTracer?: ITracer;
24
24
  protected forceVideoCodec?: VideoCodec;
25
25
  protected stallTimeInWaitingExitAttemptMade: Milliseconds;
26
26
  protected videoBufferManager: IVirtualBufferManager | null;
@@ -79,7 +79,7 @@ export declare abstract class BasePlayer {
79
79
  protected abstract prepareManifestUrlString(manifestBaseUrlString: string, offset: number): string;
80
80
  protected abstract setSourceInitDuration(): void;
81
81
  protected abstract restoreAfterDeepStall(): Promise<void>;
82
- initRepresentations: ReturnType<typeof abortable<[Representation["id"], Representation["id"] | undefined, IHLSSource | undefined]>>;
82
+ initRepresentations: ReturnType<typeof abortable<[Representation["id"] | undefined, Representation["id"] | undefined, IHLSSource | undefined]>>;
83
83
  initManifest(element: HTMLMediaElement, manifestBaseUrlString: string, offset: number): Promise<void>;
84
84
  initBuffer(): void;
85
85
  switchRepresentation(kind: StreamKind, id: Representation["id"], mode: SwithRepresentationMode): Promise<void>;
@@ -107,7 +107,7 @@ export declare abstract class BasePlayer {
107
107
  protected parseManifest(manifestString: string): Nullable<Manifest>;
108
108
  protected getResultManifest(manifest: Manifest): Manifest;
109
109
  protected stopStallWatchdogSubscription(): void;
110
- protected createBuffers(dependencies: Dependencies, initialVideo: Representation["id"], initialAudio?: Representation["id"], sourceHls?: IHLSSource): void;
110
+ protected createBuffers(dependencies: Dependencies, initialVideo?: Representation["id"], initialAudio?: Representation["id"], sourceHls?: IHLSSource): void;
111
111
  protected waitStreamToOpen(): Promise<void>;
112
112
  protected initRepresentationSubscriptions(): void;
113
113
  protected initBufferLengthSubscription(): void;
@@ -1,5 +1,9 @@
1
1
  import type { Kbps, IRectangle, VideoQuality } from "@vkontakte/videoplayer-shared";
2
- import type { IInternalTextTrack } from "../../player/types";
2
+ import type { IInternalTextTrack, IAudioStream } from "../../player/types";
3
+ export interface IInternalAudioStream extends IAudioStream {
4
+ type: "internal";
5
+ url: string;
6
+ }
3
7
  export type ManifestUrl = {
4
8
  id: string;
5
9
  quality: VideoQuality;
@@ -11,6 +15,7 @@ export type ManifestUrl = {
11
15
  export type HLSManifestData = {
12
16
  qualityManifests: ManifestUrl[];
13
17
  textTracks: IInternalTextTrack[];
18
+ audioStreams: IInternalAudioStream[];
14
19
  };
15
20
  type ExtractHLSManifestDataConfig = {
16
21
  manifestRetryMaxCount: number;