@byomakase/omakase-player 0.3.0 → 0.3.2

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.
@@ -80,6 +80,7 @@ export declare abstract class VideoController implements VideoApi, Destroyable {
80
80
  private detachVideoEventListeners;
81
81
  private syncVideoFrames;
82
82
  private seekTimeAndSync;
83
+ private seekTimeWithoutSync;
83
84
  private _seekTimeFireAndForget;
84
85
  private _seekTimeAndSyncNoEmitEvents;
85
86
  /***
@@ -116,6 +117,7 @@ export declare abstract class VideoController implements VideoApi, Destroyable {
116
117
  * return Video duration in seconds
117
118
  */
118
119
  getDuration(): number;
120
+ getCorrectedDuration(): number;
119
121
  getFrameRate(): number;
120
122
  getTotalFrames(): number;
121
123
  getCurrentFrame(): number;
@@ -9,6 +9,13 @@ export declare class Video {
9
9
  * @private
10
10
  */
11
11
  private readonly _frameDuration;
12
+ /**
13
+ * Corrected duration field will be updated once when last video fragment gets loaded
14
+ * and calculated duration get shorter than initially set duration
15
+ *
16
+ * @private correctedDuration
17
+ */
18
+ private _correctedDuration;
12
19
  constructor(element: HTMLVideoElement, sourceUrl: string, frameRate: number, duration: number);
13
20
  get element(): HTMLVideoElement;
14
21
  get sourceUrl(): string;
@@ -16,4 +23,6 @@ export declare class Video {
16
23
  get duration(): number;
17
24
  get totalFrames(): number;
18
25
  get frameDuration(): number;
26
+ get correctedDuration(): number;
27
+ setCorrectedDuration(value: number): void;
19
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byomakase/omakase-player",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "## Omakase Player - Open source JavaScript framework for building frame accurate video experiences",
5
5
  "author": "ByOmakase",
6
6
  "homepage": "https://player.byomakase.org",