@vkontakte/videoplayer-core 2.0.142-dev.6eef9c96.0 → 2.0.142-dev.ebe69522.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.142-dev.6eef9c96.0",
3
+ "version": "2.0.142-dev.ebe69522.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -54,6 +54,6 @@
54
54
  "**/*.d.ts"
55
55
  ],
56
56
  "dependencies": {
57
- "@vkontakte/videoplayer-shared": "1.0.70-dev.6eef9c96.0"
57
+ "@vkontakte/videoplayer-shared": "1.0.70-dev.ebe69522.0"
58
58
  }
59
59
  }
@@ -123,6 +123,7 @@ export default class Player implements IPlayer {
123
123
  constructor(tuning?: IOptionalTuningConfig, tracer?: ITracer, playerOptions?: IPlayerOptions);
124
124
  initVideo(config: IConfig): IPlayer;
125
125
  destroy(): void;
126
+ private waitInit;
126
127
  prepare(): IPlayer;
127
128
  play(): IPlayer;
128
129
  pause(): IPlayer;
@@ -32,6 +32,7 @@ export declare class Player {
32
32
  private liveTextManager;
33
33
  private throughputEstimator;
34
34
  private subscription;
35
+ private subscriptionRemovable;
35
36
  private representationSubscription;
36
37
  private fetcher;
37
38
  state$: StateMachine<State>;
@@ -74,12 +75,16 @@ export declare class Player {
74
75
  private gapWatchdogSubscription;
75
76
  private stallWatchdogSubscription;
76
77
  private livePauseWatchdogSubscription;
78
+ private liveWasInterrupted;
77
79
  private destroyController;
78
80
  constructor(params: Params);
79
81
  initManifest: (param_0: HTMLVideoElement, param_1: string, param_2: number) => Promise<void | undefined>;
80
82
  updateManifest: () => Promise<Manifest | null | undefined>;
81
83
  setSmartRepresentationSwitch(state: boolean): void;
82
84
  seekLive(nextOffset: Milliseconds): Promise<void>;
85
+ private updateManifestUrlWithTimeOffset;
86
+ private updateLiveBuffersFromManifest;
87
+ private stopStallWatchdogSubscription;
83
88
  initRepresentations: (param_0: string, param_1: string | undefined, param_2: import("../../../player/types").URLSource | undefined) => Promise<void | undefined>;
84
89
  initBuffer(): void;
85
90
  switchRepresentation(kind: StreamKind, id: Representation['id'], dropBuffer?: boolean): Promise<void>;
@@ -94,7 +99,7 @@ export declare class Player {
94
99
  destroy(): void;
95
100
  private initTracerSubscription;
96
101
  private isManualDecreasePlaybackInLive;
97
- private normolizeLiveOffset;
102
+ private normalizeLiveOffset;
98
103
  private tick;
99
104
  private updateLive;
100
105
  private jumpGap;
@@ -32,6 +32,7 @@ export declare class Player {
32
32
  private liveTextManager;
33
33
  private throughputEstimator;
34
34
  private subscription;
35
+ private subscriptionRemovable;
35
36
  private representationSubscription;
36
37
  private fetcher;
37
38
  state$: StateMachine<State>;
@@ -0,0 +1,3 @@
1
+ export declare const activeLiveMpd = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><MPD xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mpeg:dash:schema:mpd:2011\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xsi:schemaLocation=\"urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd\" profiles=\"urn:mpeg:dash:profile:isoff-live:2011\" type=\"dynamic\" minBufferTime=\"PT2S\" minimumUpdatePeriod=\"PT1S\" timeShiftBufferDepth=\"PT2M\" suggestedPresentationDelay=\"PT5S\" publishTime=\"2025-09-11T14:27:22Z\" availabilityStartTime=\"2025-09-11T14:12:58Z\"><ServiceDescription id=\"1\"><Scope schemeIdUri=\"urn:dvb:dash:lowlatency:scope:2019\"/><Latency min=\"10146\" max=\"20292\" target=\"12682\"/><PlaybackRate min=\"0.9\" max=\"1.1\"/></ServiceDescription><vk:Attrs xmlns:vk=\"https://vk.com/video_ondemand_live.xsd\"><vk:XLatestSegmentPublishTime>2025-09-11T14:27:22Z</vk:XLatestSegmentPublishTime><vk:XStreamIsLive>yes</vk:XStreamIsLive><vk:XStreamIsUnpublished>no</vk:XStreamIsUnpublished><vk:XPlaybackDuration>236601</vk:XPlaybackDuration></vk:Attrs><Period id=\"period_b5152\" start=\"PT12M21.714S\" duration=\"PT20.082S\"><AdaptationSet id=\"0\" contentType=\"video\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"video_lowest\" quality=\"lowest\" mimeType=\"video/mp4\" codecs=\"avc1.42001e\" bandwidth=\"409600\" width=\"424\" height=\"240\"><SegmentTemplate timescale=\"16000\" startNumber=\"24\" presentationTimeOffset=\"1827728\" initialization=\"CPPXmPS7rQIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAaKQn8mTM8ACAcgCAc3gHr85_SGR/i0.v.m4s\" media=\"CPPXmPS7rQIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAaKQn8mTM8ACAcgCAc3gHr85_SGR/t$Time$.v.m4s\"><SegmentTimeline><S d=\"80112\" t=\"1909152\"/><S d=\"80144\"/><S d=\"79632\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet><AdaptationSet id=\"1\" contentType=\"audio\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"audio_lowest\" quality=\"lowest\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"65536\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"24\" presentationTimeOffset=\"5038080\" initialization=\"CPPXmPS7rQIQxNgCIAI6BAjE2AJiAggIwAIByAIB979CQFYRchw/i0.a.m4s\" media=\"CPPXmPS7rQIQxNgCIAI6BAjE2AJiAggIwAIByAIB979CQFYRchw/t$Time$.a.m4s\"><SegmentTimeline><S d=\"221184\" r=\"1\" t=\"5262336\"/><S d=\"219136\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet></Period></MPD>";
2
+ export declare const activeLiveMpdWithZeroSize = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><MPD xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mpeg:dash:schema:mpd:2011\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xsi:schemaLocation=\"urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd\" profiles=\"urn:mpeg:dash:profile:isoff-live:2011\" type=\"dynamic\" minBufferTime=\"PT2S\" minimumUpdatePeriod=\"PT1S\" timeShiftBufferDepth=\"PT2M\" suggestedPresentationDelay=\"PT5S\" publishTime=\"2025-09-30T10:23:22Z\" availabilityStartTime=\"2025-09-30T09:01:04Z\"><ServiceDescription id=\"1\"><Scope schemeIdUri=\"urn:dvb:dash:lowlatency:scope:2019\"/><Latency min=\"11826\" max=\"23652\" target=\"14782\"/><PlaybackRate min=\"0.9\" max=\"1.1\"/></ServiceDescription><vk:Attrs xmlns:vk=\"https://vk.com/video_ondemand_live.xsd\"><vk:XLatestSegmentPublishTime>2025-09-30T10:23:22Z</vk:XLatestSegmentPublishTime><vk:XStreamIsLive>yes</vk:XStreamIsLive><vk:XStreamIsUnpublished>no</vk:XStreamIsUnpublished><vk:XPlaybackDuration>4023899</vk:XPlaybackDuration></vk:Attrs><Period id=\"period_41e2ee\" start=\"PT1H11M57.934S\" duration=\"PT9M59.999S\"><AdaptationSet id=\"0\" contentType=\"video\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"video_lowest\" quality=\"lowest\" mimeType=\"video/mp4\" codecs=\"avc1.42001e\" bandwidth=\"409600\" width=\"424\" height=\"240\"><SegmentTemplate timescale=\"16000\" startNumber=\"976\" presentationTimeOffset=\"54463792\" initialization=\"CP7X_OarkwIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAYDM79CZM8ACAcgCAdqH_L3ujp2Q/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAYDM79CZM8ACAcgCAdqH_L3ujp2Q/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"24\" t=\"62463776\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_low\" quality=\"low\" mimeType=\"video/mp4\" codecs=\"avc1.4d001f\" bandwidth=\"921600\" width=\"640\" height=\"360\"><SegmentTemplate timescale=\"16000\" startNumber=\"976\" presentationTimeOffset=\"54463792\" initialization=\"CP7X_OarkwIQgH0YAzIICgYIgAUQ6AJaBggBEAIoF_ABgMzv0JkzwAIByAIB56K_UIhR4Ag/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YAzIICgYIgAUQ6AJaBggBEAIoF_ABgMzv0JkzwAIByAIB56K_UIhR4Ag/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"24\" t=\"62463776\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_medium\" quality=\"medium\" mimeType=\"video/mp4\" codecs=\"avc1.4d001f\" bandwidth=\"1638400\" width=\"856\" height=\"480\"><SegmentTemplate timescale=\"16000\" startNumber=\"976\" presentationTimeOffset=\"54463792\" initialization=\"CP7X_OarkwIQgH0YBDIICgYI2AYQ4ANaBggBEAIoF_ABgMzv0JkzwAIByAIBUKZ40sx4Ldg/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YBDIICgYI2AYQ4ANaBggBEAIoF_ABgMzv0JkzwAIByAIBUKZ40sx4Ldg/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"24\" t=\"62463776\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_high\" quality=\"high\" mimeType=\"video/mp4\" codecs=\"avc1.640029\" bandwidth=\"3686400\" width=\"1280\" height=\"720\"><SegmentTemplate timescale=\"16000\" startNumber=\"976\" presentationTimeOffset=\"54463792\" initialization=\"CP7X_OarkwIQgH0YBTIICgYIgAoQ0AVaBggDEAIoF_ABgMzv0JkzwAIByAIBmvIvfuJSwSM/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YBTIICgYIgAoQ0AVaBggDEAIoF_ABgMzv0JkzwAIByAIBmvIvfuJSwSM/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"24\" t=\"62463776\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_fullhd\" quality=\"fullhd\" mimeType=\"video/mp4\" codecs=\"avc1.64002a\" bandwidth=\"9960840\" width=\"1920\" height=\"1080\"><SegmentTemplate timescale=\"16000\" startNumber=\"976\" presentationTimeOffset=\"54463792\" initialization=\"CP7X_OarkwIQgH0YBqgBAfABgMzv0JkzwAIByAIBmat88HyFAsY/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YBqgBAfABgMzv0JkzwAIByAIBmat88HyFAsY/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"24\" t=\"62463776\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet><AdaptationSet id=\"1\" contentType=\"audio\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"audio_lowest\" quality=\"lowest\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"65536\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"976\" presentationTimeOffset=\"150116352\" initialization=\"CP7X_OarkwIQxNgCIAI6BAjE2AJiAggIwAIByAIBWstY4dXqnvw/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAI6BAjE2AJiAggIwAIByAIBWstY4dXqnvw/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" t=\"172166144\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"audio_low\" quality=\"low\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"131072\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"976\" presentationTimeOffset=\"150116352\" initialization=\"CP7X_OarkwIQxNgCIAM6BAjE2AJiAggQwAIByAIBErNIEqtWC6E/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAM6BAjE2AJiAggQwAIByAIBErNIEqtWC6E/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" t=\"172166144\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"audio_medium\" quality=\"medium\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"196608\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"976\" presentationTimeOffset=\"150116352\" initialization=\"CP7X_OarkwIQxNgCIAQ6BAjE2AJiAggYwAIByAIBaJpINvIIYDc/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAQ6BAjE2AJiAggYwAIByAIBaJpINvIIYDc/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" t=\"172166144\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"audio_high\" quality=\"high\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"262144\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"976\" presentationTimeOffset=\"150116352\" initialization=\"CP7X_OarkwIQxNgCIAU6BAjE2AJiAgggwAIByAIBKhpGVHRS8bY/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAU6BAjE2AJiAgggwAIByAIBKhpGVHRS8bY/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" t=\"172166144\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"2\"/><S d=\"177152\"/><S d=\"176128\" r=\"1\"/><S d=\"177152\"/><S d=\"176128\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet></Period><Period id=\"period_4b0aad\" start=\"PT1H21M57.933S\" duration=\"PT7.913S\"><AdaptationSet id=\"0\" contentType=\"video\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"video_lowest\" quality=\"lowest\" mimeType=\"video/mp4\" codecs=\"avc1.42001e\" bandwidth=\"409600\" width=\"0\" height=\"0\"><SegmentTemplate timescale=\"16000\" startNumber=\"1001\" presentationTimeOffset=\"64063776\" initialization=\"CP7X_OarkwIQgH0YAjICCgBaBBACKBfwAf7JltGZM8ACAcgCASxpDQAgb8la/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YAjICCgBaBBACKBfwAf7JltGZM8ACAcgCASxpDQAgb8la/t$Time$.v.m4s\"><SegmentTimeline><S d=\"32000\" t=\"64063776\"/><S d=\"94608\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet><AdaptationSet id=\"1\" contentType=\"audio\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"audio_lowest\" quality=\"lowest\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"65536\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"1001\" presentationTimeOffset=\"176576512\" initialization=\"CP7X_OarkwIQxNgCIAI6BAjE2AJiAggIwAIByAIBWstY4dXqnvw/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAI6BAjE2AJiAggIwAIByAIBWstY4dXqnvw/t$Time$.a.m4s\"><SegmentTimeline><S d=\"88064\" t=\"176576512\"/><S d=\"261120\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet></Period><Period id=\"period_4b2996\" start=\"PT1H22M5.846S\"><AdaptationSet id=\"0\" contentType=\"video\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"video_lowest\" quality=\"lowest\" mimeType=\"video/mp4\" codecs=\"avc1.42001e\" bandwidth=\"409600\" width=\"424\" height=\"240\"><SegmentTemplate timescale=\"16000\" startNumber=\"1003\" presentationTimeOffset=\"64190384\" initialization=\"CP7X_OarkwIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAeeHl9GZM8ACAcgCAX3REDOhQN2T/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAeeHl9GZM8ACAcgCAX3REDOhQN2T/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"2\" t=\"64190384\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_low\" quality=\"low\" mimeType=\"video/mp4\" codecs=\"avc1.4d001f\" bandwidth=\"921600\" width=\"640\" height=\"360\"><SegmentTemplate timescale=\"16000\" startNumber=\"1003\" presentationTimeOffset=\"64190384\" initialization=\"CP7X_OarkwIQgH0YAzIICgYIgAUQ6AJaBggBEAIoF_AB54eX0ZkzwAIByAIBUfjtXKKd68A/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YAzIICgYIgAUQ6AJaBggBEAIoF_AB54eX0ZkzwAIByAIBUfjtXKKd68A/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"2\" t=\"64190384\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_medium\" quality=\"medium\" mimeType=\"video/mp4\" codecs=\"avc1.4d001f\" bandwidth=\"1638400\" width=\"856\" height=\"480\"><SegmentTemplate timescale=\"16000\" startNumber=\"1003\" presentationTimeOffset=\"64190384\" initialization=\"CP7X_OarkwIQgH0YBDIICgYI2AYQ4ANaBggBEAIoF_AB54eX0ZkzwAIByAIBFDnhoNmNOMU/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YBDIICgYI2AYQ4ANaBggBEAIoF_AB54eX0ZkzwAIByAIBFDnhoNmNOMU/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"2\" t=\"64190384\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_high\" quality=\"high\" mimeType=\"video/mp4\" codecs=\"avc1.640029\" bandwidth=\"3686400\" width=\"1280\" height=\"720\"><SegmentTemplate timescale=\"16000\" startNumber=\"1003\" presentationTimeOffset=\"64190384\" initialization=\"CP7X_OarkwIQgH0YBTIICgYIgAoQ0AVaBggDEAIoF_AB54eX0ZkzwAIByAIBI0naueK_O50/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YBTIICgYIgAoQ0AVaBggDEAIoF_AB54eX0ZkzwAIByAIBI0naueK_O50/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"2\" t=\"64190384\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"video_fullhd\" quality=\"fullhd\" mimeType=\"video/mp4\" codecs=\"avc1.640029\" bandwidth=\"8294400\" width=\"1920\" height=\"1080\"><SegmentTemplate timescale=\"16000\" startNumber=\"1003\" presentationTimeOffset=\"64190384\" initialization=\"CP7X_OarkwIQgH0YBjIICgYIgA8QuAhaBggDEAIoF_AB54eX0ZkzwAIByAIBnEZxT2BO3yw/i0.v.m4s\" media=\"CP7X_OarkwIQgH0YBjIICgYIgA8QuAhaBggDEAIoF_AB54eX0ZkzwAIByAIBnEZxT2BO3yw/t$Time$.v.m4s\"><SegmentTimeline><S d=\"64000\" r=\"2\" t=\"64190384\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet><AdaptationSet id=\"1\" contentType=\"audio\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"audio_lowest\" quality=\"lowest\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"65536\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"1003\" presentationTimeOffset=\"176925696\" initialization=\"CP7X_OarkwIQxNgCIAI6BAjE2AJiAggIwAIByAIBWstY4dXqnvw/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAI6BAjE2AJiAggIwAIByAIBWstY4dXqnvw/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" r=\"2\" t=\"176925696\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"audio_low\" quality=\"low\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"131072\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"1003\" presentationTimeOffset=\"176925696\" initialization=\"CP7X_OarkwIQxNgCIAM6BAjE2AJiAggQwAIByAIBErNIEqtWC6E/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAM6BAjE2AJiAggQwAIByAIBErNIEqtWC6E/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" r=\"2\" t=\"176925696\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"audio_medium\" quality=\"medium\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"196608\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"1003\" presentationTimeOffset=\"176925696\" initialization=\"CP7X_OarkwIQxNgCIAQ6BAjE2AJiAggYwAIByAIBaJpINvIIYDc/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAQ6BAjE2AJiAggYwAIByAIBaJpINvIIYDc/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" r=\"2\" t=\"176925696\"/></SegmentTimeline></SegmentTemplate></Representation><Representation id=\"audio_high\" quality=\"high\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"262144\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"1003\" presentationTimeOffset=\"176925696\" initialization=\"CP7X_OarkwIQxNgCIAU6BAjE2AJiAgggwAIByAIBKhpGVHRS8bY/i0.a.m4s\" media=\"CP7X_OarkwIQxNgCIAU6BAjE2AJiAgggwAIByAIBKhpGVHRS8bY/t$Time$.a.m4s\"><SegmentTimeline><S d=\"176128\" r=\"2\" t=\"176925696\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet></Period></MPD>";
3
+ export declare const interruptedLiveMpd = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?><MPD xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"urn:mpeg:dash:schema:mpd:2011\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xsi:schemaLocation=\"urn:mpeg:DASH:schema:MPD:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd\" profiles=\"urn:mpeg:dash:profile:isoff-live:2011\" type=\"dynamic\" minBufferTime=\"PT2S\" minimumUpdatePeriod=\"PT1S\" timeShiftBufferDepth=\"PT2M\" suggestedPresentationDelay=\"PT5S\" publishTime=\"2025-09-11T14:27:22Z\" availabilityStartTime=\"2025-09-11T14:12:58Z\"><ServiceDescription id=\"1\"><Scope schemeIdUri=\"urn:dvb:dash:lowlatency:scope:2019\"/><Latency min=\"10146\" max=\"20292\" target=\"12682\"/><PlaybackRate min=\"0.9\" max=\"1.1\"/></ServiceDescription><vk:Attrs xmlns:vk=\"https://vk.com/video_ondemand_live.xsd\"><vk:XLatestSegmentPublishTime>2025-09-11T14:27:22Z</vk:XLatestSegmentPublishTime><vk:XStreamIsLive>no</vk:XStreamIsLive><vk:XStreamIsUnpublished>no</vk:XStreamIsUnpublished><vk:XPlaybackDuration>236601</vk:XPlaybackDuration></vk:Attrs><Period id=\"period_b5152\" start=\"PT12M21.714S\" duration=\"PT20.082S\"><AdaptationSet id=\"0\" contentType=\"video\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"video_lowest\" quality=\"lowest\" mimeType=\"video/mp4\" codecs=\"avc1.42001e\" bandwidth=\"409600\" width=\"424\" height=\"240\"><SegmentTemplate timescale=\"16000\" startNumber=\"24\" presentationTimeOffset=\"1827728\" initialization=\"CPPXmPS7rQIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAaKQn8mTM8ACAcgCAc3gHr85_SGR/i0.v.m4s\" media=\"CPPXmPS7rQIQgH0YAjIICgYIqAMQ8AFaBBACKBfwAaKQn8mTM8ACAcgCAc3gHr85_SGR/t$Time$.v.m4s\"><SegmentTimeline><S d=\"80112\" t=\"1909152\"/><S d=\"80144\"/><S d=\"79632\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet><AdaptationSet id=\"1\" contentType=\"audio\" segmentAlignment=\"true\" bitstreamSwitching=\"true\"><Representation id=\"audio_lowest\" quality=\"lowest\" mimeType=\"audio/mp4\" codecs=\"mp4a.40.2\" bandwidth=\"65536\" audioSamplingRate=\"44100\"><SegmentTemplate timescale=\"44100\" startNumber=\"24\" presentationTimeOffset=\"5038080\" initialization=\"CPPXmPS7rQIQxNgCIAI6BAjE2AJiAggIwAIByAIB979CQFYRchw/i0.a.m4s\" media=\"CPPXmPS7rQIQxNgCIAI6BAjE2AJiAggIwAIByAIB979CQFYRchw/t$Time$.a.m4s\"><SegmentTimeline><S d=\"221184\" r=\"1\" t=\"5262336\"/><S d=\"219136\"/></SegmentTimeline></SegmentTemplate></Representation></AdaptationSet></Period></MPD>";
@@ -113,8 +113,13 @@ export type ITuningConfig = {
113
113
  usePersistentGaps: boolean;
114
114
  abrThrottle: number;
115
115
  useVideoElementWaitingCurrentTimeReassign: boolean;
116
+ stallWatchdogInterval: Milliseconds;
117
+ livePauseWatchdogInterval: Milliseconds;
118
+ liveStallReinitInterval: Milliseconds;
116
119
  };
117
120
  dashCmafLive: {
121
+ externalStopControl: boolean;
122
+ keepSilentStallWatchdogWhenNotActive: boolean;
118
123
  maxActiveLiveOffset: Milliseconds;
119
124
  normalizedTargetMinBufferSize: Milliseconds;
120
125
  normalizedLiveMinBufferSize: Milliseconds;
@@ -1,3 +0,0 @@
1
- export declare const DASH_LIVE_UPDATE_INTERVAL_MS = 1000;
2
- export declare const DASH_STALL_UPDATE_INTERVAL_MS = 50;
3
- export declare const DASH_LIVE_STALL_REINIT_INTERVAL_MS = 2000;