@bitmovin/player-web-x 10.2.0-beta.8 → 10.2.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/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.d.ts +1 -0
- package/bundles/playerx-hls-ts-audio.js +2 -2
- package/bundles/playerx-hls.js +2 -2
- package/bundles/playerx-playback.d.ts +1 -0
- 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.d.ts +1 -0
- package/packages/playerx-analytics.package.js +2 -2
- 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 +2 -2
- 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.d.ts +1 -0
- package/packages/playerx-no-adaptation.package.js +2 -2
- package/packages/playerx-platform-detection.package.d.ts +1 -0
- package/packages/playerx-platform-detection.package.js +10 -0
- 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-safari.package.d.ts +1 -0
- package/packages/playerx-safari.package.js +10 -0
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/packages/playerx-ui.package.d.ts +1 -0
- 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 +2 -2
- package/types/Types.d.ts +3 -0
- package/types/bundles/BitmovinV8.bundle.d.ts +7 -1
- package/types/bundles/BitmovinV8Core.bundle.d.ts +6 -0
- package/types/bundles/Core.bundle.d.ts +6 -0
- package/types/bundles/Dash.bundle.d.ts +7 -1
- package/types/bundles/Hls.bundle.d.ts +7 -1
- package/types/bundles/HlsTsAudio.bundle.d.ts +32 -0
- package/types/bundles/Playback.bundle.d.ts +34 -0
- package/types/bundles/Tv.bundle.d.ts +7 -1
- package/types/packages/adaptation/Adaptation.package.d.ts +9 -2
- package/types/packages/adaptation/AdaptationAlgorithm.d.ts +4 -0
- package/types/packages/adaptation/AdaptationStateAtom.d.ts +13 -16
- package/types/packages/adaptation/NoAdaptation.package.d.ts +12 -0
- package/types/packages/adaptation/StartupQuality.d.ts +5 -0
- package/types/packages/adaptation/Types.d.ts +24 -4
- package/types/packages/adaptation/WishConfigAtom.d.ts +4 -23
- package/types/packages/adaptation/WishDataAtom.d.ts +9 -2
- package/types/packages/advertising/BitmovinAdvertisingBundle.package.d.ts +3 -1
- package/types/packages/advertising/api/AdvertisingApi.package.d.ts +3 -1
- package/types/packages/advertising/api/AdvertisingEvents.d.ts +47 -7
- package/types/packages/advertising/api/Types.d.ts +110 -11
- package/types/packages/advertising/api/api-conversion/AdApiCache.d.ts +14 -0
- package/types/packages/advertising/api/content-source/AdBreakAtom.d.ts +19 -0
- package/types/packages/advertising/api/content-source/Types.d.ts +36 -0
- package/types/packages/advertising/base/AdExtension.d.ts +11 -0
- package/types/packages/advertising/base/AdIconAtom.d.ts +20 -0
- package/types/packages/advertising/base/AdIconPosition.d.ts +8 -0
- 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/AdResource.d.ts +16 -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/AdvertisingBase.package.d.ts +2 -0
- package/types/packages/advertising/base/BaseAdAtom.d.ts +27 -5
- 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/ClickThroughAtom.d.ts +11 -0
- package/types/packages/advertising/base/CompanionAdAtom.d.ts +18 -0
- package/types/packages/advertising/base/Types.d.ts +19 -29
- package/types/packages/advertising/bitmovin/AdvertisingBitmovin.package.d.ts +2 -0
- package/types/packages/advertising/bitmovin/Types.d.ts +17 -10
- package/types/packages/analytics/Analytics.package.d.ts +17 -0
- package/types/packages/analytics/Types.d.ts +20 -0
- package/types/packages/browser-specific/safari/Safari.package.d.ts +5 -0
- package/types/packages/browser-specific/safari/Types.d.ts +24 -0
- package/types/packages/capabilities/Capabilities.package.d.ts +2 -0
- package/types/packages/capabilities/Types.d.ts +1 -1
- package/types/packages/container/container-mp4/ContainerMp4.package.d.ts +4 -0
- package/types/packages/container/container-ts/ContainerTs.package.d.ts +5 -1
- package/types/packages/container/ts-transmuxer/TsTransmuxer.package.d.ts +4 -0
- package/types/packages/core/Constants.d.ts +7 -0
- package/types/packages/core/Core.package.d.ts +2 -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/core/utils/ArrayHelper.d.ts +0 -2
- package/types/packages/core/utils/DomUtils.d.ts +5 -2
- package/types/packages/data/Data.package.d.ts +2 -0
- package/types/packages/data/Types.d.ts +7 -1
- package/types/packages/event-bus/EventBus.package.d.ts +2 -0
- package/types/packages/manifest/dash/DashManifest.package.d.ts +2 -0
- package/types/packages/manifest/dash/parsing/DashParsing.package.d.ts +2 -0
- package/types/packages/manifest/dash/parsing/Errors.d.ts +1 -1
- package/types/packages/manifest/dash/root/Dash.package.d.ts +2 -0
- package/types/packages/manifest/dash/root/Types.d.ts +3 -1
- package/types/packages/manifest/dash/technology/DashManifestTechnology.package.d.ts +2 -0
- package/types/packages/manifest/dash/technology/Types.d.ts +2 -1
- package/types/packages/manifest/dash/translation/DashTranslation.package.d.ts +2 -0
- package/types/packages/manifest/hls/HlsManifest.package.d.ts +2 -0
- 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/HlsParsing.package.d.ts +2 -0
- package/types/packages/manifest/hls/parsing/Types.d.ts +5 -48
- package/types/packages/manifest/hls/parsing/m3u8/TranslatorStream.d.ts +1 -0
- package/types/packages/manifest/hls/root/Hls.package.d.ts +8 -1
- package/types/packages/manifest/hls/technology/HlsManifestTechnology.package.d.ts +2 -0
- package/types/packages/manifest/hls/technology/Types.d.ts +2 -1
- package/types/packages/manifest/hls/translation/HlsTranslation.package.d.ts +7 -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 +24 -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/StaleTransitionTracker.d.ts +10 -0
- package/types/packages/media-state/controllers/video-element/Types.d.ts +35 -0
- package/types/packages/media-state/controllers/video-element/VideoElementController.package.d.ts +18 -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/Network.package.d.ts +2 -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/platform-detection/PlatformDetection.package.d.ts +6 -0
- package/types/packages/platform-detection/SemanticVersion.d.ts +10 -0
- package/types/packages/platform-detection/Types.d.ts +11 -0
- package/types/packages/platform-detection/browser-detection/BrowserName.d.ts +4 -0
- package/types/packages/platform-detection/browser-detection/Types.d.ts +12 -0
- package/types/packages/platform-detection/operating-system-detection/OperatingSystemName.d.ts +3 -0
- package/types/packages/platform-detection/operating-system-detection/Types.d.ts +12 -0
- package/types/packages/platform-detection/platform-detection/PlatformType.d.ts +3 -0
- package/types/packages/platform-detection/platform-detection/Types.d.ts +9 -0
- package/types/packages/playback/Playback.package.d.ts +2 -0
- 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/PlaybackApi.package.d.ts +2 -0
- 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/PlaybackTechnology.package.d.ts +2 -0
- 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 +4 -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/MsePlayback.package.d.ts +2 -0
- 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 +6 -2
- package/types/packages/presentation/mse/presentation/Types.d.ts +6 -0
- package/types/packages/presentation/native/NativePlayback.package.d.ts +3 -2
- package/types/packages/presentation/native/playback-technology/Types.d.ts +2 -1
- package/types/packages/presentation/native/presentation/NativePresentation.package.d.ts +2 -0
- package/types/packages/segment-processing/SegmentProcessing.package.d.ts +4 -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/Source.package.d.ts +2 -0
- 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/SourcesApi.package.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/StreamDataStructure.package.d.ts +2 -0
- 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 +4 -2
- package/types/packages/streaming/Types.d.ts +3 -2
- package/types/packages/subtitles/Subtitles.package.d.ts +2 -0
- package/types/packages/subtitles/subtitle-api/SubtitleApi.package.d.ts +2 -0
- 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/subtitles/subtitle-base/SubtitleBase.package.d.ts +2 -0
- package/types/packages/subtitles/subtitle-format-detection/SubtitleFormatDetection.package.d.ts +2 -0
- package/types/packages/subtitles/subtitle-native-renderer/SubtitleNativeRenderer.package.d.ts +2 -0
- package/types/packages/subtitles/webvtt/WebVtt.package.d.ts +2 -0
- package/types/packages/trick-play/TrickPlay.package.d.ts +4 -1
- package/types/packages/tv/Tv.package.d.ts +2 -0
- package/types/packages/ui/Types.d.ts +36 -0
- package/types/packages/ui/Ui.package.d.ts +6 -0
- package/types/packages/v8-compat/BitmovinUi.package.d.ts +6 -4
- package/types/packages/v8-compat/BitmovinV8Core.package.d.ts +18 -4
- package/types/packages/v8-compat/BitmovinV8StaticApi.package.d.ts +10 -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 +12 -4
- package/types/packages/v8-compat/video-element/BitmovinVideoElementUtils.package.d.ts +6 -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 +4 -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
- package/types/packages/presentation/native/Types.d.ts +0 -12
|
@@ -9,9 +9,14 @@ import type { SegmentTimingAtom } from './SegmentTimingAtom';
|
|
|
9
9
|
export type Metadata = Record<string, any>;
|
|
10
10
|
export type DataSegmentAtom = StateAtom<DataSegment, typeof BaseSegmentModifiers & {
|
|
11
11
|
setInitSegment: typeof setInitSegment;
|
|
12
|
+
setTrack: typeof setTrack;
|
|
13
|
+
}>;
|
|
14
|
+
export type InitSegmentAtom = StateAtom<InitSegment, typeof BaseSegmentModifiers & {
|
|
15
|
+
setTrack: typeof setTrack;
|
|
16
|
+
}>;
|
|
17
|
+
export type SelfInitSegmentAtom = StateAtom<SelfInitializingSegment, typeof BaseSegmentModifiers & {
|
|
18
|
+
setTrack: typeof setTrack;
|
|
12
19
|
}>;
|
|
13
|
-
export type InitSegmentAtom = StateAtom<InitSegment, typeof BaseSegmentModifiers>;
|
|
14
|
-
export type SelfInitSegmentAtom = StateAtom<SelfInitializingSegment, typeof BaseSegmentModifiers>;
|
|
15
20
|
export interface ByteRange {
|
|
16
21
|
start: number;
|
|
17
22
|
end: number;
|
|
@@ -45,17 +50,21 @@ type Segment = InitSegment | DataSegment | SelfInitializingSegment;
|
|
|
45
50
|
export type DataOrSelfInitSegmentAtom = DataSegmentAtom | SelfInitSegmentAtom;
|
|
46
51
|
export type SegmentAtom = InitSegmentAtom | DataSegmentAtom | SelfInitSegmentAtom;
|
|
47
52
|
declare const setInitSegment: (data: DataSegment, initSegment: InitSegmentAtom) => boolean;
|
|
53
|
+
declare const setTrack: (segment: Segment, track: TrackAtom) => boolean;
|
|
48
54
|
declare const BaseSegmentModifiers: {
|
|
49
55
|
setSelectionGroup: (segment: Segment, selectionGroup: SelectionGroupAtom) => boolean;
|
|
50
56
|
};
|
|
51
57
|
export declare const createDataSegmentAtom: (context: StreamDataStructureContext, initialData: PartialRequired<DataSegment, 'url' | 'initSegment' | 'segmentTiming' | 'track'>) => StateAtom<DataSegment, {
|
|
52
58
|
setInitSegment: (data: DataSegment, initSegment: InitSegmentAtom) => boolean;
|
|
59
|
+
setTrack: (segment: Segment, track: TrackAtom) => boolean;
|
|
53
60
|
setSelectionGroup: (segment: Segment, selectionGroup: SelectionGroupAtom) => boolean;
|
|
54
61
|
}>;
|
|
55
62
|
export declare const createInitSegmentAtom: (context: StreamDataStructureContext, initialData: PartialRequired<InitSegment, 'url' | 'track'>) => StateAtom<InitSegment, {
|
|
63
|
+
setTrack: (segment: Segment, track: TrackAtom) => boolean;
|
|
56
64
|
setSelectionGroup: (segment: Segment, selectionGroup: SelectionGroupAtom) => boolean;
|
|
57
65
|
}>;
|
|
58
66
|
export declare const createSelfInitSegmentAtom: (context: StreamDataStructureContext, initialData: PartialRequired<SelfInitializingSegment, 'url' | 'segmentTiming' | 'track'>) => StateAtom<SelfInitializingSegment, {
|
|
67
|
+
setTrack: (segment: Segment, track: TrackAtom) => boolean;
|
|
59
68
|
setSelectionGroup: (segment: Segment, selectionGroup: SelectionGroupAtom) => boolean;
|
|
60
69
|
}>;
|
|
61
70
|
export declare function getReadableSegmentName(segment: SegmentAtom, pathLength?: number): string;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type { MediaType } from '../../core/Constants';
|
|
1
|
+
import type { ContainerFormat, MediaType } from '../../core/Constants';
|
|
2
2
|
import type { DataStreamAtom } from '../../core/state/data-stream/DataStreamAtom';
|
|
3
3
|
import type { ContextWithState } from '../../Types';
|
|
4
|
-
export declare enum ContainerFormat {
|
|
5
|
-
MP4 = "mp4",
|
|
6
|
-
TS = "mp2t",
|
|
7
|
-
WebM = "webm",
|
|
8
|
-
Unknown = "unknown"
|
|
9
|
-
}
|
|
10
4
|
export interface Fragment {
|
|
11
5
|
data: Uint8Array;
|
|
12
6
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import type { ContextHaving } from '../../../../framework-types/execution-context/Types';
|
|
2
2
|
import type { EmptyObject } from '../../../Types';
|
|
3
|
+
import type { Constants, ContainerFormat } from '../../core/Constants';
|
|
3
4
|
import { CoreExportNames } from '../../core/Types';
|
|
4
5
|
import type { CoreUtils } from '../../core/utils/Types';
|
|
5
6
|
import type { ContextWithState } from '../../Types';
|
|
6
7
|
import type { DataOrSelfInitSegmentAtom, SegmentAtom } from './SegmentAtom';
|
|
7
|
-
import { ContainerFormat } from './SegmentDataAtom';
|
|
8
8
|
type ExtendedContext = ContextHaving<{
|
|
9
9
|
[CoreExportNames.Utils]: CoreUtils;
|
|
10
|
+
[CoreExportNames.Constants]: Constants;
|
|
10
11
|
}, EmptyObject, ContextWithState>;
|
|
11
12
|
declare function areSegmentsOverlapping(segments: DataOrSelfInitSegmentAtom[]): boolean;
|
|
12
13
|
declare function resetData(segment: SegmentAtom, { effects: { state, logger } }: ContextWithState): void;
|
|
13
14
|
declare function resolveContainerFormatFromUrl(context: ExtendedContext, url: string): ContainerFormat | undefined;
|
|
14
|
-
declare function resolveContainerFormatFromExtension(extension: string): ContainerFormat | undefined;
|
|
15
|
+
declare function resolveContainerFormatFromExtension(context: ExtendedContext, extension: string): ContainerFormat | undefined;
|
|
15
16
|
export declare const SegmentUtils: {
|
|
16
17
|
areSegmentsOverlapping: typeof areSegmentsOverlapping;
|
|
17
18
|
resetData: typeof resetData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ContextHaving } from '../../../../framework-types/execution-context/Types';
|
|
2
2
|
import type { EmptyObject, PartialRequired } from '../../../Types';
|
|
3
|
-
import type { Constants } from '../../core/Constants';
|
|
3
|
+
import type { Constants, ContainerFormat } from '../../core/Constants';
|
|
4
4
|
import type { ArrayAtom } from '../../core/state/ArrayStateAtom';
|
|
5
5
|
import type { PrimitiveAtom } from '../../core/state/PrimitiveAtom';
|
|
6
6
|
import type { StateAtom } from '../../core/state/Types';
|
|
@@ -8,7 +8,6 @@ import type { CoreStateAtoms } from '../../core/Types';
|
|
|
8
8
|
import { CoreExportNames } from '../../core/Types';
|
|
9
9
|
import type { CoreUtils } from '../../core/utils/Types';
|
|
10
10
|
import type { ContextWithState } from '../../Types';
|
|
11
|
-
import type { ContainerFormat } from '../segment/SegmentDataAtom';
|
|
12
11
|
import type { AudioTrackAtom, MediaTrackAtom, SubtitleTrackAtom, TimeRange, TrackAtom, VideoTrackAtom } from '../track/TrackAtom';
|
|
13
12
|
type ExtendedContext = ContextHaving<{
|
|
14
13
|
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { createAudioTrackAtom, createMuxedTrackAtom, createSubtitleTrackAtom, createUnknownTrackAtom, createVideoTrackAtom } from './TrackAtom';
|
|
2
|
-
import type { isAudioTrack, isMediaOrSubtitleTrack, isMediaTrack, isMuxedTrack, isSubtitleTrack, isVideoTrack } from './TrackTypeGuards';
|
|
2
|
+
import type { isAudioTrack, isMediaOrSubtitleTrack, isMediaTrack, isMuxedTrack, isSubtitleTrack, isUnknownTrack, isVideoTrack } from './TrackTypeGuards';
|
|
3
|
+
import type { isAudioTypeDetection, isMuxedTypeDetection, isVideoTypeDetection } from './TypeDetectionTypeGuards';
|
|
3
4
|
export declare const StreamDataStructureTracks = "stream-data-structure-tracks";
|
|
4
5
|
export type StreamDataStructureTracks = {
|
|
5
6
|
[StreamDataStructureTracks]: {
|
|
@@ -8,11 +9,15 @@ export type StreamDataStructureTracks = {
|
|
|
8
9
|
createMuxedTrackAtom: typeof createMuxedTrackAtom;
|
|
9
10
|
createSubtitleTrackAtom: typeof createSubtitleTrackAtom;
|
|
10
11
|
createUnknownTrackAtom: typeof createUnknownTrackAtom;
|
|
12
|
+
isUnknownTrack: typeof isUnknownTrack;
|
|
11
13
|
isAudioTrack: typeof isAudioTrack;
|
|
12
14
|
isMediaTrack: typeof isMediaTrack;
|
|
13
15
|
isSubtitleTrack: typeof isSubtitleTrack;
|
|
14
16
|
isVideoTrack: typeof isVideoTrack;
|
|
15
17
|
isMuxedTrack: typeof isMuxedTrack;
|
|
16
18
|
isMediaOrSubtitleTrack: typeof isMediaOrSubtitleTrack;
|
|
19
|
+
isAudioTypeDetection: typeof isAudioTypeDetection;
|
|
20
|
+
isVideoTypeDetection: typeof isVideoTypeDetection;
|
|
21
|
+
isMuxedTypeDetection: typeof isMuxedTypeDetection;
|
|
17
22
|
};
|
|
18
23
|
};
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
+
import type { EmptyObject } from '../../../../framework-types/BaseTypes';
|
|
2
|
+
import type { ContextHaving } from '../../../../framework-types/execution-context/Types';
|
|
1
3
|
import type { PartialRequired } from '../../../Types';
|
|
2
|
-
import type { MediaType, SubtitleFormatType } from '../../core/Constants';
|
|
4
|
+
import type { Constants, MediaType, SubtitleFormatType } from '../../core/Constants';
|
|
3
5
|
import type { ArrayAtom } from '../../core/state/ArrayStateAtom';
|
|
4
6
|
import type { CodecMapAtom } from '../../core/state/codec-map/CodecMapAtom';
|
|
5
7
|
import type { PrimitiveAtom } from '../../core/state/PrimitiveAtom';
|
|
6
8
|
import type { StateAtom } from '../../core/state/Types';
|
|
9
|
+
import type { CoreStateAtoms } from '../../core/Types';
|
|
10
|
+
import { CoreExportNames } from '../../core/Types';
|
|
11
|
+
import type { Transient } from '../../core/utils/StateUtils';
|
|
12
|
+
import type { CoreUtils } from '../../core/utils/Types';
|
|
13
|
+
import type { ContextWithState } from '../../Types';
|
|
7
14
|
import type { DataOrSelfInitSegmentAtom } from '../segment/SegmentAtom';
|
|
8
15
|
import type { SelectionGroupAtom } from '../selection-group/SelectionGroupAtom';
|
|
9
16
|
import type { StreamDataStructureContext } from '../Types';
|
|
17
|
+
import type { TypeDetection } from './TypeDetection';
|
|
18
|
+
type ExtendedContext = ContextHaving<{
|
|
19
|
+
[CoreExportNames.Utils]: CoreUtils;
|
|
20
|
+
[CoreExportNames.Constants]: Constants;
|
|
21
|
+
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
22
|
+
}, EmptyObject, ContextWithState>;
|
|
10
23
|
export interface TimeRange {
|
|
11
24
|
start: number;
|
|
12
25
|
end: number;
|
|
@@ -49,9 +62,11 @@ type SubtitleTrack = LanguageTrack & {
|
|
|
49
62
|
external: boolean;
|
|
50
63
|
fragmented: boolean;
|
|
51
64
|
};
|
|
52
|
-
type UnknownTrack = {
|
|
65
|
+
type UnknownTrack = BaseTrack & {
|
|
53
66
|
type: MediaType.Unknown;
|
|
54
|
-
|
|
67
|
+
uri?: string;
|
|
68
|
+
typeDetected: Transient<TypeDetection>;
|
|
69
|
+
};
|
|
55
70
|
type Track = AudioTrack | VideoTrack | MuxedTrack | SubtitleTrack | UnknownTrack;
|
|
56
71
|
export type AudioTrackAtom = StateAtom<AudioTrack, ReturnType<typeof getAudioTrackModifiers>>;
|
|
57
72
|
export type VideoTrackAtom = StateAtom<VideoTrack, ReturnType<typeof getMediaTrackModifiers>>;
|
|
@@ -84,5 +99,5 @@ export declare const createAudioTrackAtom: (context: StreamDataStructureContext,
|
|
|
84
99
|
export declare const createVideoTrackAtom: (context: StreamDataStructureContext, initialValue: PartialRequired<Omit<VideoTrack, 'timeRange'>, RequiredBaseTrackKeys | 'resolution' | 'bitrate' | 'codecs' | 'uri'>) => VideoTrackAtom;
|
|
85
100
|
export declare const createMuxedTrackAtom: (context: StreamDataStructureContext, initialValue: PartialRequired<Omit<MuxedTrack, 'timeRange'>, RequiredBaseTrackKeys | 'language' | 'resolution' | 'bitrate' | 'codecs' | 'uri'>) => MuxedTrackAtom;
|
|
86
101
|
export declare const createSubtitleTrackAtom: (context: StreamDataStructureContext, initialValue: PartialRequired<Omit<SubtitleTrack, 'timeRange' | 'formatType'>, RequiredBaseTrackKeys | 'language'>) => SubtitleTrackAtom;
|
|
87
|
-
export declare const createUnknownTrackAtom: (context:
|
|
102
|
+
export declare const createUnknownTrackAtom: (context: ExtendedContext, initialValue: PartialRequired<Omit<UnknownTrack, 'timeRange' | 'typeDetected'>, RequiredBaseTrackKeys>) => UnknownTrackAtom;
|
|
88
103
|
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { AudioTrackAtom, MediaTrackAtom, SubtitleTrackAtom, TrackAtom, VideoTrackAtom } from './TrackAtom';
|
|
1
|
+
import type { AudioTrackAtom, MediaTrackAtom, SubtitleTrackAtom, TrackAtom, UnknownTrackAtom, VideoTrackAtom } from './TrackAtom';
|
|
2
|
+
export declare function isUnknownTrack(track: TrackAtom): track is UnknownTrackAtom;
|
|
3
|
+
export declare function isUnknownTrack(track: TrackAtom, index: number, array: TrackAtom[]): track is UnknownTrackAtom;
|
|
2
4
|
export declare function isAudioTrack(track: TrackAtom): track is AudioTrackAtom;
|
|
3
5
|
export declare function isAudioTrack(track: TrackAtom, index: number, array: TrackAtom[]): track is AudioTrackAtom;
|
|
4
6
|
export declare function isMediaTrack(track: TrackAtom): track is MediaTrackAtom;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { MediaType } from '../../core/Constants';
|
|
2
|
+
type BaseTypeDetection = {
|
|
3
|
+
detectedType: MediaType;
|
|
4
|
+
};
|
|
5
|
+
export type AudioTypeDetection = BaseTypeDetection & {
|
|
6
|
+
detectedType: MediaType.Audio;
|
|
7
|
+
codecs: string[];
|
|
8
|
+
language?: string;
|
|
9
|
+
};
|
|
10
|
+
export type VideoTypeDetection = BaseTypeDetection & {
|
|
11
|
+
detectedType: MediaType.Video;
|
|
12
|
+
codecs: string[];
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
};
|
|
16
|
+
export type MuxedTypeDetection = BaseTypeDetection & {
|
|
17
|
+
detectedType: MediaType.Muxed;
|
|
18
|
+
audioCodecs: string[];
|
|
19
|
+
videoCodecs: string[];
|
|
20
|
+
language?: string;
|
|
21
|
+
width?: number;
|
|
22
|
+
height?: number;
|
|
23
|
+
};
|
|
24
|
+
export type TypeDetection = AudioTypeDetection | VideoTypeDetection | MuxedTypeDetection;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AudioTypeDetection, MuxedTypeDetection, TypeDetection, VideoTypeDetection } from './TypeDetection';
|
|
2
|
+
export declare function isAudioTypeDetection(detection: TypeDetection): detection is AudioTypeDetection;
|
|
3
|
+
export declare function isVideoTypeDetection(detection: TypeDetection): detection is VideoTypeDetection;
|
|
4
|
+
export declare function isMuxedTypeDetection(detection: TypeDetection): detection is MuxedTypeDetection;
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* <svg aria-roledescription="flowchart-v2" role="graphics-document document" viewBox="-8 -8 16 16" style="max-width: 16px; background-color: transparent;" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="100%" id="my-svg"><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#ccc;}#my-svg .error-icon{fill:#a44141;}#my-svg .error-text{fill:#ddd;stroke:#ddd;}#my-svg .edge-thickness-normal{stroke-width:2px;}#my-svg .edge-thickness-thick{stroke-width:3.5px;}#my-svg .edge-pattern-solid{stroke-dasharray:0;}#my-svg .edge-pattern-dashed{stroke-dasharray:3;}#my-svg .edge-pattern-dotted{stroke-dasharray:2;}#my-svg .marker{fill:lightgrey;stroke:lightgrey;}#my-svg .marker.cross{stroke:lightgrey;}#my-svg svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#my-svg .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#ccc;}#my-svg .cluster-label text{fill:#F9FFFE;}#my-svg .cluster-label span,#my-svg p{color:#F9FFFE;}#my-svg .label text,#my-svg span,#my-svg p{fill:#ccc;color:#ccc;}#my-svg .node rect,#my-svg .node circle,#my-svg .node ellipse,#my-svg .node polygon,#my-svg .node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px;}#my-svg .flowchart-label text{text-anchor:middle;}#my-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#my-svg .node .label{text-align:center;}#my-svg .node.clickable{cursor:pointer;}#my-svg .arrowheadPath{fill:lightgrey;}#my-svg .edgePath .path{stroke:lightgrey;stroke-width:2.0px;}#my-svg .flowchart-link{stroke:lightgrey;fill:none;}#my-svg .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#my-svg .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#my-svg .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#my-svg .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#my-svg .cluster text{fill:#F9FFFE;}#my-svg .cluster span,#my-svg p{color:#F9FFFE;}#my-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(20, 1.5873015873%, 12.3529411765%);border:1px solid rgba(255, 255, 255, 0.25);border-radius:2px;pointer-events:none;z-index:100;}#my-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#my-svg :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="6" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-pointEnd"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 0 L 10 5 L 0 10 z"/></marker><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="4.5" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-pointStart"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 5 L 10 10 L 10 0 z"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="11" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-circleEnd"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="-1" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-circleStart"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="12" viewBox="0 0 11 11" class="marker cross flowchart" id="my-svg_flowchart-crossEnd"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="-1" viewBox="0 0 11 11" class="marker cross flowchart" id="my-svg_flowchart-crossStart"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><g class="root"><g class="clusters"/><g class="edgePaths"/><g class="edgeLabels"/><g class="nodes"/></g></g></svg>
|
|
8
8
|
*/
|
|
9
9
|
import type { EmptyObject } from '../../../framework-types/BaseTypes';
|
|
10
|
-
import
|
|
11
|
-
export declare const StreamingPackage: import("../../../framework-types/package-api/Package").Package<EmptyObject,
|
|
10
|
+
import { CreateStreamingStateAtom } from './Types';
|
|
11
|
+
export declare const StreamingPackage: import("../../../framework-types/package-api/Package").Package<EmptyObject, CreateStreamingStateAtom, EmptyObject>;
|
|
12
12
|
export default StreamingPackage;
|
|
13
|
+
|
|
14
|
+
export declare const version: string;
|
|
@@ -5,7 +5,8 @@ export type StreamingState = {
|
|
|
5
5
|
[StreamingState]: StreamingStateAtom;
|
|
6
6
|
};
|
|
7
7
|
export declare const CreateStreamingStateAtom = "create-streaming-state-atom";
|
|
8
|
-
export type
|
|
9
|
-
export type StreamingPackageExports = {
|
|
8
|
+
export type CreateStreamingStateAtom = {
|
|
10
9
|
[CreateStreamingStateAtom]: typeof createStreamingStateAtom;
|
|
11
10
|
};
|
|
11
|
+
export type StreamingPackageDependencies = EmptyObject;
|
|
12
|
+
export type StreamingPackageExports = CreateStreamingStateAtom;
|
|
@@ -15,3 +15,5 @@
|
|
|
15
15
|
import type { EmptyObject } from '../../../framework-types/BaseTypes';
|
|
16
16
|
export declare const SubtitlesPackage: import("../../../framework-types/package-api/Package").Package<EmptyObject, EmptyObject, EmptyObject>;
|
|
17
17
|
export default SubtitlesPackage;
|
|
18
|
+
|
|
19
|
+
export declare const version: string;
|
|
@@ -10,3 +10,5 @@ import type { EmptyObject } from '../../../../framework-types/BaseTypes';
|
|
|
10
10
|
import type { SubtitleApiDependencies, SubtitleApiExports } from './Types';
|
|
11
11
|
export declare const SubtitleApiPackage: import("../../../../framework-types/package-api/Package").Package<SubtitleApiDependencies, SubtitleApiExports, EmptyObject>;
|
|
12
12
|
export default SubtitleApiPackage;
|
|
13
|
+
|
|
14
|
+
export declare const version: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum SubtitleEvent {
|
|
2
|
+
TrackAvailable = "subtitle-track-available",
|
|
3
|
+
TrackUnavailable = "subtitle-track-unavailable",
|
|
4
|
+
TrackActivated = "subtitle-track-activated",
|
|
5
|
+
TrackDeactivated = "subtitle-track-deactivated",
|
|
6
|
+
CueParsed = "subtitle-cue-parsed",
|
|
7
|
+
CueEnter = "subtitle-cue-enter",
|
|
8
|
+
CueExit = "subtitle-cue-exit"
|
|
9
|
+
}
|
|
@@ -18,6 +18,8 @@ import type { ContextWithState } from '../../Types';
|
|
|
18
18
|
import type { SubtitleCueAtom } from '../subtitle-base/SubtitleCueAtom';
|
|
19
19
|
import type { SubtitleCueMapAtom } from '../subtitle-base/SubtitleCueMapAtom';
|
|
20
20
|
import type { SubtitleBaseExportNames } from '../subtitle-base/Types';
|
|
21
|
+
import type { SubtitleEvent } from './SubtitleEvent';
|
|
22
|
+
export type { SubtitleEvent } from './SubtitleEvent';
|
|
21
23
|
export type SubtitleApiDependencies = {
|
|
22
24
|
[CoreExportNames.CoreEffects]: CoreEffects;
|
|
23
25
|
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
@@ -66,16 +68,8 @@ export type SubtitleApi = {
|
|
|
66
68
|
};
|
|
67
69
|
export type SubtitleSourceApi = {
|
|
68
70
|
subtitles: SubtitleApi;
|
|
71
|
+
events: EventBus<SubtitleEventMap>;
|
|
69
72
|
};
|
|
70
|
-
export declare enum SubtitleEvent {
|
|
71
|
-
TrackAvailable = "subtitle-track-available",
|
|
72
|
-
TrackUnavailable = "subtitle-track-unavailable",
|
|
73
|
-
TrackActivated = "subtitle-track-activated",
|
|
74
|
-
TrackDeactivated = "subtitle-track-deactivated",
|
|
75
|
-
CueParsed = "subtitle-cue-parsed",
|
|
76
|
-
CueEnter = "subtitle-cue-enter",
|
|
77
|
-
CueExit = "subtitle-cue-exit"
|
|
78
|
-
}
|
|
79
73
|
export interface TrackEvent extends EventBase {
|
|
80
74
|
track: SubtitleTrack;
|
|
81
75
|
}
|
|
@@ -11,3 +11,5 @@ import type { EmptyObject } from '../../../../framework-types/BaseTypes';
|
|
|
11
11
|
import type { SubtitleBaseDependencies, SubtitleBaseExports } from './Types';
|
|
12
12
|
export declare const SubtitleBasePackage: import("../../../../framework-types/package-api/Package").Package<SubtitleBaseDependencies, SubtitleBaseExports, EmptyObject>;
|
|
13
13
|
export default SubtitleBasePackage;
|
|
14
|
+
|
|
15
|
+
export declare const version: string;
|
package/types/packages/subtitles/subtitle-format-detection/SubtitleFormatDetection.package.d.ts
CHANGED
|
@@ -11,3 +11,5 @@ import type { EmptyObject } from '../../../../framework-types/BaseTypes';
|
|
|
11
11
|
import type { SubtitleFormatDetectionDependencies, SubtitleFormatDetectionExports } from './Types';
|
|
12
12
|
export declare const SubtitleFormatDetectionPackage: import("../../../../framework-types/package-api/Package").Package<SubtitleFormatDetectionDependencies, SubtitleFormatDetectionExports, EmptyObject>;
|
|
13
13
|
export default SubtitleFormatDetectionPackage;
|
|
14
|
+
|
|
15
|
+
export declare const version: string;
|
package/types/packages/subtitles/subtitle-native-renderer/SubtitleNativeRenderer.package.d.ts
CHANGED
|
@@ -10,3 +10,5 @@ import type { EmptyObject } from '../../../../framework-types/BaseTypes';
|
|
|
10
10
|
import type { SubtitleNativeRendererDependencies } from './Types';
|
|
11
11
|
export declare const SubtitleNativeRendererPackage: import("../../../../framework-types/package-api/Package").Package<SubtitleNativeRendererDependencies, EmptyObject, EmptyObject>;
|
|
12
12
|
export default SubtitleNativeRendererPackage;
|
|
13
|
+
|
|
14
|
+
export declare const version: string;
|
|
@@ -10,3 +10,5 @@ import type { EmptyObject } from '../../../../framework-types/BaseTypes';
|
|
|
10
10
|
import type { WebVttDependencies, WebVttExports } from './Types';
|
|
11
11
|
export declare const WebVttPackage: import("../../../../framework-types/package-api/Package").Package<WebVttDependencies, WebVttExports, EmptyObject>;
|
|
12
12
|
export default WebVttPackage;
|
|
13
|
+
|
|
14
|
+
export declare const version: string;
|
|
@@ -13,12 +13,13 @@ import type { EmptyObject } from '../../Types';
|
|
|
13
13
|
import type { CoreExports } from '../core/Types';
|
|
14
14
|
import type { SourceStateAtom } from '../source/atoms/SourceStateAtom';
|
|
15
15
|
import { SourceExportNames } from '../source/Types';
|
|
16
|
+
import { StreamDataStructureStream } from '../stream-data-structure/stream/Exports';
|
|
16
17
|
import { StreamDataStructureTracks } from '../stream-data-structure/track/Exports';
|
|
17
18
|
import type { TimeRange } from '../stream-data-structure/track/TrackAtom';
|
|
18
19
|
import { StreamingState } from '../streaming/Types';
|
|
19
20
|
type Dependencies = {
|
|
20
21
|
[SourceExportNames.SourceState]: SourceStateAtom;
|
|
21
|
-
} & CoreExports & StreamDataStructureTracks & StreamingState;
|
|
22
|
+
} & CoreExports & StreamDataStructureTracks & StreamDataStructureStream & StreamingState;
|
|
22
23
|
export type TrickPlayApi = {
|
|
23
24
|
play(): void;
|
|
24
25
|
pause(): void;
|
|
@@ -27,3 +28,5 @@ export type TrickPlayApi = {
|
|
|
27
28
|
};
|
|
28
29
|
export declare const TrickPlayPackage: import("../../../framework-types/package-api/Package").Package<Dependencies, EmptyObject, TrickPlayApi>;
|
|
29
30
|
export default TrickPlayPackage;
|
|
31
|
+
|
|
32
|
+
export declare const version: string;
|
|
@@ -23,3 +23,5 @@ type TvPackageExports = EmptyObject;
|
|
|
23
23
|
export type TvPackageContext = ContextHaving<TvPackageDependencies, TvPackageExports, ContextWithState>;
|
|
24
24
|
export declare const TvPackage: import("../../../framework-types/package-api/Package").Package<TvPackageDependencies, EmptyObject, EmptyObject>;
|
|
25
25
|
export default TvPackage;
|
|
26
|
+
|
|
27
|
+
export declare const version: string;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { BundleExportNames, PlayerConfig } from '../../bundles/Types';
|
|
2
|
+
export declare enum UiExportNames {
|
|
3
|
+
UiState = "ui-state"
|
|
4
|
+
}
|
|
5
|
+
export type UiConfig = {
|
|
6
|
+
aspectRatio: string;
|
|
7
|
+
hideTimeout: number;
|
|
8
|
+
seekbarColors: {
|
|
9
|
+
content: string;
|
|
10
|
+
advertisement: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export type UiState = {
|
|
14
|
+
overlay: HTMLDivElement;
|
|
15
|
+
container: HTMLElement;
|
|
16
|
+
seekbarTrack: HTMLDivElement;
|
|
17
|
+
seekbarProgress: HTMLDivElement;
|
|
18
|
+
seekbarThumb: HTMLDivElement;
|
|
19
|
+
seekbarContainer: HTMLDivElement;
|
|
20
|
+
currentTimeLabel: HTMLSpanElement;
|
|
21
|
+
durationLabel: HTMLSpanElement;
|
|
22
|
+
playPauseButton: HTMLDivElement;
|
|
23
|
+
bottomBar: HTMLDivElement;
|
|
24
|
+
volumeContainer: HTMLDivElement;
|
|
25
|
+
volumeIcon: HTMLSpanElement;
|
|
26
|
+
volumeTrack: HTMLDivElement;
|
|
27
|
+
volumeProgress: HTMLDivElement;
|
|
28
|
+
volumeThumb: HTMLDivElement;
|
|
29
|
+
config: UiConfig;
|
|
30
|
+
};
|
|
31
|
+
export type UiPackageDependencies = {
|
|
32
|
+
[BundleExportNames.PlayerConfig]: PlayerConfig;
|
|
33
|
+
};
|
|
34
|
+
export type UiPackageExports = {
|
|
35
|
+
[UiExportNames.UiState]: UiState;
|
|
36
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { EmptyObject } from '../../../framework-types/BaseTypes';
|
|
2
|
+
import type { UiPackageDependencies, UiPackageExports } from './Types';
|
|
3
|
+
export declare const UiPackage: import("../../../framework-types/package-api/Package").Package<UiPackageDependencies, UiPackageExports, EmptyObject>;
|
|
4
|
+
export default UiPackage;
|
|
5
|
+
|
|
6
|
+
export declare const version: string;
|
|
@@ -8,13 +8,15 @@
|
|
|
8
8
|
* <svg aria-roledescription="flowchart-v2" role="graphics-document document" viewBox="-8 -8 288.078125 49" style="max-width: 288.078px; background-color: transparent;" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="100%" id="my-svg"><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#ccc;}#my-svg .error-icon{fill:#a44141;}#my-svg .error-text{fill:#ddd;stroke:#ddd;}#my-svg .edge-thickness-normal{stroke-width:2px;}#my-svg .edge-thickness-thick{stroke-width:3.5px;}#my-svg .edge-pattern-solid{stroke-dasharray:0;}#my-svg .edge-pattern-dashed{stroke-dasharray:3;}#my-svg .edge-pattern-dotted{stroke-dasharray:2;}#my-svg .marker{fill:lightgrey;stroke:lightgrey;}#my-svg .marker.cross{stroke:lightgrey;}#my-svg svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#my-svg .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#ccc;}#my-svg .cluster-label text{fill:#F9FFFE;}#my-svg .cluster-label span,#my-svg p{color:#F9FFFE;}#my-svg .label text,#my-svg span,#my-svg p{fill:#ccc;color:#ccc;}#my-svg .node rect,#my-svg .node circle,#my-svg .node ellipse,#my-svg .node polygon,#my-svg .node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px;}#my-svg .flowchart-label text{text-anchor:middle;}#my-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#my-svg .node .label{text-align:center;}#my-svg .node.clickable{cursor:pointer;}#my-svg .arrowheadPath{fill:lightgrey;}#my-svg .edgePath .path{stroke:lightgrey;stroke-width:2.0px;}#my-svg .flowchart-link{stroke:lightgrey;fill:none;}#my-svg .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#my-svg .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#my-svg .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#my-svg .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#my-svg .cluster text{fill:#F9FFFE;}#my-svg .cluster span,#my-svg p{color:#F9FFFE;}#my-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(20, 1.5873015873%, 12.3529411765%);border:1px solid rgba(255, 255, 255, 0.25);border-radius:2px;pointer-events:none;z-index:100;}#my-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#my-svg :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="6" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-pointEnd"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 0 L 10 5 L 0 10 z"/></marker><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="4.5" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-pointStart"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 5 L 10 10 L 10 0 z"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="11" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-circleEnd"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="-1" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-circleStart"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="12" viewBox="0 0 11 11" class="marker cross flowchart" id="my-svg_flowchart-crossEnd"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="-1" viewBox="0 0 11 11" class="marker cross flowchart" id="my-svg_flowchart-crossStart"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><g class="root"><g class="clusters"/><g class="edgePaths"><path marker-end="url(#my-svg_flowchart-pointEnd)" style="fill:none;" class="edge-thickness-normal edge-pattern-solid flowchart-link LS-BitmovinUi LE-BitmovinV8Core" id="L-BitmovinUi-BitmovinV8Core-0" d="M91.469,16.5L95.635,16.5C99.802,16.5,108.135,16.5,115.585,16.5C123.035,16.5,129.602,16.5,132.885,16.5L136.169,16.5"/></g><g class="edgeLabels"><g class="edgeLabel"><g transform="translate(0, 0)" class="label"><foreignObject height="0" width="0"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="edgeLabel"></span></div></foreignObject></g></g></g><g class="nodes"><g transform="translate(45.734375, 16.5)" data-id="BitmovinUi" data-node="true" id="flowchart-BitmovinUi-0" class="node default default flowchart-label"><rect height="33" width="91.46875" y="-16.5" x="-45.734375" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-38.234375, -9)" style="" class="label"><rect/><foreignObject height="18" width="76.46875"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">BitmovinUi</span></div></foreignObject></g></g><g transform="translate(206.7734375, 16.5)" data-id="BitmovinV8Core" data-node="true" id="flowchart-BitmovinV8Core-1" class="node default default flowchart-label"><rect height="33" width="130.609375" y="-16.5" x="-65.3046875" ry="0" rx="0" style="" class="basic label-container"/><g transform="translate(-57.8046875, -9)" style="" class="label"><rect/><foreignObject height="18" width="115.609375"><div style="display: inline-block; white-space: nowrap;" xmlns="http://www.w3.org/1999/xhtml"><span class="nodeLabel">BitmovinV8Core</span></div></foreignObject></g></g></g></g></g></svg>
|
|
9
9
|
*/
|
|
10
10
|
import type { EmptyObject } from '../../Types';
|
|
11
|
-
import {
|
|
11
|
+
import { AdditionalPlayerExportNames } from './enums/AdditionalPlayerExportNames';
|
|
12
12
|
import type { EventListenerAtom } from './event-handling/EventListenerAtom';
|
|
13
13
|
import type { BitmovinV8PlayerApi, PlayerConfig } from './types/Types';
|
|
14
14
|
type Dependencies = {
|
|
15
|
-
[
|
|
16
|
-
[
|
|
17
|
-
[
|
|
15
|
+
[AdditionalPlayerExportNames.UserConfig]: PlayerConfig;
|
|
16
|
+
[AdditionalPlayerExportNames.PlayerApi]: BitmovinV8PlayerApi;
|
|
17
|
+
[AdditionalPlayerExportNames.EventListenerAtom]: EventListenerAtom;
|
|
18
18
|
};
|
|
19
19
|
export declare const BitmovinPlayerUiPackage: import("../../../framework-types/package-api/Package").Package<Dependencies, EmptyObject, BitmovinV8PlayerApi>;
|
|
20
20
|
export default BitmovinPlayerUiPackage;
|
|
21
|
+
|
|
22
|
+
export declare const version: string;
|
|
@@ -9,13 +9,27 @@
|
|
|
9
9
|
* <svg aria-roledescription="flowchart-v2" role="graphics-document document" viewBox="-8 -8 16 16" style="max-width: 16px; background-color: transparent;" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="100%" id="my-svg"><style>#my-svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#ccc;}#my-svg .error-icon{fill:#a44141;}#my-svg .error-text{fill:#ddd;stroke:#ddd;}#my-svg .edge-thickness-normal{stroke-width:2px;}#my-svg .edge-thickness-thick{stroke-width:3.5px;}#my-svg .edge-pattern-solid{stroke-dasharray:0;}#my-svg .edge-pattern-dashed{stroke-dasharray:3;}#my-svg .edge-pattern-dotted{stroke-dasharray:2;}#my-svg .marker{fill:lightgrey;stroke:lightgrey;}#my-svg .marker.cross{stroke:lightgrey;}#my-svg svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#my-svg .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#ccc;}#my-svg .cluster-label text{fill:#F9FFFE;}#my-svg .cluster-label span,#my-svg p{color:#F9FFFE;}#my-svg .label text,#my-svg span,#my-svg p{fill:#ccc;color:#ccc;}#my-svg .node rect,#my-svg .node circle,#my-svg .node ellipse,#my-svg .node polygon,#my-svg .node path{fill:#1f2020;stroke:#81B1DB;stroke-width:1px;}#my-svg .flowchart-label text{text-anchor:middle;}#my-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#my-svg .node .label{text-align:center;}#my-svg .node.clickable{cursor:pointer;}#my-svg .arrowheadPath{fill:lightgrey;}#my-svg .edgePath .path{stroke:lightgrey;stroke-width:2.0px;}#my-svg .flowchart-link{stroke:lightgrey;fill:none;}#my-svg .edgeLabel{background-color:hsl(0, 0%, 34.4117647059%);text-align:center;}#my-svg .edgeLabel rect{opacity:0.5;background-color:hsl(0, 0%, 34.4117647059%);fill:hsl(0, 0%, 34.4117647059%);}#my-svg .labelBkg{background-color:rgba(87.75, 87.75, 87.75, 0.5);}#my-svg .cluster rect{fill:hsl(180, 1.5873015873%, 28.3529411765%);stroke:rgba(255, 255, 255, 0.25);stroke-width:1px;}#my-svg .cluster text{fill:#F9FFFE;}#my-svg .cluster span,#my-svg p{color:#F9FFFE;}#my-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(20, 1.5873015873%, 12.3529411765%);border:1px solid rgba(255, 255, 255, 0.25);border-radius:2px;pointer-events:none;z-index:100;}#my-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#ccc;}#my-svg :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}</style><g><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="6" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-pointEnd"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 0 L 10 5 L 0 10 z"/></marker><marker orient="auto" markerHeight="12" markerWidth="12" markerUnits="userSpaceOnUse" refY="5" refX="4.5" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-pointStart"><path style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 0 5 L 10 10 L 10 0 z"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="11" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-circleEnd"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5" refX="-1" viewBox="0 0 10 10" class="marker flowchart" id="my-svg_flowchart-circleStart"><circle style="stroke-width: 1; stroke-dasharray: 1, 0;" class="arrowMarkerPath" r="5" cy="5" cx="5"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="12" viewBox="0 0 11 11" class="marker cross flowchart" id="my-svg_flowchart-crossEnd"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><marker orient="auto" markerHeight="11" markerWidth="11" markerUnits="userSpaceOnUse" refY="5.2" refX="-1" viewBox="0 0 11 11" class="marker cross flowchart" id="my-svg_flowchart-crossStart"><path style="stroke-width: 2; stroke-dasharray: 1, 0;" class="arrowMarkerPath" d="M 1,1 l 9,9 M 10,1 l -9,9"/></marker><g class="root"><g class="clusters"/><g class="edgePaths"/><g class="edgeLabels"/><g class="nodes"/></g></g></svg>
|
|
10
10
|
*/
|
|
11
11
|
import type { EmptyObject } from '../../Types';
|
|
12
|
-
import {
|
|
12
|
+
import { addActiveSourceApiMethods, addInactiveSourceApiMethods } from './apis/SourceApis';
|
|
13
|
+
import { addActiveSubtitleApi } from './apis/SubtitleApi';
|
|
14
|
+
import { AdditionalPlayerExportNames } from './enums/AdditionalPlayerExportNames';
|
|
15
|
+
import { PlayerEvent } from './enums/PlayerExports';
|
|
16
|
+
import { dispatchEvent } from './event-handling/EventDispatcher';
|
|
13
17
|
import type { PlayerConfig } from './types/PlayerConfig';
|
|
14
18
|
import type { BitmovinV8PlayerApi } from './types/Types';
|
|
19
|
+
export type V8CompatUtils = {
|
|
20
|
+
addActiveSourceApiMethods: typeof addActiveSourceApiMethods;
|
|
21
|
+
addInactiveSourceApiMethods: typeof addInactiveSourceApiMethods;
|
|
22
|
+
addActiveSubtitleApi: typeof addActiveSubtitleApi;
|
|
23
|
+
dispatchEvent: typeof dispatchEvent;
|
|
24
|
+
};
|
|
15
25
|
type Exports = {
|
|
16
|
-
[
|
|
17
|
-
[
|
|
18
|
-
[
|
|
26
|
+
[AdditionalPlayerExportNames.UserConfig]: PlayerConfig;
|
|
27
|
+
[AdditionalPlayerExportNames.Container]: HTMLElement;
|
|
28
|
+
[AdditionalPlayerExportNames.PlayerApi]: BitmovinV8PlayerApi;
|
|
29
|
+
[AdditionalPlayerExportNames.V8CompatUtils]: V8CompatUtils;
|
|
30
|
+
[AdditionalPlayerExportNames.PlayerEvent]: typeof PlayerEvent;
|
|
19
31
|
};
|
|
20
32
|
export declare const createBitmovinV8PlayerCorePackage: (container: HTMLElement, userConfig: PlayerConfig, playerApi: BitmovinV8PlayerApi) => import("../../../framework-types/package-api/Package").Package<EmptyObject, Exports, BitmovinV8PlayerApi>;
|
|
21
33
|
export {};
|
|
34
|
+
|
|
35
|
+
export declare const version: string;
|
|
@@ -19,13 +19,15 @@ import type { StateEffect } from '../core/state/state-effect/StateEffectFactory'
|
|
|
19
19
|
import type { CoreEffects, CoreStateAtoms } from '../core/Types';
|
|
20
20
|
import { CoreExportNames } from '../core/Types';
|
|
21
21
|
import type { CoreUtils } from '../core/utils/Types';
|
|
22
|
+
import type { createEventBus } from '../event-bus/EventBus';
|
|
22
23
|
import type { EventBus } from '../event-bus/Types';
|
|
24
|
+
import { EventBusExportNames } from '../event-bus/Types';
|
|
23
25
|
import type { createSourceStateAtom, SourceStateAtom } from '../source/atoms/SourceStateAtom';
|
|
24
26
|
import { SourceExportNames } from '../source/Types';
|
|
25
27
|
import type { SourcesApiExportNames } from '../sources-api/Types';
|
|
26
28
|
import type { StreamDataStructurePackageExports } from '../stream-data-structure/Types';
|
|
27
29
|
import type { StreamingPackageExports, StreamingState } from '../streaming/Types';
|
|
28
|
-
import {
|
|
30
|
+
import { AdditionalPlayerExportNames } from './enums/AdditionalPlayerExportNames';
|
|
29
31
|
import type { EventListenerAtom } from './event-handling/EventListenerAtom';
|
|
30
32
|
import type { PlayerConfig } from './types/PlayerConfig';
|
|
31
33
|
import type { BitmovinV8PlayerApi } from './types/Types';
|
|
@@ -35,12 +37,13 @@ type PlayerApiCompatDependencies = {
|
|
|
35
37
|
[CoreExportNames.CoreStateAtoms]: CoreStateAtoms;
|
|
36
38
|
[CoreExportNames.Constants]: Constants;
|
|
37
39
|
[SourceExportNames.CreateSourceStateAtom]: typeof createSourceStateAtom;
|
|
38
|
-
[
|
|
39
|
-
[
|
|
40
|
-
[
|
|
40
|
+
[AdditionalPlayerExportNames.Container]: HTMLElement;
|
|
41
|
+
[AdditionalPlayerExportNames.VideoElement]: HTMLVideoElement;
|
|
42
|
+
[AdditionalPlayerExportNames.UserConfig]: PlayerConfig;
|
|
43
|
+
[EventBusExportNames.CreateEventBus]: typeof createEventBus;
|
|
41
44
|
} & StreamDataStructurePackageExports & StreamingPackageExports;
|
|
42
45
|
type PlayerApiCompatExports = {
|
|
43
|
-
[
|
|
46
|
+
[AdditionalPlayerExportNames.EventListenerAtom]: EventListenerAtom;
|
|
44
47
|
[SourceExportNames.SourceState]: SourceStateAtom;
|
|
45
48
|
[SourcesApiExportNames.SourceApiManager]: ApiManager<EmptyObject>;
|
|
46
49
|
[SourcesApiExportNames.SourceEventBus]: EventBus<EmptyObject>;
|
|
@@ -48,3 +51,5 @@ type PlayerApiCompatExports = {
|
|
|
48
51
|
export type PlayerApiCompatContext = ContextHaving<PlayerApiCompatDependencies, PlayerApiCompatExports, ContextUsing<[StateEffect, EventListenerEffect], BaseContext>>;
|
|
49
52
|
export declare const BitmovinV8PlayerStaticApiPackage: import("../../../framework-types/package-api/Package").Package<PlayerApiCompatDependencies, PlayerApiCompatExports, BitmovinV8PlayerApi>;
|
|
50
53
|
export default BitmovinV8PlayerStaticApiPackage;
|
|
54
|
+
|
|
55
|
+
export declare const version: string;
|
|
@@ -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 } from '../types/Types';
|
|
4
|
+
export declare function addActiveSourceApiMethods(apiManager: ApiManager<BitmovinV8PlayerApi>, context: SourceApiCompatContext): void;
|
|
5
|
+
export declare function addInactiveSourceApiMethods(apiManager: ApiManager<BitmovinV8PlayerApi>): void;
|
|
@@ -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 {};
|