@vkontakte/videoplayer-core 2.0.74 → 2.0.75

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { VideoFormat, IMpegSource, IDashSource, IHLSSource, IDashURLSource, IHLSLiveSource, StartStatus, ISeekRequest, URLSource, RawSource, URLSourceWithSeek } from "./player/types";
1
+ import { VideoFormat, IMpegSource, IDashSource, IHLSSource, IDashURLSource, IHLSLiveSource, ISeekRequest, URLSource, RawSource, URLSourceWithSeek } from "./player/types";
2
2
  import Player from "./player/Player";
3
3
  import { IPlayer, PlaybackState, IPlayerInfo, IPlayerEvents, IConfig, ISources, ICueSettings, ChromecastState, HttpConnectionType, IExternalTextTrack, ITextTrack, PlaybackRate } from "./player/types";
4
4
  import { VideoQuality, ExactVideoQuality } from "./utils/quality/types";
@@ -8,4 +8,4 @@ import { Subscription, Observable, Subject, ValueSubject } from '@vkontakte/vide
8
8
  * Версия sdk
9
9
  */
10
10
  declare const SDK_VERSION: string;
11
- export { Player, IPlayer, PlaybackState, IPlayerInfo, IPlayerEvents, IConfig, ILogEntry, ISources, IExternalTextTrack, ITextTrack, ChromecastState, HttpConnectionType, Subscription, ISubscription, IUnsubscriber, IObservable, IEmitter, IValueObservable, IValue, IOperator, IListener, VideoFormat, IMpegSource, IDashSource, IDashURLSource, IHLSSource, IHLSLiveSource, URLSource, RawSource, URLSourceWithSeek, VideoQuality, ExactVideoQuality, Observable, Subject, ValueSubject, IRange, StartStatus, ISeekRequest, ICueSettings, SDK_VERSION, PlaybackRate, };
11
+ export { Player, IPlayer, PlaybackState, IPlayerInfo, IPlayerEvents, IConfig, ILogEntry, ISources, IExternalTextTrack, ITextTrack, ChromecastState, HttpConnectionType, 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, SDK_VERSION, PlaybackRate, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-core",
3
- "version": "2.0.74",
3
+ "version": "2.0.75",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -59,6 +59,7 @@ export declare enum SegmentStatus {
59
59
  DOWNLOADING = "downloading",
60
60
  DOWNLOADED = "downloaded",
61
61
  PARTIALLY_FED = "partially_fed",
62
+ PARTIALLY_EJECTED = "partially_ejected",
62
63
  FED = "fed"
63
64
  }
64
65
  export interface Manifest {
@@ -2,7 +2,7 @@ import { HttpConnectionType, ICueSettings, StartEnd, PlaybackRate } from "./type
2
2
  import { QualityLimits, VideoQuality } from "../utils/quality/types";
3
3
  import { IOptionalTuningConfig } from "../utils/tuningConfig";
4
4
  import { IError, ILogEntry, Seconds, Subject, ValueSubject } from '@vkontakte/videoplayer-shared';
5
- import { ChromecastState, IConfig, IExternalTextTrack, IPlayer, ISeekRequest, ITextTrack, PlaybackState, StartStatus, VideoFormat } from './types';
5
+ import { ChromecastState, IConfig, IExternalTextTrack, IPlayer, ISeekRequest, ITextTrack, PlaybackState, VideoFormat } from './types';
6
6
  export default class Player implements IPlayer {
7
7
  private subscription;
8
8
  private domContainer;
@@ -54,8 +54,7 @@ export default class Player implements IPlayer {
54
54
  };
55
55
  events: {
56
56
  inited$: Subject<void>;
57
- started$: Subject<boolean>;
58
- startAttempt$: Subject<StartStatus>;
57
+ started$: Subject<void>;
59
58
  willPause$: Subject<void>;
60
59
  willResume$: Subject<void>;
61
60
  willDestruct$: Subject<void>;
package/player/types.d.ts CHANGED
@@ -76,13 +76,8 @@ export interface IPlayerEvents {
76
76
  /**
77
77
  * Видео начало воспроизведение в первый раз
78
78
  * Соответствует первому для видео внешнему запуску воспроизведения
79
- * Параметр содержит значение isMuted (true если видео заиграло без звука, false если со звуком)
80
79
  */
81
- started$: IObservable<boolean>;
82
- /**
83
- * Попытка начать играть видео
84
- */
85
- startAttempt$: IObservable<StartStatus>;
80
+ started$: IObservable<void>;
86
81
  /**
87
82
  * Запрошена пауза
88
83
  */
@@ -410,11 +405,6 @@ export interface ISeekRequest {
410
405
  from: Seconds;
411
406
  to: Seconds;
412
407
  }
413
- export declare enum StartStatus {
414
- SuccessWithSound = "success_with_sound",
415
- SuccessWithoutSound = "success_without_sound",
416
- Failed = "failed"
417
- }
418
408
  export declare enum HttpConnectionType {
419
409
  HTTP1 = "http1",
420
410
  HTTP2 = "http2",
@@ -59,6 +59,7 @@ export declare enum SegmentStatus {
59
59
  DOWNLOADING = "downloading",
60
60
  DOWNLOADED = "downloaded",
61
61
  PARTIALLY_FED = "partially_fed",
62
+ PARTIALLY_EJECTED = "partially_ejected",
62
63
  FED = "fed"
63
64
  }
64
65
  export interface Manifest {