@vkontakte/videoplayer-core 2.0.119-dev.df6b2fd8.0 → 2.0.119-dev.e9ac9f0e.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.js +20 -20
- package/es2015.esm.js +21 -21
- package/es2018.cjs.js +22 -22
- package/es2018.esm.js +22 -22
- package/esnext.cjs.js +21 -21
- package/esnext.esm.js +21 -21
- package/evergreen.esm.js +21 -21
- package/package.json +2 -2
- package/types/index.d.ts +2 -2
- package/types/player/Player.d.ts +1 -3
- package/types/player/types.d.ts +0 -13
- package/types/utils/tuningConfig.d.ts +0 -2
- package/types/utils/qualityLimits.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.119-dev.
|
|
3
|
+
"version": "2.0.119-dev.e9ac9f0e.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer core library based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"**/*.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@vkontakte/videoplayer-shared": "1.0.51-dev.
|
|
52
|
+
"@vkontakte/videoplayer-shared": "1.0.51-dev.64889560.0",
|
|
53
53
|
"hls.js": "~1.4.7"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VERSION } from './env';
|
|
2
|
-
import { VideoFormat, IMpegSource, IDashSource, IHLSSource, IDashURLSource, IHLSLiveSource, ISeekRequest, URLSource, RawSource, URLSourceWithSeek, Surface
|
|
2
|
+
import { VideoFormat, IMpegSource, IDashSource, IHLSSource, IDashURLSource, IHLSLiveSource, ISeekRequest, URLSource, RawSource, URLSourceWithSeek, Surface } from './player/types';
|
|
3
3
|
import Player from './player/Player';
|
|
4
4
|
import { IPlayer, PlaybackState, IPlayerInfo, IPlayerEvents, IConfig, ISources, ICueSettings, ChromecastState, HttpConnectionType, IExternalTextTrack, ITextTrack, PlaybackRate, IVideoStream, IAudioStream } from './player/types';
|
|
5
5
|
import type { IOptionalTuningConfig } from './utils/tuningConfig';
|
|
@@ -9,4 +9,4 @@ import { Subscription, Observable, Subject, ValueSubject, VideoQuality } from '@
|
|
|
9
9
|
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
declare const SDK_VERSION: string;
|
|
12
|
-
export { Player, IPlayer, PlaybackState, IPlayerInfo, IPlayerEvents, IConfig, IOptionalTuningConfig, ILogEntry, ISources, IExternalTextTrack, ITextTrack, ChromecastState, HttpConnectionType, Surface, Subscription, ISubscription, IUnsubscriber, IObservable, IEmitter, IValueObservable, IValue, IOperator, IListener, VideoFormat, IMpegSource, IDashSource, IDashURLSource, IHLSSource, IHLSLiveSource, URLSource, RawSource, URLSourceWithSeek, VideoQuality, ExactVideoQuality, Observable, Subject, ValueSubject, IRange, ISeekRequest, ICueSettings, VERSION, SDK_VERSION, PlaybackRate, IVideoStream, IAudioStream,
|
|
12
|
+
export { Player, IPlayer, PlaybackState, IPlayerInfo, IPlayerEvents, IConfig, IOptionalTuningConfig, ILogEntry, ISources, IExternalTextTrack, ITextTrack, ChromecastState, HttpConnectionType, Surface, Subscription, ISubscription, IUnsubscriber, IObservable, IEmitter, IValueObservable, IValue, IOperator, IListener, VideoFormat, IMpegSource, IDashSource, IDashURLSource, IHLSSource, IHLSLiveSource, URLSource, RawSource, URLSourceWithSeek, VideoQuality, ExactVideoQuality, Observable, Subject, ValueSubject, IRange, ISeekRequest, ICueSettings, VERSION, SDK_VERSION, PlaybackRate, IVideoStream, IAudioStream, };
|
package/types/player/Player.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IOptionalTuningConfig } from '../utils/tuningConfig';
|
|
2
2
|
import { IError, ILogEntry, Seconds, Subject, ValueSubject, QualityLimits, VideoQuality, ITracer } from '@vkontakte/videoplayer-shared';
|
|
3
|
-
import { ChromecastState, HttpConnectionType, IAudioStream, IConfig, ICueSettings, IExternalTextTrack, IPlayer, ISeekRequest, ISources, ITextTrack, IVideoStream, PlaybackRate, PlaybackState,
|
|
3
|
+
import { ChromecastState, HttpConnectionType, IAudioStream, IConfig, ICueSettings, IExternalTextTrack, IPlayer, ISeekRequest, ISources, ITextTrack, IVideoStream, PlaybackRate, PlaybackState, StartEnd, Surface, VideoFormat } from './types';
|
|
4
4
|
export default class Player implements IPlayer {
|
|
5
5
|
private subscription;
|
|
6
6
|
private domContainer;
|
|
@@ -34,7 +34,6 @@ export default class Player implements IPlayer {
|
|
|
34
34
|
isAutoQualityEnabled$: ValueSubject<boolean>;
|
|
35
35
|
autoQualityLimitingAvailable$: ValueSubject<boolean>;
|
|
36
36
|
autoQualityLimits$: ValueSubject<QualityLimits>;
|
|
37
|
-
predefinedQualityLimitType$: ValueSubject<PredefinedQualityLimits>;
|
|
38
37
|
availableAudioStreams$: ValueSubject<IAudioStream[]>;
|
|
39
38
|
currentAudioStream$: ValueSubject<IVideoStream | undefined>;
|
|
40
39
|
availableAudioTracks$: ValueSubject<import("./types").IBaseTrack[]>;
|
|
@@ -126,7 +125,6 @@ export default class Player implements IPlayer {
|
|
|
126
125
|
setQuality(quality: VideoQuality): IPlayer;
|
|
127
126
|
setAutoQuality(enable: boolean): IPlayer;
|
|
128
127
|
setAutoQualityLimits(limits: QualityLimits): IPlayer;
|
|
129
|
-
setPredefinedQualityLimits(type: PredefinedQualityLimits): this;
|
|
130
128
|
setPlaybackRate(playbackRate: PlaybackRate): IPlayer;
|
|
131
129
|
setExternalTextTracks(tracks: Omit<IExternalTextTrack, 'type'>[]): IPlayer;
|
|
132
130
|
selectTextTrack(id: ITextTrack['id'] | undefined): IPlayer;
|
package/types/player/types.d.ts
CHANGED
|
@@ -38,10 +38,6 @@ export interface IPlayer {
|
|
|
38
38
|
setQuality(quality: VideoQuality): IPlayer;
|
|
39
39
|
setAutoQuality(enable: boolean): IPlayer;
|
|
40
40
|
setAutoQualityLimits(limit: QualityLimits): IPlayer;
|
|
41
|
-
/**
|
|
42
|
-
* Установить предопределенные настройки лимитов.
|
|
43
|
-
*/
|
|
44
|
-
setPredefinedQualityLimits(type: PredefinedQualityLimits): IPlayer;
|
|
45
41
|
startCameraManualRotation(mx: number, my: number): IPlayer;
|
|
46
42
|
stopCameraManualRotation(immediate: boolean): IPlayer;
|
|
47
43
|
moveCameraFocusPX(mx: Pixel, my: Pixel, dt: number): IPlayer;
|
|
@@ -264,10 +260,6 @@ export interface IPlayerInfo {
|
|
|
264
260
|
* Текущие лимиты авто-качества
|
|
265
261
|
*/
|
|
266
262
|
autoQualityLimits$: IValueObservable<QualityLimits>;
|
|
267
|
-
/**
|
|
268
|
-
* Показывает, подходят ли текущие лимиты качества под.
|
|
269
|
-
*/
|
|
270
|
-
predefinedQualityLimitType$: IValueObservable<PredefinedQualityLimits>;
|
|
271
263
|
/**
|
|
272
264
|
* Текущая скорость воспроизведения
|
|
273
265
|
*/
|
|
@@ -576,9 +568,4 @@ export declare enum Surface {
|
|
|
576
568
|
PIP = "pip",
|
|
577
569
|
INVISIBLE = "invisible"
|
|
578
570
|
}
|
|
579
|
-
export declare enum PredefinedQualityLimits {
|
|
580
|
-
TRAFFIC_SAVING = "traffic_saving",
|
|
581
|
-
HIGH_QUALITY = "high_quality",
|
|
582
|
-
UNKNOWN = "unknown"
|
|
583
|
-
}
|
|
584
571
|
export {};
|
|
@@ -43,8 +43,6 @@ export type ITuningConfig = {
|
|
|
43
43
|
trackCooldownDecreaseQuality: Milliseconds;
|
|
44
44
|
backgroundVideoQualityLimit: VideoQuality;
|
|
45
45
|
activeVideoAreaThreshold: number;
|
|
46
|
-
trafficSavingLimit: ExactVideoQuality;
|
|
47
|
-
highQualityLimit: ExactVideoQuality;
|
|
48
46
|
};
|
|
49
47
|
droppedFramesChecker: {
|
|
50
48
|
enabled: boolean;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PredefinedQualityLimits } from '../player/types';
|
|
2
|
-
import { ExactVideoQuality, QualityLimits } from '@vkontakte/videoplayer-shared';
|
|
3
|
-
type Params = {
|
|
4
|
-
limits: QualityLimits;
|
|
5
|
-
highQualityLimit: ExactVideoQuality;
|
|
6
|
-
trafficSavingLimit: ExactVideoQuality;
|
|
7
|
-
};
|
|
8
|
-
export declare function getQualityLimitsPredefinedType({ limits, highQualityLimit, trafficSavingLimit }: Params): PredefinedQualityLimits;
|
|
9
|
-
export {};
|