@vkontakte/videoplayer-core 2.0.87 → 2.0.88
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 +6 -6
- package/es2015.esm.js +6 -6
- package/es2018.cjs.js +6 -6
- package/es2018.esm.js +6 -6
- package/esnext.cjs.js +6 -6
- package/esnext.esm.js +6 -6
- package/evergreen.esm.js +6 -6
- package/index.d.ts +8 -25
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -1,30 +1,8 @@
|
|
|
1
|
-
import { Seconds, ILogEntry, IValueObservable, IValueSubject, IObservable, Milliseconds, IError, Kbps, Byte, ValueSubject, Subject } from '@vkontakte/videoplayer-shared';
|
|
2
|
-
export { IEmitter, IListener, ILogEntry, IObservable, IOperator, IRange, ISubscription, IUnsubscriber, IValue, IValueObservable, Observable, Subject, Subscription, ValueSubject } from '@vkontakte/videoplayer-shared';
|
|
1
|
+
import { Seconds, VideoQuality, QualityLimits, ILogEntry, IValueObservable, IValueSubject, IObservable, Milliseconds, IError, Kbps, Byte, ValueSubject, Subject } from '@vkontakte/videoplayer-shared';
|
|
2
|
+
export { ExactVideoQuality, IEmitter, IListener, ILogEntry, IObservable, IOperator, IRange, ISubscription, IUnsubscriber, IValue, IValueObservable, Observable, Subject, Subscription, ValueSubject, VideoQuality } from '@vkontakte/videoplayer-shared';
|
|
3
3
|
|
|
4
4
|
declare const VERSION: string;
|
|
5
5
|
|
|
6
|
-
declare enum VideoQuality {
|
|
7
|
-
INVARIANT = "Invariant quality",
|
|
8
|
-
Q_144P = "144p",
|
|
9
|
-
Q_240P = "240p",
|
|
10
|
-
Q_360P = "360p",
|
|
11
|
-
Q_480P = "480p",
|
|
12
|
-
Q_720P = "720p",
|
|
13
|
-
Q_1080P = "1080p",
|
|
14
|
-
Q_1440P = "1440p",
|
|
15
|
-
Q_2160P = "2160p",
|
|
16
|
-
Q_4320P = "4320p"
|
|
17
|
-
}
|
|
18
|
-
type ExactVideoQuality = Exclude<VideoQuality, VideoQuality.INVARIANT>;
|
|
19
|
-
/**
|
|
20
|
-
* Лимиты трактуются включительно
|
|
21
|
-
* Значение undefined снимает лимит
|
|
22
|
-
*/
|
|
23
|
-
type QualityLimits = {
|
|
24
|
-
max?: ExactVideoQuality;
|
|
25
|
-
min?: ExactVideoQuality;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
6
|
interface StartEnd<Unit extends number> {
|
|
29
7
|
start: Unit;
|
|
30
8
|
end: Unit;
|
|
@@ -361,6 +339,10 @@ interface IPlayerInfo {
|
|
|
361
339
|
* Где сейчас рисуется картинка
|
|
362
340
|
*/
|
|
363
341
|
surface$: IValueObservable<Surface | undefined>;
|
|
342
|
+
/**
|
|
343
|
+
* Список всех доступных источников
|
|
344
|
+
*/
|
|
345
|
+
availableSources$: IValueObservable<ISources | undefined>;
|
|
364
346
|
}
|
|
365
347
|
declare enum PlaybackState {
|
|
366
348
|
STOPPED = "stopped",
|
|
@@ -638,6 +620,7 @@ declare class Player implements IPlayer {
|
|
|
638
620
|
width: number;
|
|
639
621
|
height: number;
|
|
640
622
|
} | undefined>;
|
|
623
|
+
availableSources$: ValueSubject<ISources | undefined>;
|
|
641
624
|
};
|
|
642
625
|
events: {
|
|
643
626
|
inited$: Subject<void>;
|
|
@@ -712,4 +695,4 @@ declare class Player implements IPlayer {
|
|
|
712
695
|
*/
|
|
713
696
|
declare const SDK_VERSION: string;
|
|
714
697
|
|
|
715
|
-
export { ChromecastState,
|
|
698
|
+
export { ChromecastState, HttpConnectionType, IConfig, ICueSettings, IDashSource, IDashURLSource, IExternalTextTrack, IHLSLiveSource, IHLSSource, IMpegSource, IOptionalTuningConfig, IPlayer, IPlayerEvents, IPlayerInfo, ISeekRequest, ISources, ITextTrack, PlaybackRate, PlaybackState, Player, RawSource, SDK_VERSION, Surface, URLSource, URLSourceWithSeek, VERSION, VideoFormat };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer-core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.88",
|
|
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.
|
|
52
|
+
"@vkontakte/videoplayer-shared": "^1.0.25",
|
|
53
53
|
"dashjs": "~4.6.0",
|
|
54
54
|
"hls.js": "~1.4.0",
|
|
55
55
|
"lodash": "~4.17.21"
|