@vkontakte/videoplayer-core 2.0.140-dev.f570f498.0 → 2.0.140-dev.fd58d47b.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer-core",
3
- "version": "2.0.140-dev.f570f498.0",
3
+ "version": "2.0.140-dev.fd58d47b.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer core library based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -54,6 +54,6 @@
54
54
  "**/*.d.ts"
55
55
  ],
56
56
  "dependencies": {
57
- "@vkontakte/videoplayer-shared": "1.0.68-dev.b70e5679.0"
57
+ "@vkontakte/videoplayer-shared": "1.0.68-dev.fd58d47b.0"
58
58
  }
59
59
  }
@@ -1,6 +1,7 @@
1
1
  import { IOptionalTuningConfig } from '../utils/tuningConfig';
2
2
  import { IError, ILogEntry, Seconds, Subject, ValueSubject, QualityLimits, VideoQuality, ITracer } from '@vkontakte/videoplayer-shared';
3
3
  import { ChromecastState, HttpConnectionType, IAudioStream, IConfig, ICueSettings, IExternalTextTrack, IPlayer, ISeekRequest, ISources, ITextTrack, IVideoStream, PlaybackRate, PlaybackState, PredefinedQualityLimits, StartEnd, Surface, VideoFormat } from './types';
4
+ import { IPlayerOptions } from '../utils/playerOptions';
4
5
  export default class Player implements IPlayer {
5
6
  private subscription;
6
7
  private domContainer;
@@ -119,7 +120,7 @@ export default class Player implements IPlayer {
119
120
  dumpTelemetry: (receiver: (value: Record<string, any>) => void) => void;
120
121
  getCurrentTime$: ValueSubject<null>;
121
122
  };
122
- constructor(tuning?: IOptionalTuningConfig, tracer?: ITracer);
123
+ constructor(tuning?: IOptionalTuningConfig, tracer?: ITracer, playerOptions?: IPlayerOptions);
123
124
  initVideo(config: IConfig): IPlayer;
124
125
  destroy(): void;
125
126
  prepare(): IPlayer;
@@ -0,0 +1,3 @@
1
+ export type IPlayerOptions = {
2
+ playerId?: string;
3
+ };
@@ -112,6 +112,7 @@ export type ITuningConfig = {
112
112
  codecsPrioritizeEnabled: boolean;
113
113
  usePersistentGaps: boolean;
114
114
  abrThrottle: number;
115
+ useVideoElementWaitingCurrentTimeReassign: boolean;
115
116
  };
116
117
  dashCmafLive: {
117
118
  maxActiveLiveOffset: Milliseconds;