@vkontakte/videoplayer-core 2.0.157-dev.55dfadaf.0 → 2.0.157-dev.baccd7d5.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.esm.js +36 -37
- package/esnext.esm.js +36 -37
- package/evergreen.esm.js +23 -23
- package/package.json +7 -30
- package/types/index.d.ts +10 -10
- package/types/player/Player.d.ts +3 -3
- package/types/player/types.d.ts +1 -1
- package/types/player/utils/optimisticPosition.d.ts +2 -2
- package/types/player/utils/selectContainer.d.ts +1 -1
- package/types/providers/ChromecastPresentationApiProvider/ChromecastPresentationApiInitializer.d.ts +1 -1
- package/types/providers/ChromecastProvider/ChromecastInitializer/index.d.ts +1 -1
- package/types/providers/ChromecastProvider/ChromecastInitializer/types.d.ts +1 -1
- package/types/providers/ChromecastProvider/types.d.ts +1 -1
- package/types/providers/DashLiveProvider/DashLiveProvider.d.ts +2 -2
- package/types/providers/DashLiveProvider/types.d.ts +2 -0
- package/types/providers/DashLiveProvider/utils/LiveDashPlayer.d.ts +3 -3
- package/types/providers/DashProvider/baseDashProvider.d.ts +10 -10
- package/types/providers/DashProvider/lib/LiveTextManager.d.ts +1 -1
- package/types/providers/DashProvider/lib/buffer.d.ts +2 -2
- package/types/providers/DashProvider/lib/fetcher.d.ts +3 -3
- package/types/providers/DashProvider/lib/player.d.ts +6 -6
- package/types/providers/DashProvider/lib/types.d.ts +3 -3
- package/types/providers/DashProvider/lib/utils.d.ts +2 -2
- package/types/providers/DashProviderVirtual/baseDashProvider.d.ts +12 -12
- package/types/providers/DashProviderVirtual/dashCmafLiveProvider.d.ts +1 -1
- package/types/providers/DashProviderVirtual/dashProvider.d.ts +1 -1
- package/types/providers/DashProviderVirtual/lib/LiveTextManager.d.ts +2 -2
- package/types/providers/DashProviderVirtual/lib/buffer/types.d.ts +3 -3
- package/types/providers/DashProviderVirtual/lib/buffer/virtualBuffer/baseVirtualBufferManager.d.ts +6 -6
- package/types/providers/DashProviderVirtual/lib/buffer/virtualBuffer/byteRangeVirtualBufferManager.d.ts +5 -5
- package/types/providers/DashProviderVirtual/lib/buffer/virtualBuffer/liveVirtualBuffer.d.ts +5 -5
- package/types/providers/DashProviderVirtual/lib/buffer/virtualBuffer/templateVirtualBufferManager.d.ts +5 -5
- package/types/providers/DashProviderVirtual/lib/buffer/virtualBuffer/virtualBufferFactory.d.ts +3 -3
- package/types/providers/DashProviderVirtual/lib/fetcher.d.ts +3 -3
- package/types/providers/DashProviderVirtual/lib/player/basePlayer.d.ts +10 -10
- package/types/providers/DashProviderVirtual/lib/player/livePlayer.d.ts +8 -8
- package/types/providers/DashProviderVirtual/lib/player/player.d.ts +2 -2
- package/types/providers/DashProviderVirtual/lib/player/types.d.ts +3 -3
- package/types/providers/DashProviderVirtual/lib/types.d.ts +3 -3
- package/types/providers/DashProviderVirtual/lib/utils.d.ts +2 -2
- package/types/providers/HlsLiveProvider/LiveTextManager.d.ts +1 -1
- package/types/providers/HlsLiveProvider/index.d.ts +3 -3
- package/types/providers/HlsProvider/index.d.ts +2 -2
- package/types/providers/HlsProvider/manifestDataExtractor.d.ts +1 -1
- package/types/providers/MpegProvider/index.d.ts +1 -1
- package/types/providers/ProviderContainer/index.d.ts +3 -3
- package/types/providers/ProviderContainer/types.d.ts +1 -1
- package/types/providers/ProviderContainer/utils/formatsSupport.d.ts +2 -2
- package/types/providers/ProviderContainer/utils/playbackHangup.d.ts +3 -3
- package/types/providers/WebRTCLiveProvider/WebRTCLiveClient.d.ts +1 -1
- package/types/providers/WebRTCLiveProvider/WebRTCLiveProvider.d.ts +2 -2
- package/types/providers/types.d.ts +8 -8
- package/types/providers/utils/Abr/abrController.d.ts +2 -2
- package/types/providers/utils/Abr/abrManager.d.ts +3 -3
- package/types/providers/utils/Abr/controllers/stallsController.d.ts +2 -2
- package/types/providers/utils/Abr/rules/audio/audioThroughputRule.d.ts +4 -4
- package/types/providers/utils/Abr/rules/audio/minAudioForVideoRule.d.ts +4 -4
- package/types/providers/utils/Abr/rules/baseRule.d.ts +2 -2
- package/types/providers/utils/Abr/rules/limitAboveRule.d.ts +3 -3
- package/types/providers/utils/Abr/rules/limitBelowRule.d.ts +3 -3
- package/types/providers/utils/Abr/rules/video/bufferRule.d.ts +4 -4
- package/types/providers/utils/Abr/rules/video/fitsContainerRule.d.ts +4 -4
- package/types/providers/utils/Abr/rules/video/lowerLimitRule.d.ts +3 -3
- package/types/providers/utils/Abr/rules/video/stallsRule.d.ts +4 -4
- package/types/providers/utils/Abr/rules/video/throughputRule.d.ts +4 -4
- package/types/providers/utils/Abr/rules/video/upperLimitRule.d.ts +3 -3
- package/types/providers/utils/Abr/trackHistory.d.ts +1 -1
- package/types/providers/utils/Abr/types.d.ts +3 -3
- package/types/providers/utils/Abr/utils.d.ts +1 -1
- package/types/providers/utils/HTMLVideoElement/DroppedFramesManager.d.ts +3 -3
- package/types/providers/utils/HTMLVideoElement/ElementSizeManager.d.ts +1 -1
- package/types/providers/utils/HTMLVideoElement/TextTrackManager.d.ts +2 -2
- package/types/providers/utils/HTMLVideoElement/observable.d.ts +1 -1
- package/types/providers/utils/HTMLVideoElement/pool.d.ts +1 -1
- package/types/providers/utils/StallsManager.d.ts +2 -2
- package/types/providers/utils/extractConnectionHeaders.d.ts +1 -1
- package/types/providers/utils/parsers/types.d.ts +1 -1
- package/types/providers/utils/syncDesiredState.d.ts +2 -2
- package/types/providers/utils/syncPlaybackState.d.ts +2 -2
- package/types/providers/utils/videoStreamRepresentaionsFilter.d.ts +6 -2
- package/types/utils/3d/Camera3D.d.ts +1 -1
- package/types/utils/3d/CameraRotationManager.d.ts +2 -2
- package/types/utils/3d/Scene3D.d.ts +1 -1
- package/types/utils/ClientChecker/services/AudioChecker.d.ts +1 -1
- package/types/utils/ClientChecker/services/BrowserChecker.d.ts +2 -2
- package/types/utils/ClientChecker/services/DeviceChecker.d.ts +3 -3
- package/types/utils/ClientChecker/services/DisplayChecker.d.ts +1 -1
- package/types/utils/ClientChecker/services/VideoChecker.d.ts +2 -2
- package/types/utils/ThroughputEstimator.d.ts +1 -1
- package/types/utils/VolumeMultiplierManager/VolumeMultiplierManager.d.ts +2 -2
- package/types/utils/autoSelectTrack.d.ts +2 -2
- package/types/utils/qualityLimits.d.ts +2 -2
- package/types/utils/setStateWithSubscribe.d.ts +1 -1
- package/types/utils/smoothedValue/baseSmoothedValue.d.ts +1 -1
- package/types/utils/smoothedValue/emaAndMaSmoothedValue.d.ts +2 -2
- package/types/utils/smoothedValue/emaTopExtremumValue.d.ts +2 -2
- package/types/utils/smoothedValue/smoothedValueFactory.d.ts +2 -2
- package/types/utils/smoothedValue/twoEmaSmoothedValue.d.ts +2 -2
- package/types/utils/tuningConfig.d.ts +4 -4
- package/types/utils/videoFormat.d.ts +1 -1
- package/es2015.cjs +0 -221
- package/es2018.cjs +0 -221
- package/es2018.esm.js +0 -221
- package/es2024.cjs +0 -221
- package/es2024.esm.js +0 -221
- package/esnext.cjs +0 -221
package/package.json
CHANGED
|
@@ -1,59 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.157-dev.
|
|
3
|
+
"version": "2.0.157-dev.baccd7d5.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer core library based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
7
7
|
"license": "GPL-3.0",
|
|
8
|
-
"main": "./esnext.cjs",
|
|
9
8
|
"module": "./esnext.esm.js",
|
|
10
9
|
"types": "./types/index.d.ts",
|
|
11
10
|
"type": "module",
|
|
12
11
|
"exports": {
|
|
13
12
|
".": {
|
|
14
13
|
"types": "./types/index.d.ts",
|
|
15
|
-
"import": "./esnext.esm.js"
|
|
16
|
-
"require": "./esnext.cjs"
|
|
14
|
+
"import": "./esnext.esm.js"
|
|
17
15
|
},
|
|
18
16
|
"./evergreen": {
|
|
19
17
|
"types": "./types/index.d.ts",
|
|
20
|
-
"import": "./evergreen.esm.js"
|
|
21
|
-
"require": "./evergreen.cjs"
|
|
18
|
+
"import": "./evergreen.esm.js"
|
|
22
19
|
},
|
|
23
20
|
"./esnext": {
|
|
24
21
|
"types": "./types/index.d.ts",
|
|
25
|
-
"import": "./esnext.esm.js"
|
|
26
|
-
"require": "./esnext.cjs"
|
|
27
|
-
},
|
|
28
|
-
"./es2024": {
|
|
29
|
-
"types": "./types/index.d.ts",
|
|
30
|
-
"import": "./es2024.esm.js",
|
|
31
|
-
"require": "./es2024.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./es2018": {
|
|
34
|
-
"types": "./types/index.d.ts",
|
|
35
|
-
"import": "./es2018.esm.js",
|
|
36
|
-
"require": "./es2018.cjs"
|
|
22
|
+
"import": "./esnext.esm.js"
|
|
37
23
|
},
|
|
38
24
|
"./es2015": {
|
|
39
25
|
"types": "./types/index.d.ts",
|
|
40
|
-
"import": "./es2015.esm.js"
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
"./evergreen.esm.js": "./evergeen.esm.js",
|
|
44
|
-
"./esnext.esm.js": "./esnext.esm.js",
|
|
45
|
-
"./esnext.cjs": "./esnext.cjs",
|
|
46
|
-
"./es2018.esm.js": "./es2018.esm.js",
|
|
47
|
-
"./es2018.cjs": "./es2018.cjs",
|
|
48
|
-
"./es2015.esm.js": "./es2015.esm.js",
|
|
49
|
-
"./es2015.cjs": "./es2015.cjs"
|
|
26
|
+
"import": "./es2015.esm.js"
|
|
27
|
+
}
|
|
50
28
|
},
|
|
51
29
|
"files": [
|
|
52
|
-
"*.cjs",
|
|
53
30
|
"*.esm.js",
|
|
54
31
|
"**/*.d.ts"
|
|
55
32
|
],
|
|
56
33
|
"dependencies": {
|
|
57
|
-
"@vkontakte/videoplayer-shared": "1.0.86-dev.
|
|
34
|
+
"@vkontakte/videoplayer-shared": "1.0.86-dev.baccd7d5.0"
|
|
58
35
|
}
|
|
59
36
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { VERSION } from "
|
|
2
|
-
import type { IMpegSource, IDashSource, IHLSSource, IDashURLSource, IHLSLiveSource, ISeekRequest, URLSource, RawSource, URLSourceWithSeek } from "
|
|
3
|
-
import { VideoFormat, Surface, PredefinedQualityLimits, VideoCodec } from "
|
|
4
|
-
import Player from "
|
|
5
|
-
import type { IPlayer, IPlayerInfo, IPlayerEvents, IConfig, ISources, ICueSettings, IExternalTextTrack, ITextTrack, PlaybackRate, IVideoStream, IAudioStream } from "
|
|
6
|
-
import { PlaybackState, ChromecastState, HttpConnectionType } from "
|
|
7
|
-
import type { IOptionalTuningConfig } from "
|
|
8
|
-
export { clientChecker, isMobile } from "
|
|
9
|
-
export { areValidLiveRecordSources } from "
|
|
10
|
-
export { WebmCodecStrategy } from "
|
|
1
|
+
import { VERSION } from "#/env";
|
|
2
|
+
import type { IMpegSource, IDashSource, IHLSSource, IDashURLSource, IHLSLiveSource, ISeekRequest, URLSource, RawSource, URLSourceWithSeek } from "#/player/types";
|
|
3
|
+
import { VideoFormat, Surface, PredefinedQualityLimits, VideoCodec } from "#/player/types";
|
|
4
|
+
import Player from "#/player/Player";
|
|
5
|
+
import type { IPlayer, IPlayerInfo, IPlayerEvents, IConfig, ISources, ICueSettings, IExternalTextTrack, ITextTrack, PlaybackRate, IVideoStream, IAudioStream } from "#/player/types";
|
|
6
|
+
import { PlaybackState, ChromecastState, HttpConnectionType } from "#/player/types";
|
|
7
|
+
import type { IOptionalTuningConfig } from "#/utils/tuningConfig";
|
|
8
|
+
export { clientChecker, isMobile } from "#/utils/ClientChecker";
|
|
9
|
+
export { areValidLiveRecordSources } from "#/utils/videoFormat";
|
|
10
|
+
export { WebmCodecStrategy } from "#/enums/WebmCodecStrategy";
|
|
11
11
|
import type { ISubscription, IUnsubscriber, IEmitter, IObservable, IValueObservable, IValue, IOperator, IListener, ILogEntry, IRange, ExactVideoQuality } from "@vkontakte/videoplayer-shared";
|
|
12
12
|
import { Subscription, Observable, Subject, ValueSubject, VideoQuality } from "@vkontakte/videoplayer-shared";
|
|
13
13
|
/**
|
package/types/player/Player.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { dump } from "
|
|
2
|
-
import type { IOptionalTuningConfig } from "
|
|
1
|
+
import { dump } from "#/utils/playbackTelemetry";
|
|
2
|
+
import type { IOptionalTuningConfig } from "#/utils/tuningConfig";
|
|
3
3
|
import type { IError, ILogEntry, Kbps, Milliseconds, Seconds, QualityLimits, VideoQuality, ITracer } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import { Subject, ValueSubject } from "@vkontakte/videoplayer-shared";
|
|
5
5
|
import { ChromecastState, type FpsByQuality, type HttpConnectionType, type HttpConnectionMetrics, type HttpDownloadMetrics, type IAudioStream, type IAudioTrack, type IConfig, type ICueSettings, type IExternalTextTrack, type IPlayer, type ISeekRequest, type ISources, type ITextTrack, type IVideoStream, type IVideoTrack, type PlaybackRate, PlaybackState, PredefinedQualityLimits, type StartEnd, Surface, type VideoFormat } from "./types";
|
|
6
|
-
import type { IPlayerOptions } from "
|
|
6
|
+
import type { IPlayerOptions } from "#/utils/playerOptions";
|
|
7
7
|
/** Конкретный тип для Player.info с ValueSubject вместо IValueObservable */
|
|
8
8
|
interface PlayerInfoImpl {
|
|
9
9
|
playbackState$: ValueSubject<PlaybackState | undefined>;
|
package/types/player/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IObservable, IValueObservable, IValueSubject, ILogEntry, Kbps, Milliseconds, Seconds, IRectangle, IError, QualityLimits, VideoQuality } from "@vkontakte/videoplayer-shared";
|
|
2
|
-
import type { Pixel } from "
|
|
2
|
+
import type { Pixel } from "#/utils/3d/types";
|
|
3
3
|
export interface StartEnd<Unit extends number> {
|
|
4
4
|
start: Unit;
|
|
5
5
|
end: Unit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SeekState } from "
|
|
1
|
+
import type { SeekState } from "#/player/types";
|
|
2
2
|
import type { IObservable, IValueObservable, Seconds } from "@vkontakte/videoplayer-shared";
|
|
3
|
-
import type { IStateMachine } from "
|
|
3
|
+
import type { IStateMachine } from "#/utils/StateMachine/types";
|
|
4
4
|
interface IParams {
|
|
5
5
|
seekState: IStateMachine<SeekState>;
|
|
6
6
|
position$: IValueObservable<Seconds>;
|
package/types/providers/ChromecastPresentationApiProvider/ChromecastPresentationApiInitializer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChromecastState } from "
|
|
1
|
+
import { ChromecastState } from "#/player/types";
|
|
2
2
|
import type { IError, IValueSubject, ISubject } from "@vkontakte/videoplayer-shared";
|
|
3
3
|
import type { IChromecastConnection } from "../ChromecastProvider/ChromecastInitializer/types";
|
|
4
4
|
import { ChromecastPresentationApiConnector } from "./ChromecastPresentationApiConnector";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ISubject, IValueSubject, IError } from "@vkontakte/videoplayer-shared";
|
|
2
|
-
import { ChromecastState } from "
|
|
2
|
+
import { ChromecastState } from "#/player/types";
|
|
3
3
|
import type { IChromecastConnection, IChromecastInitializer, IParams } from "./types";
|
|
4
4
|
export declare class ChromecastInitializer implements IChromecastInitializer {
|
|
5
5
|
readonly connection$: IValueSubject<IChromecastConnection | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IObservable, IValueObservable, IError, ILogger } from "@vkontakte/videoplayer-shared";
|
|
2
|
-
import type { ChromecastState } from "
|
|
2
|
+
import type { ChromecastState } from "#/player/types";
|
|
3
3
|
export interface IChromecastInitializer {
|
|
4
4
|
connect(): void;
|
|
5
5
|
disconnect(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMetadata, ISources, VideoFormat } from "
|
|
1
|
+
import type { IMetadata, ISources, VideoFormat } from "#/player/types";
|
|
2
2
|
import type { IProviderParams } from "../types";
|
|
3
3
|
import type { IChromecastConnection } from "./ChromecastInitializer/types";
|
|
4
4
|
export interface IParams extends Omit<IProviderParams<ISources>, "skipVideoElVolumeSync$"> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IDashURLSource } from "
|
|
2
|
-
import type { IProvider, IProviderParams } from "
|
|
1
|
+
import type { IDashURLSource } from "#/player/types";
|
|
2
|
+
import type { IProvider, IProviderParams } from "#/providers/types";
|
|
3
3
|
import type { Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
type Params = IProviderParams<IDashURLSource> & {
|
|
5
5
|
config: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ILiveOffset } from "
|
|
2
|
-
import { IStateMachine } from "
|
|
1
|
+
import { ILiveOffset } from "#/providers/utils/LiveOffset/types";
|
|
2
|
+
import { IStateMachine } from "#/utils/StateMachine/types";
|
|
3
3
|
import { Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import { IRepresentation, State } from "../types";
|
|
5
5
|
import { Subject } from "@vkontakte/videoplayer-shared";
|
|
6
|
-
import { PlaybackState } from "
|
|
6
|
+
import { PlaybackState } from "#/player/types";
|
|
7
7
|
interface IParams {
|
|
8
8
|
videoElement: HTMLVideoElement;
|
|
9
9
|
videoState: IStateMachine<State>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { IAudioTrack, IDashURLSource, IHLSSource, IInternalTextTrack, IVideoTrack, VideoCodec } from "
|
|
1
|
+
import type { IAudioTrack, IDashURLSource, IHLSSource, IInternalTextTrack, IVideoTrack, VideoCodec } from "#/player/types";
|
|
2
2
|
import type { IProviderSubscriptionInfo } from "./lib/types";
|
|
3
3
|
import { ProviderState } from "./lib/types";
|
|
4
|
-
import type { CommonInit, Representation, Stream } from "
|
|
5
|
-
import type { IProvider, IProviderParams } from "
|
|
6
|
-
import type { IObservableVideo } from "
|
|
7
|
-
import { TrackHistory } from "
|
|
8
|
-
import type { IStateMachine } from "
|
|
4
|
+
import type { CommonInit, Representation, Stream } from "#/providers/utils/parsers/types";
|
|
5
|
+
import type { IProvider, IProviderParams } from "#/providers/types";
|
|
6
|
+
import type { IObservableVideo } from "#/providers/utils/HTMLVideoElement/observable";
|
|
7
|
+
import { TrackHistory } from "#/utils/autoSelectTrack";
|
|
8
|
+
import type { IStateMachine } from "#/utils/StateMachine/types";
|
|
9
9
|
import type { ISubscription, ITracer, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
10
10
|
import { Player } from "./lib/player";
|
|
11
|
-
import { Scene3D } from "
|
|
12
|
-
import DroppedFramesManager from "
|
|
13
|
-
import TextTrackManager from "
|
|
14
|
-
import StallsManager from "
|
|
11
|
+
import { Scene3D } from "#/utils/3d/Scene3D";
|
|
12
|
+
import DroppedFramesManager from "#/providers/utils/HTMLVideoElement/DroppedFramesManager";
|
|
13
|
+
import TextTrackManager from "#/providers/utils/HTMLVideoElement/TextTrackManager";
|
|
14
|
+
import StallsManager from "#/providers/utils/StallsManager";
|
|
15
15
|
import { AbrManager } from "../utils/Abr/abrManager";
|
|
16
16
|
import { ElementSizeManager } from "../utils/HTMLVideoElement/ElementSizeManager";
|
|
17
17
|
type IParams = IProviderParams<IDashURLSource> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IValueSubject, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
2
2
|
import type { Dependencies } from "./buffer";
|
|
3
|
-
import type { Manifest, Stream, TextRepresentation } from "
|
|
3
|
+
import type { Manifest, Stream, TextRepresentation } from "#/providers/utils/parsers/types";
|
|
4
4
|
export declare class LiveTextManager {
|
|
5
5
|
currentRepresentation$: IValueSubject<TextRepresentation | null>;
|
|
6
6
|
private readonly maxRepresentations;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ITuningConfig } from "
|
|
1
|
+
import type { ITuningConfig } from "#/utils/tuningConfig";
|
|
2
2
|
import type { IError, IRange, ISubject, IValueSubject, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
3
3
|
import { abortable } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import type { Fetcher } from "./fetcher";
|
|
5
|
-
import type { CommonInit, Manifest, Representation, Segment, Stream, StreamKind } from "
|
|
5
|
+
import type { CommonInit, Manifest, Representation, Segment, Stream, StreamKind } from "#/providers/utils/parsers/types";
|
|
6
6
|
export interface Dependencies {
|
|
7
7
|
fetcher: Fetcher;
|
|
8
8
|
tuning: ITuningConfig;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { HttpConnectionType, HttpConnectionMetrics, HttpDownloadMetrics } from "
|
|
2
|
-
import type ThroughputEstimator from "
|
|
1
|
+
import type { HttpConnectionType, HttpConnectionMetrics, HttpDownloadMetrics } from "#/player/types";
|
|
2
|
+
import type ThroughputEstimator from "#/utils/ThroughputEstimator";
|
|
3
3
|
import type { Byte, IValueSubject, ISubject, Milliseconds, IRange, ITracer, IError } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import { abortable } from "@vkontakte/videoplayer-shared";
|
|
5
|
-
import type { CommonInit, GenericContainerParser, Segment, SegmentReference } from "
|
|
5
|
+
import type { CommonInit, GenericContainerParser, Segment, SegmentReference } from "#/providers/utils/parsers/types";
|
|
6
6
|
declare global {
|
|
7
7
|
interface Navigator {
|
|
8
8
|
connection: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { IHLSSource, HttpConnectionType, HttpConnectionMetrics, HttpDownloadMetrics, VideoCodec } from "
|
|
1
|
+
import type { IHLSSource, HttpConnectionType, HttpConnectionMetrics, HttpDownloadMetrics, VideoCodec } from "#/player/types";
|
|
2
2
|
import { LiveStreamStatus } from "./types";
|
|
3
|
-
import type { CommonInit, Manifest, Representation, Segment, TextRepresentation } from "
|
|
4
|
-
import { StreamKind } from "
|
|
5
|
-
import StateMachine from "
|
|
6
|
-
import type ThroughputEstimator from "
|
|
7
|
-
import type { ITuningConfig } from "
|
|
3
|
+
import type { CommonInit, Manifest, Representation, Segment, TextRepresentation } from "#/providers/utils/parsers/types";
|
|
4
|
+
import { StreamKind } from "#/providers/utils/parsers/types";
|
|
5
|
+
import StateMachine from "#/utils/StateMachine/StateMachine";
|
|
6
|
+
import type ThroughputEstimator from "#/utils/ThroughputEstimator";
|
|
7
|
+
import type { ITuningConfig } from "#/utils/tuningConfig";
|
|
8
8
|
import type { IError, ISubject, ITracer, IValueSubject, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
9
9
|
import { abortable, Subject } from "@vkontakte/videoplayer-shared";
|
|
10
10
|
export declare enum State {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IObservable, ISubject, IValueSubject } from "@vkontakte/videoplayer-shared";
|
|
2
|
-
import type { IDesiredState, IProviderOutput, IProviderParams } from "
|
|
3
|
-
import type { IObservableVideo } from "
|
|
4
|
-
import type { IDashURLSource } from "
|
|
2
|
+
import type { IDesiredState, IProviderOutput, IProviderParams } from "#/providers/types";
|
|
3
|
+
import type { IObservableVideo } from "#/providers/utils/HTMLVideoElement/observable";
|
|
4
|
+
import type { IDashURLSource } from "#/player/types";
|
|
5
5
|
export declare enum LiveStatus {
|
|
6
6
|
ActiveLowLatency = "active_low_latency",
|
|
7
7
|
LiveWithTargetOffset = "live_with_target_offset",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Representation, Segment, SegmentReference, Stream, TemplateSegment, TemplateSegmentReference, TextRepresentation } from "
|
|
2
|
-
import type { IAudioStream, IAudioTrack, IInternalTextTrack, IVideoStream, IVideoTrack } from "
|
|
1
|
+
import type { Representation, Segment, SegmentReference, Stream, TemplateSegment, TemplateSegmentReference, TextRepresentation } from "#/providers/utils/parsers/types";
|
|
2
|
+
import type { IAudioStream, IAudioTrack, IInternalTextTrack, IVideoStream, IVideoTrack } from "#/player/types";
|
|
3
3
|
export declare const representationToVideoTrack: ({ id, width, height, bitrate, fps, quality: qualityString, streamId, tvDisabled }: Representation) => IVideoTrack | undefined;
|
|
4
4
|
export declare const representationToAudioTrack: ({ id, bitrate }: Representation) => IAudioTrack;
|
|
5
5
|
export declare const representationToTextTrack: ({ language, label }: Stream, { id, url, isAuto }: Representation & {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { IAudioTrack, IBaseTrack, IDashURLSource, IHLSSource, IInternalTextTrack, IVideoTrack, VideoCodec } from "
|
|
1
|
+
import type { IAudioTrack, IBaseTrack, IDashURLSource, IHLSSource, IInternalTextTrack, IVideoTrack, VideoCodec } from "#/player/types";
|
|
2
2
|
import type { IProviderSubscriptionInfo } from "./lib/types";
|
|
3
3
|
import { ProviderState } from "./lib/types";
|
|
4
|
-
import type { Representation, Stream } from "
|
|
5
|
-
import type { IProvider, IProviderParams } from "
|
|
6
|
-
import type { IObservableVideo } from "
|
|
7
|
-
import { TrackHistory } from "
|
|
8
|
-
import type { IStateMachine } from "
|
|
4
|
+
import type { Representation, Stream } from "#/providers/utils/parsers/types";
|
|
5
|
+
import type { IProvider, IProviderParams } from "#/providers/types";
|
|
6
|
+
import type { IObservableVideo } from "#/providers/utils/HTMLVideoElement/observable";
|
|
7
|
+
import { TrackHistory } from "#/utils/autoSelectTrack";
|
|
8
|
+
import type { IStateMachine } from "#/utils/StateMachine/types";
|
|
9
9
|
import type { ISubscription, ITracer, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
10
|
-
import { Scene3D } from "
|
|
11
|
-
import DroppedFramesManager from "
|
|
12
|
-
import TextTrackManager from "
|
|
13
|
-
import StallsManager from "
|
|
10
|
+
import { Scene3D } from "#/utils/3d/Scene3D";
|
|
11
|
+
import DroppedFramesManager from "#/providers/utils/HTMLVideoElement/DroppedFramesManager";
|
|
12
|
+
import TextTrackManager from "#/providers/utils/HTMLVideoElement/TextTrackManager";
|
|
13
|
+
import StallsManager from "#/providers/utils/StallsManager";
|
|
14
14
|
import { ElementSizeManager } from "../utils/HTMLVideoElement/ElementSizeManager";
|
|
15
|
-
import type { BasePlayer } from "
|
|
16
|
-
import { AbrManager } from "
|
|
15
|
+
import type { BasePlayer } from "#/providers/DashProviderVirtual/lib/player/basePlayer";
|
|
16
|
+
import { AbrManager } from "#/providers/utils/Abr/abrManager";
|
|
17
17
|
type IParams = IProviderParams<IDashURLSource> & {
|
|
18
18
|
sourceHls?: IHLSSource;
|
|
19
19
|
forceVideoCodec?: VideoCodec;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
2
2
|
import type { IParams } from "./lib/types";
|
|
3
3
|
import BaseDashProvider from "./baseDashProvider";
|
|
4
|
-
import { LivePlayer } from "
|
|
4
|
+
import { LivePlayer } from "#/providers/DashProviderVirtual/lib/player/livePlayer";
|
|
5
5
|
export default class DashCmafLiveProvider extends BaseDashProvider {
|
|
6
6
|
constructor(params: IParams);
|
|
7
7
|
protected getPlayer(): LivePlayer;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
2
2
|
import BaseDashProvider from "./baseDashProvider";
|
|
3
|
-
import { Player } from "
|
|
3
|
+
import { Player } from "#/providers/DashProviderVirtual/lib/player/player";
|
|
4
4
|
export default class DashProvider extends BaseDashProvider {
|
|
5
5
|
protected subscribe(): void;
|
|
6
6
|
protected getPlayer(): Player;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IValueSubject, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
2
|
-
import type { Manifest, Stream, TextRepresentation } from "
|
|
3
|
-
import type { Dependencies } from "
|
|
2
|
+
import type { Manifest, Stream, TextRepresentation } from "#/providers/utils/parsers/types";
|
|
3
|
+
import type { Dependencies } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
4
4
|
export declare class LiveTextManager {
|
|
5
5
|
currentRepresentation$: IValueSubject<TextRepresentation | null>;
|
|
6
6
|
private readonly maxRepresentations;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Byte, IError, IRange, ISubject, IValueSubject, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
2
|
-
import type { CommonInit, Manifest, Representation, Segment } from "
|
|
3
|
-
import type { Fetcher } from "
|
|
4
|
-
import type { ITuningConfig } from "
|
|
2
|
+
import type { CommonInit, Manifest, Representation, Segment } from "#/providers/utils/parsers/types";
|
|
3
|
+
import type { Fetcher } from "#/providers/DashProviderVirtual/lib/fetcher";
|
|
4
|
+
import type { ITuningConfig } from "#/utils/tuningConfig";
|
|
5
5
|
export type TRepresentationSwitchMode = "lazy" | "force";
|
|
6
6
|
export interface Dependencies {
|
|
7
7
|
fetcher: Fetcher;
|
package/types/providers/DashProviderVirtual/lib/buffer/virtualBuffer/baseVirtualBufferManager.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { Fetcher, FetchParamsWithUrl, Priority, RepresentationFetchResult } from "
|
|
2
|
-
import type { CommonInit, ContainerParser, Representation, Segment } from "
|
|
3
|
-
import { StreamKind } from "
|
|
4
|
-
import type { ITuningConfig } from "
|
|
1
|
+
import type { Fetcher, FetchParamsWithUrl, Priority, RepresentationFetchResult } from "#/providers/DashProviderVirtual/lib/fetcher";
|
|
2
|
+
import type { CommonInit, ContainerParser, Representation, Segment } from "#/providers/utils/parsers/types";
|
|
3
|
+
import { StreamKind } from "#/providers/utils/parsers/types";
|
|
4
|
+
import type { ITuningConfig } from "#/utils/tuningConfig";
|
|
5
5
|
import type { Byte, IError, IRange, ISubject, IValueSubject, Milliseconds, Seconds } from "@vkontakte/videoplayer-shared";
|
|
6
6
|
import { abortable, Subscription } from "@vkontakte/videoplayer-shared";
|
|
7
|
-
import type { NativeBufferManager } from "
|
|
8
|
-
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams, IVirtualBufferManager } from "
|
|
7
|
+
import type { NativeBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/nativeBufferManager";
|
|
8
|
+
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams, IVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
9
9
|
export declare abstract class BaseVirtualBufferManager<T extends Segment> implements IVirtualBufferManager<T> {
|
|
10
10
|
error$: ISubject<IError>;
|
|
11
11
|
playingRepresentation$: IValueSubject<Representation["id"] | undefined>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseVirtualBufferManager } from "
|
|
2
|
-
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams, IVirtualBufferManager } from "
|
|
3
|
-
import type { ByteRangeSegment, Representation, StreamKind } from "
|
|
4
|
-
import type { NativeBufferManager } from "
|
|
5
|
-
import type { FetchParamsWithUrl, Priority } from "
|
|
1
|
+
import { BaseVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/virtualBuffer/baseVirtualBufferManager";
|
|
2
|
+
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams, IVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
3
|
+
import type { ByteRangeSegment, Representation, StreamKind } from "#/providers/utils/parsers/types";
|
|
4
|
+
import type { NativeBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/nativeBufferManager";
|
|
5
|
+
import type { FetchParamsWithUrl, Priority } from "#/providers/DashProviderVirtual/lib/fetcher";
|
|
6
6
|
export declare class ByteRangeVirtualBufferManager extends BaseVirtualBufferManager<ByteRangeSegment> implements IVirtualBufferManager<ByteRangeSegment> {
|
|
7
7
|
constructor(kind: StreamKind, nativeBufferManager: NativeBufferManager, representations: Representation[], dependencies: Dependencies);
|
|
8
8
|
protected loadItems(itemsToLoad: IBufferPlaybackQueueItem<ByteRangeSegment>[], representation: Representation, priority?: Priority): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { TemplateVirtualBufferManager } from "
|
|
2
|
-
import type { Manifest, Representation, StreamKind, TemplateSegment, TemplateSegmentReference } from "
|
|
3
|
-
import type { NativeBufferManager } from "
|
|
4
|
-
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams } from "
|
|
5
|
-
import type { FetchParamsWithUrl, Priority } from "
|
|
1
|
+
import { TemplateVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/virtualBuffer/templateVirtualBufferManager";
|
|
2
|
+
import type { Manifest, Representation, StreamKind, TemplateSegment, TemplateSegmentReference } from "#/providers/utils/parsers/types";
|
|
3
|
+
import type { NativeBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/nativeBufferManager";
|
|
4
|
+
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
5
|
+
import type { FetchParamsWithUrl, Priority } from "#/providers/DashProviderVirtual/lib/fetcher";
|
|
6
6
|
import type { IRange, IValueSubject, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
7
7
|
export declare class LiveVirtualBuffer extends TemplateVirtualBufferManager {
|
|
8
8
|
currentLiveSegmentServerLatency$: IValueSubject<number>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseVirtualBufferManager } from "
|
|
2
|
-
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams, IVirtualBufferManager } from "
|
|
3
|
-
import type { TemplateSegment, Representation, StreamKind } from "
|
|
4
|
-
import type { NativeBufferManager } from "
|
|
5
|
-
import type { FetchParamsWithUrl, Priority } from "
|
|
1
|
+
import { BaseVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/virtualBuffer/baseVirtualBufferManager";
|
|
2
|
+
import type { Dependencies, IBufferPlaybackQueueItem, ISomeDataLoadedCallbackParams, IVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
3
|
+
import type { TemplateSegment, Representation, StreamKind } from "#/providers/utils/parsers/types";
|
|
4
|
+
import type { NativeBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/nativeBufferManager";
|
|
5
|
+
import type { FetchParamsWithUrl, Priority } from "#/providers/DashProviderVirtual/lib/fetcher";
|
|
6
6
|
export declare class TemplateVirtualBufferManager extends BaseVirtualBufferManager<TemplateSegment> implements IVirtualBufferManager<TemplateSegment> {
|
|
7
7
|
constructor(kind: StreamKind, nativeBufferManager: NativeBufferManager, representations: Representation[], dependencies: Dependencies);
|
|
8
8
|
protected loadItems(itemsToLoad: IBufferPlaybackQueueItem<TemplateSegment>[], representation: Representation, priority?: Priority): Promise<void>;
|
package/types/providers/DashProviderVirtual/lib/buffer/virtualBuffer/virtualBufferFactory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Representation, StreamKind } from "
|
|
2
|
-
import type { NativeBufferManager } from "
|
|
3
|
-
import type { Dependencies, IVirtualBufferManager } from "
|
|
1
|
+
import type { Representation, StreamKind } from "#/providers/utils/parsers/types";
|
|
2
|
+
import type { NativeBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/nativeBufferManager";
|
|
3
|
+
import type { Dependencies, IVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
4
4
|
export declare class VirtualBufferFactory {
|
|
5
5
|
static getBufferManager(kind: StreamKind, nativeBufferManager: NativeBufferManager, representations: Representation[], dependencies: Dependencies): IVirtualBufferManager;
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { HttpConnectionType, HttpConnectionMetrics, HttpDownloadMetrics } from "
|
|
2
|
-
import type ThroughputEstimator from "
|
|
1
|
+
import type { HttpConnectionType, HttpConnectionMetrics, HttpDownloadMetrics } from "#/player/types";
|
|
2
|
+
import type ThroughputEstimator from "#/utils/ThroughputEstimator";
|
|
3
3
|
import type { Byte, IError, IRange, ISubject, ITracer, IValueSubject, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
4
4
|
import { abortable } from "@vkontakte/videoplayer-shared";
|
|
5
|
-
import type { CommonInit, GenericContainerParser, Segment, SegmentReference } from "
|
|
5
|
+
import type { CommonInit, GenericContainerParser, Segment, SegmentReference } from "#/providers/utils/parsers/types";
|
|
6
6
|
declare global {
|
|
7
7
|
interface Navigator {
|
|
8
8
|
connection: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import type { HttpConnectionMetrics, HttpConnectionType, HttpDownloadMetrics, IHLSSource, VideoCodec } from "
|
|
1
|
+
import type { HttpConnectionMetrics, HttpConnectionType, HttpDownloadMetrics, IHLSSource, VideoCodec } from "#/player/types";
|
|
2
2
|
import type { LiveStreamStatus } from "../types";
|
|
3
|
-
import type { CommonInit, Manifest, Representation, Segment, TextRepresentation } from "
|
|
4
|
-
import { StreamKind } from "
|
|
5
|
-
import StateMachine from "
|
|
6
|
-
import type ThroughputEstimator from "
|
|
7
|
-
import type { ITuningConfig } from "
|
|
3
|
+
import type { CommonInit, Manifest, Representation, Segment, TextRepresentation } from "#/providers/utils/parsers/types";
|
|
4
|
+
import { StreamKind } from "#/providers/utils/parsers/types";
|
|
5
|
+
import StateMachine from "#/utils/StateMachine/StateMachine";
|
|
6
|
+
import type ThroughputEstimator from "#/utils/ThroughputEstimator";
|
|
7
|
+
import type { ITuningConfig } from "#/utils/tuningConfig";
|
|
8
8
|
import type { IError, IRange, ISubject, ISubscription, ITracer, IValueSubject, Milliseconds, Nullable, Seconds } from "@vkontakte/videoplayer-shared";
|
|
9
9
|
import { abortable, Subject, Subscription, SubscriptionRemovable } from "@vkontakte/videoplayer-shared";
|
|
10
10
|
import { Fetcher } from "../fetcher";
|
|
11
|
-
import type { Dependencies, IVirtualBufferManager } from "
|
|
12
|
-
import type { Params } from "
|
|
13
|
-
import { State } from "
|
|
14
|
-
import { NativeBufferManager } from "
|
|
11
|
+
import type { Dependencies, IVirtualBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
12
|
+
import type { Params } from "#/providers/DashProviderVirtual/lib/player/types";
|
|
13
|
+
import { State } from "#/providers/DashProviderVirtual/lib/player/types";
|
|
14
|
+
import { NativeBufferManager } from "#/providers/DashProviderVirtual/lib/buffer/nativeBufferManager";
|
|
15
15
|
export declare abstract class BasePlayer {
|
|
16
16
|
protected element: HTMLVideoElement | null;
|
|
17
17
|
protected manifestUrlString: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BasePlayer } from "
|
|
2
|
-
import type { ISmoothedValue } from "
|
|
1
|
+
import { BasePlayer } from "#/providers/DashProviderVirtual/lib/player/basePlayer";
|
|
2
|
+
import type { ISmoothedValue } from "#/utils/smoothedValue/types";
|
|
3
3
|
import type { ISubscription, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
4
|
-
import type { Params } from "
|
|
5
|
-
import type { Manifest, Representation } from "
|
|
6
|
-
import type { LiveVirtualBuffer } from "
|
|
7
|
-
import type { IHLSSource } from "
|
|
8
|
-
import { LiveTextManager } from "
|
|
9
|
-
import type { Dependencies } from "
|
|
4
|
+
import type { Params } from "#/providers/DashProviderVirtual/lib/player/types";
|
|
5
|
+
import type { Manifest, Representation } from "#/providers/utils/parsers/types";
|
|
6
|
+
import type { LiveVirtualBuffer } from "#/providers/DashProviderVirtual/lib/buffer/virtualBuffer/liveVirtualBuffer";
|
|
7
|
+
import type { IHLSSource } from "#/player/types";
|
|
8
|
+
import { LiveTextManager } from "#/providers/DashProviderVirtual/lib/LiveTextManager";
|
|
9
|
+
import type { Dependencies } from "#/providers/DashProviderVirtual/lib/buffer/types";
|
|
10
10
|
export declare class LivePlayer extends BasePlayer {
|
|
11
11
|
protected liveTextManager: LiveTextManager | null;
|
|
12
12
|
protected liveStreamEndTimestamp: Milliseconds;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BasePlayer } from "
|
|
2
|
-
import type { Params } from "
|
|
1
|
+
import { BasePlayer } from "#/providers/DashProviderVirtual/lib/player/basePlayer";
|
|
2
|
+
import type { Params } from "#/providers/DashProviderVirtual/lib/player/types";
|
|
3
3
|
export declare class Player extends BasePlayer {
|
|
4
4
|
constructor(params: Params);
|
|
5
5
|
protected prepareManifestUrlString(manifestBaseUrlString: string, _offset: number): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type ThroughputEstimator from "
|
|
2
|
-
import type { ITuningConfig } from "
|
|
3
|
-
import type { VideoCodec } from "
|
|
1
|
+
import type ThroughputEstimator from "#/utils/ThroughputEstimator";
|
|
2
|
+
import type { ITuningConfig } from "#/utils/tuningConfig";
|
|
3
|
+
import type { VideoCodec } from "#/player/types";
|
|
4
4
|
import type { ITracer } from "@vkontakte/videoplayer-shared";
|
|
5
5
|
export declare enum State {
|
|
6
6
|
NONE = "none",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IObservable, ISubject, IValueSubject } from "@vkontakte/videoplayer-shared";
|
|
2
|
-
import type { IDesiredState, IProviderOutput, IProviderParams } from "
|
|
3
|
-
import type { IObservableVideo } from "
|
|
4
|
-
import type { IDashURLSource } from "
|
|
2
|
+
import type { IDesiredState, IProviderOutput, IProviderParams } from "#/providers/types";
|
|
3
|
+
import type { IObservableVideo } from "#/providers/utils/HTMLVideoElement/observable";
|
|
4
|
+
import type { IDashURLSource } from "#/player/types";
|
|
5
5
|
export declare enum LiveStatus {
|
|
6
6
|
ActiveLowLatency = "active_low_latency",
|
|
7
7
|
LiveWithTargetOffset = "live_with_target_offset",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Representation, Segment, SegmentReference, Stream, TemplateSegment, TemplateSegmentReference, TextRepresentation } from "
|
|
2
|
-
import type { IAudioStream, IAudioTrack, IInternalTextTrack, IVideoStream, IVideoTrack } from "
|
|
1
|
+
import type { Representation, Segment, SegmentReference, Stream, TemplateSegment, TemplateSegmentReference, TextRepresentation } from "#/providers/utils/parsers/types";
|
|
2
|
+
import type { IAudioStream, IAudioTrack, IInternalTextTrack, IVideoStream, IVideoTrack } from "#/player/types";
|
|
3
3
|
export declare const representationToVideoTrack: ({ id, width, height, bitrate, fps, quality: qualityString, streamId }: Representation) => IVideoTrack | undefined;
|
|
4
4
|
export declare const representationToAudioTrack: ({ id, bitrate }: Representation) => IAudioTrack;
|
|
5
5
|
export declare const representationToTextTrack: ({ language, label }: Stream, { id, url, isAuto }: Representation & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IInternalTextTrack } from "
|
|
1
|
+
import type { IInternalTextTrack } from "#/player/types";
|
|
2
2
|
import type { IValueSubject, Milliseconds, IError, ISubject } from "@vkontakte/videoplayer-shared";
|
|
3
3
|
import type { HLSManifestData } from "../HlsProvider/manifestDataExtractor";
|
|
4
4
|
type FetchManifestData = (url: string, init?: RequestInit) => Promise<HLSManifestData>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IHLSLiveSource } from "
|
|
2
|
-
import { VideoFormat } from "
|
|
3
|
-
import type { IProvider, IProviderParams } from "
|
|
1
|
+
import type { IHLSLiveSource } from "#/player/types";
|
|
2
|
+
import { VideoFormat } from "#/player/types";
|
|
3
|
+
import type { IProvider, IProviderParams } from "#/providers/types";
|
|
4
4
|
import type { Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
5
5
|
type Params = IProviderParams<IHLSLiveSource> & {
|
|
6
6
|
config: {
|