@byomakase/omakase-player 0.8.3 → 0.8.6
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/dist/api/marker-lane-api.d.ts +3 -2
- package/dist/api/omakase-player-api.d.ts +1 -1
- package/dist/api/subtitles-api.d.ts +4 -4
- package/dist/api/timeline-api.d.ts +6 -1
- package/dist/api/video-api.d.ts +20 -1
- package/dist/common/component.d.ts +1 -1
- package/dist/omakase-player.cjs.js +22 -22
- package/dist/omakase-player.cjs.js.map +1 -1
- package/dist/omakase-player.d.ts +3 -5
- package/dist/omakase-player.es.js +1843 -1818
- package/dist/omakase-player.es.js.map +1 -1
- package/dist/omakase-player.umd.js +23 -23
- package/dist/omakase-player.umd.js.map +1 -1
- package/dist/timeline/index.d.ts +1 -0
- package/dist/timeline/marker/marker-lane.d.ts +2 -2
- package/dist/timeline/thumbnail/thumbnail-lane.d.ts +12 -11
- package/dist/timeline/timeline.d.ts +6 -5
- package/dist/track/vtt-file.d.ts +1 -1
- package/dist/util/timestamp-util.d.ts +1 -1
- package/dist/video/video-controller.d.ts +5 -1
- package/package.json +1 -1
|
@@ -19,6 +19,7 @@ import { MomentMarker, MomentMarkerConfig } from '../timeline/marker/moment-mark
|
|
|
19
19
|
import { PeriodMarker, PeriodMarkerConfig } from '../timeline/marker/period-marker';
|
|
20
20
|
import { Subject } from 'rxjs';
|
|
21
21
|
import { MarkerFocusEvent } from '../types';
|
|
22
|
+
import { ComponentConfigStyleComposed } from '../common/component';
|
|
22
23
|
export interface MarkerLaneApi extends Api {
|
|
23
24
|
/***
|
|
24
25
|
* Fires on marker focus
|
|
@@ -28,12 +29,12 @@ export interface MarkerLaneApi extends Api {
|
|
|
28
29
|
* Creates new MomentMarker instance and adds it to MarkerLane
|
|
29
30
|
* @param config MomentMarker configuration
|
|
30
31
|
*/
|
|
31
|
-
createMomentMarker(config: MomentMarkerConfig): MomentMarker;
|
|
32
|
+
createMomentMarker(config: ComponentConfigStyleComposed<MomentMarkerConfig>): MomentMarker;
|
|
32
33
|
/***
|
|
33
34
|
* Creates new PeriodMarker instance and adds it to MarkerLane
|
|
34
35
|
* @param config PeriodMarkern configuration
|
|
35
36
|
*/
|
|
36
|
-
createPeriodMarker(config: PeriodMarkerConfig): PeriodMarker;
|
|
37
|
+
createPeriodMarker(config: ComponentConfigStyleComposed<PeriodMarkerConfig>): PeriodMarker;
|
|
37
38
|
/***
|
|
38
39
|
* Adds Marker to MarkerLane
|
|
39
40
|
* @param marker Marker instance
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { Api } from './api';
|
|
17
|
-
import { Timeline, TimelineConfig } from '../timeline
|
|
17
|
+
import { Timeline, TimelineConfig } from '../timeline';
|
|
18
18
|
import { Observable } from 'rxjs';
|
|
19
19
|
import { SubtitlesApi } from './subtitles-api';
|
|
20
20
|
import { VideoApi } from './video-api';
|
|
@@ -60,15 +60,15 @@ export interface SubtitlesApi extends Api {
|
|
|
60
60
|
* Shows active VTT track
|
|
61
61
|
*/
|
|
62
62
|
showTrack(): any;
|
|
63
|
+
/***
|
|
64
|
+
* Hides active VTT track
|
|
65
|
+
*/
|
|
66
|
+
hideTrack(): any;
|
|
63
67
|
/***
|
|
64
68
|
* Shows VTT track by ID
|
|
65
69
|
* @param id VTT track ID
|
|
66
70
|
*/
|
|
67
71
|
showTrack(id: string): any;
|
|
68
|
-
/***
|
|
69
|
-
* Hides active VTT track
|
|
70
|
-
*/
|
|
71
|
-
hideTrack(): any;
|
|
72
72
|
/***
|
|
73
73
|
* Hides VTT track by ID
|
|
74
74
|
* @param id VTT track ID
|
|
@@ -18,7 +18,7 @@ import { Observable } from 'rxjs';
|
|
|
18
18
|
import { TimelineScrollEvent, TimelineZoomEvent } from '../types';
|
|
19
19
|
import { AudioTrackLane, MarkerLane, SubtitlesLane, ThumbnailLane } from '../timeline';
|
|
20
20
|
import { GenericTimelaneLane } from '../timeline/timeline-lane';
|
|
21
|
-
import { TimelineStyle } from '../timeline
|
|
21
|
+
import { TimelineStyle } from '../timeline';
|
|
22
22
|
import { MarkerLaneConfig } from '../timeline/marker/marker-lane';
|
|
23
23
|
import { ThumbnailLaneConfig } from '../timeline/thumbnail/thumbnail-lane';
|
|
24
24
|
import { SubtitlesLaneConfig } from '../timeline/subtitles/subtitles-lane';
|
|
@@ -138,4 +138,9 @@ export interface TimelineApi extends Api {
|
|
|
138
138
|
* Return ThumbnailVttFile if set
|
|
139
139
|
*/
|
|
140
140
|
getThumbnailVttFile(): ThumbnailVttFile;
|
|
141
|
+
/**
|
|
142
|
+
* Load ThumbnailVttFile by url
|
|
143
|
+
*/
|
|
144
|
+
loadThumbnailsFromUrl(thumbnailVttUrl: string): Observable<boolean>;
|
|
145
|
+
destroy(): any;
|
|
141
146
|
}
|
package/dist/api/video-api.d.ts
CHANGED
|
@@ -161,6 +161,12 @@ export interface VideoApi extends Api {
|
|
|
161
161
|
* @param timestamp Video timestamp in HH:MM:SS:FF format
|
|
162
162
|
*/
|
|
163
163
|
seekToFormattedTimestamp(timestamp: string): Observable<boolean>;
|
|
164
|
+
/**
|
|
165
|
+
* Seeks to timeline location
|
|
166
|
+
*
|
|
167
|
+
* @param percent
|
|
168
|
+
*/
|
|
169
|
+
seekToPercent(percent: number): Observable<boolean>;
|
|
164
170
|
/***
|
|
165
171
|
* Formats video timestamp to HH:MM:SS:FF
|
|
166
172
|
* @param time Video timestamp in seconds
|
|
@@ -170,7 +176,12 @@ export interface VideoApi extends Api {
|
|
|
170
176
|
* Converts timestamp in format HH:MM:SS:FF to frame
|
|
171
177
|
* @param timestamp
|
|
172
178
|
*/
|
|
173
|
-
|
|
179
|
+
parseTimestampToFrame(timestamp: string): number;
|
|
180
|
+
/**
|
|
181
|
+
* Converts timestamp in format HH:MM:SS:FF to time in seconds
|
|
182
|
+
* @param timestamp
|
|
183
|
+
*/
|
|
184
|
+
parseTimestamp(timestamp: string): number;
|
|
174
185
|
/***
|
|
175
186
|
* Returns video frame number
|
|
176
187
|
* @param time Video timestamp in seconds
|
|
@@ -189,6 +200,14 @@ export interface VideoApi extends Api {
|
|
|
189
200
|
* Video unmute
|
|
190
201
|
*/
|
|
191
202
|
unmute(): any;
|
|
203
|
+
/***
|
|
204
|
+
* Returns is video muted
|
|
205
|
+
*/
|
|
206
|
+
isMuted(): boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Toggles mute / unmute
|
|
209
|
+
*/
|
|
210
|
+
toggleMuteUnmute(): void;
|
|
192
211
|
/***
|
|
193
212
|
* Indicates if video is in fullscreen mode
|
|
194
213
|
*/
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import Konva from 'konva';
|
|
18
18
|
import { Observable, Subject } from 'rxjs';
|
|
19
19
|
import { StyleAdapter } from './style-adapter';
|
|
20
|
-
import { WithOptionalPartial } from '../types
|
|
20
|
+
import { WithOptionalPartial } from '../types';
|
|
21
21
|
import { Destroyable } from '../types';
|
|
22
22
|
export interface ComponentConfig<S> {
|
|
23
23
|
style: S;
|