@byomakase/omakase-player 0.1.2 → 0.2.1
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/dom/dom-controller.d.ts +1 -0
- package/dist/http.d.ts +2 -2
- package/dist/omakase-player.cjs.js +18 -18
- package/dist/omakase-player.cjs.js.map +1 -1
- package/dist/omakase-player.d.ts +1 -0
- package/dist/omakase-player.es.js +985 -974
- package/dist/omakase-player.es.js.map +1 -1
- package/dist/omakase-player.umd.js +24 -24
- package/dist/omakase-player.umd.js.map +1 -1
- package/dist/subtitles/subtitles-controller.d.ts +1 -0
- package/dist/timeline/thumbnail/thumbnail-lane.d.ts +3 -0
- package/dist/timeline/timeline.d.ts +3 -0
- package/dist/track/audio-vtt-file.d.ts +3 -2
- package/dist/track/subtitles-vtt-file.d.ts +3 -2
- package/dist/track/thumbnail-vtt-file.d.ts +3 -2
- package/dist/track/vtt-file.d.ts +3 -1
- package/dist/video/video-controller.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { BaseTimelineLane, TimelaneLaneConfig, TimelineLaneStyle } from "../time
|
|
|
5
5
|
import { ThumbnailVttFile } from "../../track/thumbnail-vtt-file";
|
|
6
6
|
import { ThumbnailEvent } from "../../types";
|
|
7
7
|
import { ComponentConfigStyleComposed } from "../../common/component";
|
|
8
|
+
import { AxiosRequestConfig } from "axios";
|
|
8
9
|
export interface ThumbnailLaneStyle extends TimelineLaneStyle {
|
|
9
10
|
thumbnailHeight: number;
|
|
10
11
|
thumbnailStroke: string;
|
|
@@ -15,9 +16,11 @@ export interface ThumbnailLaneStyle extends TimelineLaneStyle {
|
|
|
15
16
|
}
|
|
16
17
|
export interface ThumbnailLaneConfig extends TimelaneLaneConfig<ThumbnailLaneStyle> {
|
|
17
18
|
thumbnailVttUrl: string;
|
|
19
|
+
axiosConfig: AxiosRequestConfig;
|
|
18
20
|
}
|
|
19
21
|
export declare class ThumbnailLane extends BaseTimelineLane<ThumbnailLaneConfig, ThumbnailLaneStyle> {
|
|
20
22
|
private _thumbnailVttUrl;
|
|
23
|
+
private _axiosConfig;
|
|
21
24
|
protected readonly thumbnailsMap: Map<number, Thumbnail>;
|
|
22
25
|
protected readonly thumbnailsVisibleSet: Set<number>;
|
|
23
26
|
protected thumbnailHover: Thumbnail;
|
|
@@ -16,6 +16,7 @@ import { AudioTrackLane } from "./audio-track";
|
|
|
16
16
|
import { MarkerLaneConfig } from "./marker/marker-lane";
|
|
17
17
|
import { ThumbnailLaneConfig } from "./thumbnail/thumbnail-lane";
|
|
18
18
|
import { SubtitlesLaneConfig } from "./subtitles/subtitles-lane";
|
|
19
|
+
import { AxiosRequestConfig } from "axios";
|
|
19
20
|
export interface TimelineStyle {
|
|
20
21
|
stageMinWidth: number;
|
|
21
22
|
backgroundFill: string;
|
|
@@ -46,6 +47,7 @@ export interface TimelineStyle {
|
|
|
46
47
|
}
|
|
47
48
|
export interface TimelineConfig extends ComponentConfig<TimelineStyle> {
|
|
48
49
|
thumbnailVttUrl?: string;
|
|
50
|
+
axiosConfig?: AxiosRequestConfig;
|
|
49
51
|
timelineHTMLElementId: string;
|
|
50
52
|
playheadHoverSnapArea: number;
|
|
51
53
|
zoomScale: number;
|
|
@@ -55,6 +57,7 @@ export interface TimelineConfig extends ComponentConfig<TimelineStyle> {
|
|
|
55
57
|
export declare class Timeline extends BaseComponent<TimelineConfig, TimelineStyle, Konva.Stage> implements OnMeasurementsChange, HasRectMeasurement, ScrollableHorizontally, TimelineApi {
|
|
56
58
|
private timelineHTMLElementId;
|
|
57
59
|
private thumbnailVttUrl;
|
|
60
|
+
private axiosConfig;
|
|
58
61
|
private width;
|
|
59
62
|
private zoomScale;
|
|
60
63
|
private zoomBaseline;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BaseOmakaseVttFile, VttCueParsed } from "./vtt-file";
|
|
2
2
|
import { AudioVttCue } from "../types";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
+
import { AxiosRequestConfig } from "axios";
|
|
4
5
|
export declare class AudioVttFile extends BaseOmakaseVttFile<AudioVttCue> {
|
|
5
|
-
protected constructor(url: string);
|
|
6
|
-
static create(url: string): Observable<AudioVttFile>;
|
|
6
|
+
protected constructor(url: string, axiosConfig?: AxiosRequestConfig);
|
|
7
|
+
static create(url: string, axiosConfig?: AxiosRequestConfig): Observable<AudioVttFile>;
|
|
7
8
|
protected mapCue(vttCueParsed: VttCueParsed): AudioVttCue;
|
|
8
9
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BaseOmakaseVttFile, VttCueParsed } from "./vtt-file";
|
|
2
2
|
import { SubtitlesVttCue } from "../types";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
+
import { AxiosRequestConfig } from "axios";
|
|
4
5
|
export declare class SubtitlesVttFile extends BaseOmakaseVttFile<SubtitlesVttCue> {
|
|
5
|
-
protected constructor(url: string);
|
|
6
|
-
static create(url: string): Observable<SubtitlesVttFile>;
|
|
6
|
+
protected constructor(url: string, axiosConfig?: AxiosRequestConfig);
|
|
7
|
+
static create(url: string, axiosConfig?: AxiosRequestConfig): Observable<SubtitlesVttFile>;
|
|
7
8
|
protected mapCue(vttCueParsed: VttCueParsed): SubtitlesVttCue;
|
|
8
9
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { BaseOmakaseVttFile, VttCueParsed } from "./vtt-file";
|
|
2
2
|
import { ThumbnailVttCue } from "../types";
|
|
3
3
|
import { Observable } from "rxjs";
|
|
4
|
+
import { AxiosRequestConfig } from "axios";
|
|
4
5
|
export declare class ThumbnailVttFile extends BaseOmakaseVttFile<ThumbnailVttCue> {
|
|
5
|
-
protected constructor(url: string);
|
|
6
|
-
static create(url: string): Observable<ThumbnailVttFile>;
|
|
6
|
+
protected constructor(url: string, axiosConfig?: AxiosRequestConfig);
|
|
7
|
+
static create(url: string, axiosConfig?: AxiosRequestConfig): Observable<ThumbnailVttFile>;
|
|
7
8
|
protected mapCue(vttCueParsed: VttCueParsed): ThumbnailVttCue;
|
|
8
9
|
private resolveThumbnailUrl;
|
|
9
10
|
private createThumbnailUrlFromRelativeUrl;
|
package/dist/track/vtt-file.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { OmakaseVttCue, OmakaseVttFile } from "../types";
|
|
3
|
+
import { AxiosRequestConfig } from "axios";
|
|
3
4
|
export interface VttCueParsed {
|
|
4
5
|
identifier: string;
|
|
5
6
|
start: number;
|
|
@@ -18,9 +19,10 @@ export interface VttFileParsed {
|
|
|
18
19
|
}
|
|
19
20
|
export declare abstract class BaseOmakaseVttFile<T extends OmakaseVttCue> implements OmakaseVttFile<T> {
|
|
20
21
|
protected url: string;
|
|
22
|
+
protected axiosConfig: AxiosRequestConfig;
|
|
21
23
|
protected cues: Map<number, T>;
|
|
22
24
|
protected cuesKeysSorted: number[];
|
|
23
|
-
protected constructor(url: string);
|
|
25
|
+
protected constructor(url: string, axiosConfig?: AxiosRequestConfig);
|
|
24
26
|
fetch(): Observable<boolean>;
|
|
25
27
|
protected abstract mapCue(vttCueParsed: VttCueParsed): T;
|
|
26
28
|
getUrl(): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byomakase/omakase-player",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
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",
|