@vkontakte/videoplayer-core 2.0.157-dev.30efab63.0 → 2.0.157-dev.50bf8b6d.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.cjs +220 -0
- package/es2015.esm.js +34 -34
- package/esnext.cjs +220 -0
- package/esnext.esm.js +30 -30
- package/evergreen.esm.js +30 -30
- package/package.json +18 -7
- package/types/index.d.ts +10 -10
- package/types/player/Player.d.ts +16 -112
- package/types/player/types.d.ts +144 -103
- package/types/player/utils/defaults.d.ts +4 -0
- 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 +16 -16
- 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 +41 -25
- package/types/providers/utils/Abr/abrController.d.ts +3 -3
- 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 +4 -4
- package/types/providers/utils/Abr/types.d.ts +3 -3
- package/types/providers/utils/Abr/utils.d.ts +2 -2
- 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/StateMachine/StateMachine.d.ts +3 -2
- package/types/utils/StateMachine/comparators.d.ts +3 -0
- package/types/utils/StateMachine/types.d.ts +1 -0
- 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 +8 -4
- package/types/utils/videoFormat.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ITwoEmaParams } from "
|
|
2
|
-
import { BaseSmoothedValue } from "
|
|
1
|
+
import type { ITwoEmaParams } from "./types";
|
|
2
|
+
import { BaseSmoothedValue } from "./baseSmoothedValue";
|
|
3
3
|
export declare class TwoEmaSmoothedValue extends BaseSmoothedValue {
|
|
4
4
|
private slow;
|
|
5
5
|
private fast;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { VideoCodec, VideoFormat } from "
|
|
2
|
-
import { WebmCodecStrategy } from "
|
|
3
|
-
import { AndroidPreferredFormat } from "
|
|
4
|
-
import { IOSPreferredFormat } from "
|
|
1
|
+
import type { VideoCodec, VideoFormat } from "../player/types";
|
|
2
|
+
import { WebmCodecStrategy } from "../enums/WebmCodecStrategy";
|
|
3
|
+
import { AndroidPreferredFormat } from "../enums/AndroidPreferredFormat";
|
|
4
|
+
import { IOSPreferredFormat } from "../enums/IOSPreferredFormat";
|
|
5
5
|
import type { Byte, Milliseconds, RecursivePartial, Seconds } from "@vkontakte/videoplayer-shared";
|
|
6
6
|
import { type ExactVideoQuality, VideoQuality } from "@vkontakte/videoplayer-shared";
|
|
7
7
|
export type ITuningConfig = {
|
|
@@ -20,6 +20,10 @@ export type ITuningConfig = {
|
|
|
20
20
|
* В противном случае они размножаются
|
|
21
21
|
*/
|
|
22
22
|
clearVideoElementInnerHTML: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Включает очистку состояния плеера при вызове метода stop()
|
|
25
|
+
*/
|
|
26
|
+
allowPlayerReuse: boolean;
|
|
23
27
|
throughputEstimator: {
|
|
24
28
|
type: "TwoEma" | "EmaAndMa";
|
|
25
29
|
emaAlphaSlow: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ISources, VideoFormat } from "
|
|
1
|
+
import { type ISources, VideoFormat } from "../player/types";
|
|
2
2
|
export declare const filterAvailableFormats: (formats: VideoFormat[]) => VideoFormat[];
|
|
3
3
|
export declare const isLiveFormat: (format: VideoFormat) => boolean;
|
|
4
4
|
export declare const areValidLiveRecordSources: (sources: ISources) => boolean;
|