@byomakase/omakase-player 0.3.4 → 0.8.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/README.md +29 -10
- package/dist/audio/audio-controller.d.ts +0 -4
- package/dist/common/component.d.ts +0 -3
- package/dist/common/style-adapter.d.ts +0 -3
- package/dist/common/styles-provider.d.ts +0 -3
- package/dist/constants.d.ts +15 -0
- package/dist/dom/dom-controller.d.ts +0 -3
- package/dist/events.d.ts +15 -0
- package/dist/http.d.ts +15 -0
- package/dist/index.d.ts +15 -0
- package/dist/omakase-player.cjs.js +37 -37
- package/dist/omakase-player.cjs.js.map +1 -1
- package/dist/omakase-player.d.ts +15 -0
- package/dist/omakase-player.es.js +4128 -4138
- package/dist/omakase-player.es.js.map +1 -1
- package/dist/omakase-player.umd.js +36 -36
- package/dist/omakase-player.umd.js.map +1 -1
- package/dist/subtitles/subtitles-controller.d.ts +0 -3
- package/dist/timeline/audio-track/audio-track-lane-item.d.ts +15 -0
- package/dist/timeline/audio-track/audio-track-lane.d.ts +15 -0
- package/dist/timeline/audio-track/index.d.ts +15 -0
- package/dist/timeline/index.d.ts +15 -0
- package/dist/timeline/marker/index.d.ts +15 -0
- package/dist/timeline/marker/marker-handle.d.ts +15 -0
- package/dist/timeline/marker/marker-lane.d.ts +15 -0
- package/dist/timeline/marker/marker.d.ts +15 -0
- package/dist/timeline/marker/moment-marker.d.ts +16 -0
- package/dist/timeline/marker/period-marker.d.ts +15 -0
- package/dist/timeline/playhead-hover.d.ts +15 -0
- package/dist/timeline/playhead.d.ts +15 -0
- package/dist/timeline/scrollbar.d.ts +15 -0
- package/dist/timeline/scrubber-lane.d.ts +15 -0
- package/dist/timeline/subtitles/index.d.ts +15 -0
- package/dist/timeline/subtitles/subtitles-lane-item.d.ts +15 -0
- package/dist/timeline/subtitles/subtitles-lane.d.ts +15 -0
- package/dist/timeline/thumbnail/index.d.ts +15 -0
- package/dist/timeline/thumbnail/thumbnail-lane.d.ts +15 -0
- package/dist/timeline/thumbnail/thumbnail.d.ts +15 -0
- package/dist/timeline/timecode-display.d.ts +15 -0
- package/dist/timeline/timeline-lane.d.ts +15 -0
- package/dist/timeline/timeline.d.ts +15 -0
- package/dist/track/audio-vtt-file.d.ts +15 -0
- package/dist/track/subtitles-vtt-file.d.ts +15 -0
- package/dist/track/subtitles-vtt-track.d.ts +15 -0
- package/dist/track/thumbnail-vtt-file.d.ts +15 -0
- package/dist/track/track.d.ts +15 -0
- package/dist/track/vtt-file.d.ts +15 -0
- package/dist/types/common.d.ts +15 -0
- package/dist/types/events.d.ts +15 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/model.d.ts +15 -0
- package/dist/types/track.d.ts +15 -0
- package/dist/types/types.d.ts +15 -0
- package/dist/types/vtt.d.ts +15 -0
- package/dist/util/animation-util.d.ts +15 -0
- package/dist/util/color-util.d.ts +15 -0
- package/dist/util/error-util.d.ts +15 -0
- package/dist/util/frame-util.d.ts +15 -0
- package/dist/util/image-util.d.ts +15 -0
- package/dist/util/object-util.d.ts +15 -0
- package/dist/util/observable-util.d.ts +15 -0
- package/dist/util/shape-util.d.ts +15 -0
- package/dist/util/time-util.d.ts +15 -0
- package/dist/util/window-util.d.ts +15 -0
- package/dist/validators.d.ts +15 -0
- package/dist/video/playback-state.d.ts +15 -0
- package/dist/video/video-controller.d.ts +15 -0
- package/dist/video/video-hls-controller.d.ts +15 -0
- package/dist/video/video.d.ts +19 -2
- package/package.json +1 -1
package/dist/types/model.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export interface TimeObservation {
|
|
2
17
|
}
|
|
3
18
|
export interface MomentObservation extends TimeObservation {
|
package/dist/types/track.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export interface OmakaseTrackConfig {
|
|
2
17
|
id: string;
|
|
3
18
|
src: string;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export type CamelToSnakeCase<S extends string> = S extends `${infer T}${infer U}` ? `${T extends Capitalize<T> ? "_" : ""}${Lowercase<T>}${CamelToSnakeCase<U>}` : S;
|
|
2
17
|
export type PartialRecord<K extends keyof any, T> = Partial<Record<K, T>>;
|
|
3
18
|
export type WithOptionalPartial<T, K extends keyof T> = Omit<T, K> & PartialRecord<K, Partial<T[K]>>;
|
package/dist/types/vtt.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { OmakaseTextTrackCue, OmakaseTrackConfig } from "./track";
|
|
2
17
|
export interface OmakaseVttFile<T extends OmakaseVttCue> {
|
|
3
18
|
getCues(): T[];
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import Konva from "konva";
|
|
2
17
|
import { IFrame } from "konva/lib/types";
|
|
3
18
|
export interface AnimateConf {
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare class ColorUtil {
|
|
2
17
|
static randomHexColor(): string;
|
|
3
18
|
}
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { ParseParams } from "zod/lib/helpers/parseUtil";
|
|
2
17
|
export declare function parseErrorMessage(error: string | Error): string;
|
|
3
18
|
export declare function zodErrorMapOverload(message: string): Partial<ParseParams>;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import Decimal from "decimal.js";
|
|
2
17
|
export declare class FrameUtil {
|
|
3
18
|
/***
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import Konva from "konva";
|
|
2
17
|
import { Observable } from "rxjs";
|
|
3
18
|
export declare class ImageUtil {
|
|
@@ -1 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare function isNullOrUndefined(value: any): boolean;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { Subject } from "rxjs";
|
|
2
17
|
export declare function nextCompleteVoidSubject(subject: Subject<void>): void;
|
|
3
18
|
export declare function nextCompleteVoidSubjects(...subjects: Subject<void>[]): void;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import Konva from "konva";
|
|
2
17
|
export declare class ShapeUtil {
|
|
3
18
|
static createGoldenRatioWedge(config: {
|
package/dist/util/time-util.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import Decimal from "decimal.js";
|
|
2
17
|
export declare class TimeUtil {
|
|
3
18
|
static readonly VIDEO_ZERO_TIMESTAMP: string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare class WindowUtil {
|
|
2
17
|
static resetCursorStyle(): void;
|
|
3
18
|
static cursor(cursor: 'default' | 'pointer' | 'grab' | 'grabbing' | 'ew-resize'): void;
|
package/dist/validators.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare class Validators {
|
|
2
17
|
static id(): (value: string) => string;
|
|
3
18
|
static description(): (value: string) => string;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { Subject } from "rxjs";
|
|
2
17
|
export interface PlaybackState {
|
|
3
18
|
playing: boolean;
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import Decimal from "decimal.js";
|
|
2
17
|
import { AudioEvent, VideoBufferingEvent, VideoEndedEvent, VideoErrorEvent, VideoLoadedEvent, VideoLoadingEvent, VideoPlayEvent, VideoSeekedEvent, VideoSeekingEvent, VideoTimeChangeEvent } from "../types/events";
|
|
3
18
|
import { BehaviorSubject, Observable, Subject } from "rxjs";
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
import { HTMLVideoElementCrossorigin, VideoController } from "./video-controller";
|
|
2
17
|
import Hls, { MediaPlaylist } from "hls.js";
|
|
3
18
|
import { Observable } from "rxjs";
|
package/dist/video/video.d.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023 ByOmakase, LLC (https://byomakase.org)
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
1
16
|
export declare class Video {
|
|
2
17
|
private readonly _element;
|
|
3
18
|
private readonly _sourceUrl;
|
|
@@ -10,8 +25,10 @@ export declare class Video {
|
|
|
10
25
|
*/
|
|
11
26
|
private readonly _frameDuration;
|
|
12
27
|
/**
|
|
13
|
-
* Corrected duration field
|
|
14
|
-
*
|
|
28
|
+
* Corrected duration field may be updated once when:
|
|
29
|
+
* * video element changes video duration
|
|
30
|
+
* * video ends on bare start of the last frame, which might not exist in that moment
|
|
31
|
+
* * last hls segment ends of different time than it was initially calculated
|
|
15
32
|
*
|
|
16
33
|
* @private correctedDuration
|
|
17
34
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byomakase/omakase-player",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
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",
|