@bitmovin/player-web-x 10.2.0-beta.13 → 10.2.0-beta.14
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/bundles/playerx-bitmovin-v8-core.js +2 -2
- package/bundles/playerx-bitmovin-v8.js +2 -2
- package/bundles/playerx-core.js +2 -2
- package/bundles/playerx-dash.js +2 -2
- package/bundles/playerx-hls-ts-audio.js +2 -2
- package/bundles/playerx-hls.js +2 -2
- package/bundles/playerx-playback.js +2 -2
- package/bundles/playerx-tv.js +2 -2
- package/package.json +1 -1
- package/packages/playerx-adaptation.package.js +2 -2
- package/packages/playerx-advertising-api.package.js +2 -2
- package/packages/playerx-advertising-base.package.js +2 -2
- package/packages/playerx-advertising-bitmovin.package.js +2 -2
- package/packages/playerx-analytics.package.js +1 -1
- package/packages/playerx-bitmovin-advertising-bundle.package.js +2 -2
- package/packages/playerx-bitmovin-source-api.package.js +2 -2
- package/packages/playerx-bitmovin-ui.package.js +2 -2
- package/packages/playerx-bitmovin-v8-core.package.js +2 -2
- package/packages/playerx-bitmovin-v8-static-api.package.js +2 -2
- package/packages/playerx-bitmovin-video-element-utils.package.js +2 -2
- package/packages/playerx-capabilities.package.js +2 -2
- package/packages/playerx-container-mp4.package.js +2 -2
- package/packages/playerx-container-ts.package.js +2 -2
- package/packages/playerx-core.package.js +2 -2
- package/packages/playerx-dash-manifest-technology.package.js +2 -2
- package/packages/playerx-dash-manifest.package.js +2 -2
- package/packages/playerx-dash-parsing.package.js +2 -2
- package/packages/playerx-dash-translation.package.js +2 -2
- package/packages/playerx-dash.package.js +2 -2
- package/packages/playerx-data.package.js +2 -2
- package/packages/playerx-event-bus.package.js +1 -1
- package/packages/playerx-hls-manifest-technology.package.js +2 -2
- package/packages/playerx-hls-manifest.package.js +2 -2
- package/packages/playerx-hls-parsing.package.js +2 -2
- package/packages/playerx-hls-translation.package.js +2 -2
- package/packages/playerx-hls.package.js +2 -2
- package/packages/playerx-media-state.package.d.ts +1 -0
- package/packages/playerx-media-state.package.js +10 -0
- package/packages/playerx-mse-playback.package.js +2 -2
- package/packages/playerx-mse-presentation.package.js +2 -2
- package/packages/playerx-native-playback.package.js +2 -2
- package/packages/playerx-native-presentation.package.js +2 -2
- package/packages/playerx-network.package.js +2 -2
- package/packages/playerx-no-adaptation.package.js +2 -2
- package/packages/playerx-playback-api.package.js +2 -2
- package/packages/playerx-playback-technology.package.js +2 -2
- package/packages/playerx-playback.package.js +2 -2
- package/packages/playerx-player-api.package.js +2 -2
- package/packages/playerx-segment-processing.package.js +2 -2
- package/packages/playerx-source.package.js +2 -2
- package/packages/playerx-sources-api.package.js +2 -2
- package/packages/playerx-stream-data-structure.package.js +2 -2
- package/packages/playerx-streaming.package.js +1 -1
- package/packages/playerx-subtitle-api.package.js +2 -2
- package/packages/playerx-subtitle-base.package.js +2 -2
- package/packages/playerx-subtitle-format-detection.package.js +1 -1
- package/packages/playerx-subtitle-native-renderer.package.js +2 -2
- package/packages/playerx-subtitles.package.js +2 -2
- package/packages/playerx-trick-play.package.js +2 -2
- package/packages/playerx-ts-transmuxer.package.js +2 -2
- package/packages/playerx-tv.package.js +1 -1
- package/packages/playerx-ui.package.js +2 -2
- package/packages/playerx-video-element-controller.package.d.ts +1 -0
- package/packages/playerx-video-element-controller.package.js +10 -0
- package/packages/playerx-view-mode.package.js +2 -2
- package/packages/playerx-web-vtt.package.js +2 -2
- package/playerx-framework-utils.js +1 -1
- package/types/Types.d.ts +3 -0
- package/types/bundles/BitmovinV8.bundle.d.ts +1 -1
- package/types/bundles/Dash.bundle.d.ts +1 -1
- package/types/bundles/Hls.bundle.d.ts +1 -1
- package/types/bundles/HlsTsAudio.bundle.d.ts +1 -1
- package/types/bundles/Playback.bundle.d.ts +1 -1
- package/types/bundles/Tv.bundle.d.ts +1 -1
- package/types/packages/adaptation/AdaptationAlgorithm.d.ts +4 -0
- package/types/packages/adaptation/StartupQuality.d.ts +5 -0
- package/types/packages/adaptation/Types.d.ts +7 -11
- package/types/packages/adaptation/WishDataAtom.d.ts +9 -2
- package/types/packages/advertising/BitmovinAdvertisingBundle.package.d.ts +1 -1
- package/types/packages/advertising/api/AdvertisingApi.package.d.ts +1 -1
- package/types/packages/advertising/api/AdvertisingEvents.d.ts +29 -5
- package/types/packages/advertising/api/Types.d.ts +24 -6
- package/types/packages/advertising/base/AdPosition.d.ts +1 -0
- package/types/packages/advertising/base/AdQuartile.d.ts +5 -0
- package/types/packages/advertising/base/AdSchedule.d.ts +2 -2
- package/types/packages/advertising/base/AdTagAtom.d.ts +1 -1
- package/types/packages/advertising/base/AdType.d.ts +4 -0
- package/types/packages/advertising/base/BaseAdAtom.d.ts +5 -3
- package/types/packages/advertising/base/{BaseAdBreakAtom.d.ts → BaseAdPodAtom.d.ts} +8 -6
- package/types/packages/advertising/base/BaseAdPodState.d.ts +7 -0
- package/types/packages/advertising/base/BaseAdState.d.ts +7 -0
- package/types/packages/advertising/base/Types.d.ts +13 -29
- package/types/packages/advertising/bitmovin/Types.d.ts +13 -10
- package/types/packages/capabilities/Types.d.ts +1 -1
- package/types/packages/container/container-mp4/ContainerMp4.package.d.ts +2 -0
- package/types/packages/container/container-ts/ContainerTs.package.d.ts +3 -1
- package/types/packages/container/ts-transmuxer/TsTransmuxer.package.d.ts +2 -0
- package/types/packages/core/Constants.d.ts +7 -0
- package/types/packages/core/Types.d.ts +3 -2
- package/types/packages/core/metrics/MetricsAtom.d.ts +1 -1
- package/types/packages/{adaptation → core/state}/RingBufferAtom.d.ts +2 -2
- package/types/packages/core/state/StateMachineAtom.d.ts +13 -12
- package/types/packages/core/state/state-effect/Types.d.ts +2 -2
- package/types/packages/core/technology/Types.d.ts +2 -2
- package/types/packages/data/Types.d.ts +7 -1
- package/types/packages/manifest/dash/parsing/Errors.d.ts +1 -1
- package/types/packages/manifest/dash/root/Types.d.ts +3 -1
- package/types/packages/manifest/dash/technology/Types.d.ts +2 -1
- package/types/packages/manifest/hls/parsing/Constants.d.ts +47 -0
- package/types/packages/manifest/hls/parsing/Errors.d.ts +1 -1
- package/types/packages/manifest/hls/parsing/Types.d.ts +5 -48
- package/types/packages/manifest/hls/root/Hls.package.d.ts +6 -1
- package/types/packages/manifest/hls/technology/Types.d.ts +2 -1
- package/types/packages/manifest/hls/translation/HlsTranslation.package.d.ts +5 -0
- package/types/packages/manifest/hls/translation/Types.d.ts +10 -11
- package/types/packages/manifest/hls/translation/segments/StreamHelpers.d.ts +14 -0
- package/types/packages/manifest/hls/translation/stream/TracksToSelectionGroups.d.ts +6 -0
- package/types/packages/manifest/hls/translation/stream/UnknownTrackToMediaTrackTranslator.d.ts +4 -0
- package/types/packages/media-state/MediaInfoAtoms.d.ts +18 -0
- package/types/packages/media-state/MediaState.d.ts +10 -0
- package/types/packages/media-state/MediaState.package.d.ts +22 -0
- package/types/packages/media-state/MediaStateAtom.d.ts +16 -0
- package/types/packages/media-state/MediaStateTransitionType.d.ts +11 -0
- package/types/packages/media-state/SeekRestrictionAtom.d.ts +2 -0
- package/types/packages/media-state/Types.d.ts +48 -0
- package/types/packages/media-state/controllers/video-element/Types.d.ts +32 -0
- package/types/packages/media-state/controllers/video-element/VideoElementController.package.d.ts +15 -0
- package/types/packages/network/HttpRequestMethod.d.ts +5 -0
- package/types/packages/network/HttpRequestType.d.ts +11 -0
- package/types/packages/network/HttpResponseType.d.ts +7 -0
- package/types/packages/network/NetworkAtom.d.ts +15 -0
- package/types/packages/network/NetworkTask.d.ts +8 -7
- package/types/packages/network/Types.d.ts +17 -26
- package/types/packages/playback/play-pause/Types.d.ts +0 -3
- package/types/packages/playback/volume/Types.d.ts +2 -4
- package/types/packages/playback-api/play-pause-api/Types.d.ts +4 -3
- package/types/packages/playback-api/playback-api-events/Types.d.ts +11 -8
- package/types/packages/playback-api/time-api/Types.d.ts +4 -5
- package/types/packages/playback-technology/PlaybackTechnologyEntryType.d.ts +4 -0
- package/types/packages/playback-technology/Types.d.ts +6 -6
- package/types/packages/player-api/PlayerApi.package.d.ts +2 -0
- package/types/packages/player-api/PlayerEvent.d.ts +3 -0
- package/types/packages/player-api/Types.d.ts +4 -4
- package/types/packages/presentation/mse/playback-technology/Types.d.ts +2 -1
- package/types/packages/presentation/mse/playback-technology/atoms/MsePresentationStateAtom.d.ts +1 -4
- package/types/packages/presentation/mse/presentation/MsePresentation.package.d.ts +4 -2
- package/types/packages/presentation/mse/presentation/Types.d.ts +6 -0
- package/types/packages/presentation/native/Types.d.ts +1 -1
- package/types/packages/presentation/native/playback-technology/Types.d.ts +2 -1
- package/types/packages/segment-processing/SegmentProcessing.package.d.ts +2 -1
- package/types/packages/segment-processing/SegmentProcessorType.d.ts +7 -0
- package/types/packages/segment-processing/Types.d.ts +10 -10
- package/types/packages/source/SourceReference.d.ts +1 -1
- package/types/packages/source/atoms/PlaybackConfigAtom.d.ts +2 -2
- package/types/packages/source/atoms/SourceConfigAtom.d.ts +2 -0
- package/types/packages/sources-api/SourcesApiEvent.d.ts +7 -0
- package/types/packages/sources-api/Types.d.ts +4 -8
- package/types/packages/stream-data-structure/Types.d.ts +1 -0
- package/types/packages/stream-data-structure/segment/Exports.d.ts +3 -3
- package/types/packages/stream-data-structure/segment/SegmentAtom.d.ts +11 -2
- package/types/packages/stream-data-structure/segment/SegmentDataAtom.d.ts +1 -7
- package/types/packages/stream-data-structure/segment/SegmentUtils.d.ts +3 -2
- package/types/packages/stream-data-structure/selection-group/SelectionGroupAtom.d.ts +1 -2
- package/types/packages/stream-data-structure/track/Exports.d.ts +6 -1
- package/types/packages/stream-data-structure/track/TrackAtom.d.ts +19 -4
- package/types/packages/stream-data-structure/track/TrackTypeGuards.d.ts +3 -1
- package/types/packages/stream-data-structure/track/TypeDetection.d.ts +25 -0
- package/types/packages/stream-data-structure/track/TypeDetectionTypeGuards.d.ts +4 -0
- package/types/packages/streaming/Streaming.package.d.ts +2 -2
- package/types/packages/streaming/Types.d.ts +3 -2
- package/types/packages/subtitles/subtitle-api/SubtitleEvent.d.ts +9 -0
- package/types/packages/subtitles/subtitle-api/Types.d.ts +3 -9
- package/types/packages/trick-play/TrickPlay.package.d.ts +2 -1
- package/types/packages/v8-compat/BitmovinUi.package.d.ts +4 -4
- package/types/packages/v8-compat/BitmovinV8Core.package.d.ts +16 -4
- package/types/packages/v8-compat/BitmovinV8StaticApi.package.d.ts +8 -5
- package/types/packages/v8-compat/apis/SourceApis.d.ts +5 -0
- package/types/packages/v8-compat/apis/SubtitleApi.d.ts +5 -0
- package/types/packages/v8-compat/enums/AdditionalPlayerExportNames.d.ts +9 -0
- package/types/packages/v8-compat/enums/PlayerExports.d.ts +0 -7
- package/types/packages/v8-compat/event-handling/EventDispatcher.d.ts +11 -0
- package/types/packages/v8-compat/source-api/BitmovinSourceApi.package.d.ts +10 -4
- package/types/packages/v8-compat/video-element/BitmovinVideoElementUtils.package.d.ts +4 -4
- package/types/packages/view-mode/Types.d.ts +4 -6
- package/types/packages/view-mode/ViewMode.d.ts +5 -0
- package/types/packages/view-mode/ViewMode.package.d.ts +2 -0
- package/types/packages/view-mode/ViewModeAtom.d.ts +1 -1
- package/types/packages/core/FrameworkError.d.ts +0 -4
- package/types/packages/core/network/NetworkAtom.d.ts +0 -21
- package/types/packages/playback/playback-state/Types.d.ts +0 -41
- package/types/packages/playback/video-element-state/SeekRestrictionAtom.d.ts +0 -2
- package/types/packages/playback/video-element-state/Types.d.ts +0 -32
- package/types/packages/playback/video-element-state/VideoElementStateAtom.d.ts +0 -58
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ApiManager } from '../../../../framework-types/api-manager/ApiManager';
|
|
2
|
+
import type { SourceApiCompatContext } from '../source-api/BitmovinSourceApi.package';
|
|
3
|
+
import type { BitmovinV8PlayerApi, PlayerSubtitlesAPI } from '../types/Types';
|
|
4
|
+
export declare const InactiveSubtitleApi: PlayerSubtitlesAPI;
|
|
5
|
+
export declare function addActiveSubtitleApi(apiManager: ApiManager<BitmovinV8PlayerApi>, context: SourceApiCompatContext): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum AdditionalPlayerExportNames {
|
|
2
|
+
Container = "container",
|
|
3
|
+
UserConfig = "user-config",
|
|
4
|
+
VideoElement = "video-element",
|
|
5
|
+
PlayerApi = "player-api",
|
|
6
|
+
EventListenerAtom = "event-listener-atom",
|
|
7
|
+
V8CompatUtils = "v8-compat-utils",
|
|
8
|
+
PlayerEvent = "v8-player-event"
|
|
9
|
+
}
|
|
@@ -356,13 +356,6 @@ export declare class PlayerModuleMissingError extends PlayerError {
|
|
|
356
356
|
export declare class PlayerAPINotAvailableError extends PlayerError {
|
|
357
357
|
constructor(apiName: string);
|
|
358
358
|
}
|
|
359
|
-
export declare enum AdditionalPlayerExports {
|
|
360
|
-
Container = "container",
|
|
361
|
-
UserConfig = "user-config",
|
|
362
|
-
VideoElement = "video-element",
|
|
363
|
-
PlayerApi = "player-api",
|
|
364
|
-
EventListenerAtom = "event-listener-atom"
|
|
365
|
-
}
|
|
366
359
|
export declare const PlayerExports: {
|
|
367
360
|
PlayerEvent: typeof PlayerEvent;
|
|
368
361
|
LogLevel: typeof LogLevel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ContextHaving } from '../../../../framework-types/execution-context/Types';
|
|
2
|
+
import type { EmptyObject } from '../../../Types';
|
|
3
|
+
import type { ContextWithState } from '../../Types';
|
|
4
|
+
import { AdditionalPlayerExportNames } from '../enums/AdditionalPlayerExportNames';
|
|
5
|
+
import type { OptionalEventBaseProperties, PlayerEventMap } from '../types/PlayerEventMap';
|
|
6
|
+
import type { EventListenerAtom } from './EventListenerAtom';
|
|
7
|
+
type Context = ContextHaving<{
|
|
8
|
+
[AdditionalPlayerExportNames.EventListenerAtom]: EventListenerAtom;
|
|
9
|
+
}, EmptyObject, ContextWithState>;
|
|
10
|
+
export declare function dispatchEvent<Type extends keyof PlayerEventMap, EventData extends PlayerEventMap[Type]>(context: Context, eventType: Type, baseEvent: OptionalEventBaseProperties<EventData>): void;
|
|
11
|
+
export {};
|
|
@@ -19,14 +19,17 @@ import { SourceExportNames } from '../../source/Types';
|
|
|
19
19
|
import type { SourceApiBase } from '../../sources-api/Types';
|
|
20
20
|
import { SourcesApiExportNames } from '../../sources-api/Types';
|
|
21
21
|
import { StreamDataStructureStream } from '../../stream-data-structure/stream/Exports';
|
|
22
|
-
import
|
|
22
|
+
import { StreamingState } from '../../streaming/Types';
|
|
23
23
|
import type { SubtitleEvent, SubtitleEventMap, SubtitleSourceApi } from '../../subtitles/subtitle-api/Types';
|
|
24
24
|
import { SubtitleApiExportNames } from '../../subtitles/subtitle-api/Types';
|
|
25
25
|
import type { ContextWithState } from '../../Types';
|
|
26
26
|
import type { ViewModeApi } from '../../view-mode/Types';
|
|
27
27
|
import { ViewModePackageExportNames } from '../../view-mode/Types';
|
|
28
|
+
import type { ViewModePackageExports } from '../../view-mode/ViewMode.package';
|
|
28
29
|
import type { ViewModeAtom } from '../../view-mode/ViewModeAtom';
|
|
29
|
-
import {
|
|
30
|
+
import type { V8CompatUtils } from '../BitmovinV8Core.package';
|
|
31
|
+
import { AdditionalPlayerExportNames } from '../enums/AdditionalPlayerExportNames';
|
|
32
|
+
import type { PlayerEvent } from '../enums/PlayerExports';
|
|
30
33
|
import type { EventListenerAtom } from '../event-handling/EventListenerAtom';
|
|
31
34
|
import type { BitmovinV8PlayerApi } from '../types/Types';
|
|
32
35
|
type SourceApiCompatDependencies = {
|
|
@@ -34,8 +37,11 @@ type SourceApiCompatDependencies = {
|
|
|
34
37
|
[SourceExportNames.SourceState]: SourceStateAtom;
|
|
35
38
|
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
36
39
|
[ViewModePackageExportNames.ViewModeState]: ViewModeAtom;
|
|
37
|
-
[
|
|
38
|
-
[
|
|
40
|
+
[ViewModePackageExportNames.ViewMode]: ViewModePackageExports[ViewModePackageExportNames.ViewMode];
|
|
41
|
+
[AdditionalPlayerExportNames.VideoElement]: HTMLVideoElement;
|
|
42
|
+
[AdditionalPlayerExportNames.EventListenerAtom]: EventListenerAtom;
|
|
43
|
+
[AdditionalPlayerExportNames.V8CompatUtils]: V8CompatUtils;
|
|
44
|
+
[AdditionalPlayerExportNames.PlayerEvent]: typeof PlayerEvent;
|
|
39
45
|
[SourcesApiExportNames.SourceApiManager]: ApiManager<SourceApiBase & ViewModeApi & SubtitleSourceApi>;
|
|
40
46
|
[SourcesApiExportNames.SourceEventBus]: EventBus<SubtitleEventMap>;
|
|
41
47
|
[SubtitleApiExportNames.SubtitleEvent]: typeof SubtitleEvent;
|
|
@@ -13,16 +13,16 @@ import type { CoreEffects } from '../../core/Types';
|
|
|
13
13
|
import { CoreExportNames } from '../../core/Types';
|
|
14
14
|
import { SourcesApiExportNames } from '../../sources-api/Types';
|
|
15
15
|
import type VideoElementUtils from '../../sources-api/VideoElementUtils';
|
|
16
|
-
import {
|
|
16
|
+
import { AdditionalPlayerExportNames } from '../enums/AdditionalPlayerExportNames';
|
|
17
17
|
import type { BitmovinV8PlayerApi, PlayerConfig } from '../types/Types';
|
|
18
18
|
type Dependencies = {
|
|
19
19
|
[CoreExportNames.CoreEffects]: CoreEffects;
|
|
20
|
-
[
|
|
21
|
-
[
|
|
20
|
+
[AdditionalPlayerExportNames.Container]: HTMLElement;
|
|
21
|
+
[AdditionalPlayerExportNames.UserConfig]: PlayerConfig;
|
|
22
22
|
};
|
|
23
23
|
type Exports = {
|
|
24
24
|
[SourcesApiExportNames.VideoElementUtils]: typeof VideoElementUtils;
|
|
25
|
-
[
|
|
25
|
+
[AdditionalPlayerExportNames.VideoElement]: HTMLVideoElement;
|
|
26
26
|
};
|
|
27
27
|
export type VideoElementUtilsPackageContext = ContextHaving<Dependencies, Exports, BaseContext>;
|
|
28
28
|
export declare const BitmovinPlayerVideoElementUtilsPackage: import("../../../../framework-types/package-api/Package").Package<Dependencies, Exports, BitmovinV8PlayerApi>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Fullscreen = 1,
|
|
4
|
-
PictureInPicture = 2
|
|
5
|
-
}
|
|
1
|
+
import type { ViewMode } from './ViewMode';
|
|
2
|
+
export type { ViewMode } from './ViewMode';
|
|
6
3
|
export type ViewModeApi = {
|
|
7
4
|
viewMode: {
|
|
8
5
|
transitionTo(mode: ViewMode): void;
|
|
@@ -11,5 +8,6 @@ export type ViewModeApi = {
|
|
|
11
8
|
};
|
|
12
9
|
};
|
|
13
10
|
export declare enum ViewModePackageExportNames {
|
|
14
|
-
ViewModeState = "view-mode-state"
|
|
11
|
+
ViewModeState = "view-mode-state",
|
|
12
|
+
ViewMode = "view-mode"
|
|
15
13
|
}
|
|
@@ -19,6 +19,7 @@ import { SourcesApiExportNames } from '../sources-api/Types';
|
|
|
19
19
|
import type { ContextWithState } from '../Types';
|
|
20
20
|
import type { ViewModeApi } from './Types';
|
|
21
21
|
import { ViewModePackageExportNames } from './Types';
|
|
22
|
+
import { ViewMode } from './ViewMode';
|
|
22
23
|
import type { ViewModeAtom } from './ViewModeAtom';
|
|
23
24
|
type Dependencies = {
|
|
24
25
|
[CoreExportNames.CoreEffects]: CoreEffects;
|
|
@@ -27,6 +28,7 @@ type Dependencies = {
|
|
|
27
28
|
};
|
|
28
29
|
export type ViewModePackageExports = {
|
|
29
30
|
[ViewModePackageExportNames.ViewModeState]: ViewModeAtom;
|
|
31
|
+
[ViewModePackageExportNames.ViewMode]: typeof ViewMode;
|
|
30
32
|
};
|
|
31
33
|
export type ViewModeContext = ContextHaving<Dependencies, ViewModePackageExports, ContextWithState>;
|
|
32
34
|
declare const ViewModePackage: import("../../../framework-types/package-api/Package").Package<Dependencies, ViewModePackageExports, EmptyObject>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DataPackageContext } from '../../data/Types';
|
|
2
|
-
import type { NetworkMessage } from '../../network/NetworkMessageTypes';
|
|
3
|
-
export type NetworkState = {
|
|
4
|
-
lastMessage: NetworkMessage;
|
|
5
|
-
};
|
|
6
|
-
export type NetworkAtom = ReturnType<typeof createNetworkAtom>;
|
|
7
|
-
declare function requestOpened(state: NetworkState, openedTimestamp: number): boolean;
|
|
8
|
-
declare function headersReceived(state: NetworkState, headersReceivedTimestamp: number, contentLength: number): boolean;
|
|
9
|
-
declare function progress(state: NetworkState, progressTimestamp: number, chunk: Uint8Array, loadedBytes: number, elapsedTime: number): boolean;
|
|
10
|
-
declare function error(state: NetworkState, error: Error): boolean;
|
|
11
|
-
declare function done(state: NetworkState, doneTimestamp: number): boolean;
|
|
12
|
-
export declare function createNetworkAtom(context: DataPackageContext): import("../state/Types").StateAtom<{
|
|
13
|
-
lastMessage: NetworkMessage;
|
|
14
|
-
}, {
|
|
15
|
-
requestOpened: typeof requestOpened;
|
|
16
|
-
headersReceived: typeof headersReceived;
|
|
17
|
-
progress: typeof progress;
|
|
18
|
-
error: typeof error;
|
|
19
|
-
done: typeof done;
|
|
20
|
-
}>;
|
|
21
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { ContextHaving } from '../../../../framework-types/execution-context/Types';
|
|
2
|
-
import type { StateMachineAtom } from '../../core/state/StateMachineAtom';
|
|
3
|
-
import type { CoreEffects, CoreExportNames, CoreStateAtoms } from '../../core/Types';
|
|
4
|
-
import type { CoreUtils } from '../../core/utils/Types';
|
|
5
|
-
import type { SourceStateAtom } from '../../source/atoms/SourceStateAtom';
|
|
6
|
-
import type { SourceExportNames } from '../../source/Types';
|
|
7
|
-
import type { ContextWithState } from '../../Types';
|
|
8
|
-
import type { TargetPlaybackState, TargetPlaybackStateAtom } from '../play-pause/TargetPlaybackStateAtom';
|
|
9
|
-
import type { PlayPauseExportNames } from '../play-pause/Types';
|
|
10
|
-
import type { VideoElementStateExportNames } from '../video-element-state/Types';
|
|
11
|
-
import type { VideoElementStateAtom } from '../video-element-state/VideoElementStateAtom';
|
|
12
|
-
export declare enum PlaybackStatePackageExportNames {
|
|
13
|
-
PlaybackState = "playback-state",
|
|
14
|
-
PlaybackStateMachine = "playback-state-machine"
|
|
15
|
-
}
|
|
16
|
-
export declare enum PlaybackState {
|
|
17
|
-
Initial = "initial",
|
|
18
|
-
Ready = "ready",
|
|
19
|
-
Paused = "paused",
|
|
20
|
-
Play = "play",
|
|
21
|
-
Playing = "playing",
|
|
22
|
-
Seeking = "seeking",
|
|
23
|
-
Stalled = "stalled",
|
|
24
|
-
Ended = "ended",
|
|
25
|
-
Detached = "detached"
|
|
26
|
-
}
|
|
27
|
-
export type PlaybackStatePackageDependencies = {
|
|
28
|
-
[CoreExportNames.Utils]: CoreUtils;
|
|
29
|
-
[CoreExportNames.CoreEffects]: CoreEffects;
|
|
30
|
-
[SourceExportNames.SourceState]: SourceStateAtom;
|
|
31
|
-
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
32
|
-
[PlayPauseExportNames.TargetPlaybackState]: typeof TargetPlaybackState;
|
|
33
|
-
[PlayPauseExportNames.TargetPlaybackStateAtom]: TargetPlaybackStateAtom;
|
|
34
|
-
[VideoElementStateExportNames.VideoElementState]: VideoElementStateAtom;
|
|
35
|
-
};
|
|
36
|
-
export type PlaybackStatePackageExports = {
|
|
37
|
-
[PlaybackStatePackageExportNames.PlaybackState]: typeof PlaybackState;
|
|
38
|
-
[PlaybackStatePackageExportNames.PlaybackStateMachine]: PlaybackStateMachineAtom;
|
|
39
|
-
};
|
|
40
|
-
export type PlaybackStatePackageContext = ContextHaving<PlaybackStatePackageDependencies, PlaybackStatePackageExports, ContextWithState>;
|
|
41
|
-
export type PlaybackStateMachineAtom = StateMachineAtom<PlaybackState, PlaybackStatePackageContext>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { ContextHaving } from '../../../../framework-types/execution-context/Types';
|
|
2
|
-
import type { CoreEffects, CoreExportNames, CoreStateAtoms } from '../../core/Types';
|
|
3
|
-
import type { CoreUtils } from '../../core/utils/Types';
|
|
4
|
-
import type { SourceStateAtom } from '../../source/atoms/SourceStateAtom';
|
|
5
|
-
import type { SourceExportNames } from '../../source/Types';
|
|
6
|
-
import type { ContextWithState } from '../../Types';
|
|
7
|
-
import type { SeekRestrictionAtom } from './SeekRestrictionAtom';
|
|
8
|
-
import type { VideoElementStateAtom } from './VideoElementStateAtom';
|
|
9
|
-
export declare enum VideoElementStateExportNames {
|
|
10
|
-
VideoElementState = "video-element-state",
|
|
11
|
-
MediaElementReadyState = "media-element-ready-state",
|
|
12
|
-
SeekRestriction = "seek-restriction"
|
|
13
|
-
}
|
|
14
|
-
export declare enum MediaElementReadyState {
|
|
15
|
-
HaveNothing,
|
|
16
|
-
HaveMetadata,
|
|
17
|
-
HaveCurrentData,
|
|
18
|
-
HaveFutureData,
|
|
19
|
-
HaveEnoughData
|
|
20
|
-
}
|
|
21
|
-
export type VideoElementStatePackageDependencies = {
|
|
22
|
-
[CoreExportNames.CoreEffects]: CoreEffects;
|
|
23
|
-
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
24
|
-
[CoreExportNames.Utils]: CoreUtils;
|
|
25
|
-
[SourceExportNames.SourceState]: SourceStateAtom;
|
|
26
|
-
};
|
|
27
|
-
export type VideoElementStatePackageExports = {
|
|
28
|
-
[VideoElementStateExportNames.VideoElementState]: VideoElementStateAtom;
|
|
29
|
-
[VideoElementStateExportNames.MediaElementReadyState]: typeof MediaElementReadyState;
|
|
30
|
-
[VideoElementStateExportNames.SeekRestriction]: SeekRestrictionAtom;
|
|
31
|
-
};
|
|
32
|
-
export type VideoElementStatePackageContext = ContextHaving<VideoElementStatePackageDependencies, VideoElementStatePackageExports, ContextWithState>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { EmptyObject } from '../../../../framework-types/BaseTypes';
|
|
2
|
-
import type { ContextHaving } from '../../../../framework-types/execution-context/Types';
|
|
3
|
-
import type { PrimitiveAtom } from '../../core/state/PrimitiveAtom';
|
|
4
|
-
import type { StateAtom } from '../../core/state/Types';
|
|
5
|
-
import type { CoreStateAtoms } from '../../core/Types';
|
|
6
|
-
import { CoreExportNames } from '../../core/Types';
|
|
7
|
-
import type { Transient } from '../../core/utils/StateUtils';
|
|
8
|
-
import type { CoreUtils } from '../../core/utils/Types';
|
|
9
|
-
import type { ContextWithState } from '../../Types';
|
|
10
|
-
import type { MediaElementReadyState } from './Types';
|
|
11
|
-
type DetachedVideoElementState = {
|
|
12
|
-
error: PrimitiveAtom<undefined>;
|
|
13
|
-
ended: PrimitiveAtom<undefined>;
|
|
14
|
-
paused: PrimitiveAtom<undefined>;
|
|
15
|
-
playing: PrimitiveAtom<undefined>;
|
|
16
|
-
seeking: PrimitiveAtom<undefined>;
|
|
17
|
-
waiting: PrimitiveAtom<undefined>;
|
|
18
|
-
muted: PrimitiveAtom<undefined>;
|
|
19
|
-
volume: PrimitiveAtom<undefined>;
|
|
20
|
-
playbackRate: PrimitiveAtom<undefined>;
|
|
21
|
-
currentTime: PrimitiveAtom<undefined>;
|
|
22
|
-
duration: PrimitiveAtom<undefined>;
|
|
23
|
-
readyState: PrimitiveAtom<undefined>;
|
|
24
|
-
playEventTriggered: PrimitiveAtom<undefined>;
|
|
25
|
-
pauseEventTriggered: PrimitiveAtom<undefined>;
|
|
26
|
-
onPlayRejected: Transient<MediaError>;
|
|
27
|
-
};
|
|
28
|
-
type AttachedVideoElementState = {
|
|
29
|
-
error: PrimitiveAtom<MediaError | undefined>;
|
|
30
|
-
paused: PrimitiveAtom<boolean>;
|
|
31
|
-
ended: PrimitiveAtom<boolean>;
|
|
32
|
-
playing: PrimitiveAtom<boolean>;
|
|
33
|
-
seeking: PrimitiveAtom<boolean>;
|
|
34
|
-
waiting: PrimitiveAtom<boolean>;
|
|
35
|
-
muted: PrimitiveAtom<boolean>;
|
|
36
|
-
volume: PrimitiveAtom<number>;
|
|
37
|
-
playbackRate: PrimitiveAtom<number>;
|
|
38
|
-
currentTime: PrimitiveAtom<number>;
|
|
39
|
-
duration: PrimitiveAtom<number>;
|
|
40
|
-
readyState: PrimitiveAtom<MediaElementReadyState>;
|
|
41
|
-
playEventTriggered: PrimitiveAtom<boolean>;
|
|
42
|
-
pauseEventTriggered: PrimitiveAtom<boolean>;
|
|
43
|
-
onPlayRejected: Transient<MediaError>;
|
|
44
|
-
};
|
|
45
|
-
type VideoElementState = DetachedVideoElementState | AttachedVideoElementState;
|
|
46
|
-
type Modifiers = {
|
|
47
|
-
detach: (state: VideoElementState) => boolean;
|
|
48
|
-
};
|
|
49
|
-
type DetachedVideoElementStateAtom = StateAtom<DetachedVideoElementState, Modifiers>;
|
|
50
|
-
type AttachedVideoElementStateAtom = StateAtom<AttachedVideoElementState, Modifiers>;
|
|
51
|
-
export type VideoElementStateAtom = DetachedVideoElementStateAtom | AttachedVideoElementStateAtom;
|
|
52
|
-
type ContextT = ContextHaving<{
|
|
53
|
-
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
54
|
-
[CoreExportNames.Utils]: CoreUtils;
|
|
55
|
-
}, EmptyObject, ContextWithState>;
|
|
56
|
-
export declare function createVideoElementStateAtom(context: ContextT): VideoElementStateAtom;
|
|
57
|
-
export declare function isAttachedVideoElementStateAtom(state: VideoElementStateAtom): state is AttachedVideoElementStateAtom;
|
|
58
|
-
export {};
|