@bitmovin/player-web-x 10.0.0-beta.9 → 10.1.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/COMPAT.md +201 -0
- package/README.md +105 -0
- package/bundles/playerx-bitmovin-v8-core.js +3 -3
- package/bundles/playerx-bitmovin-v8.js +3 -3
- package/bundles/playerx-core.js +3 -3
- package/bundles/playerx-dash.js +3 -3
- package/bundles/playerx-hls.js +3 -3
- package/bundles/playerx-tv.js +3 -3
- package/framework-types/BaseTypes.d.ts +1 -0
- package/framework-types/abortable/Abortable.d.ts +4 -12
- package/framework-types/api-manager/ApiManager.d.ts +9 -0
- package/framework-types/error/FrameworkError.d.ts +0 -1
- package/framework-types/execution-context/ErrorPrinter.d.ts +8 -0
- package/framework-types/execution-context/ErrorPropagation.d.ts +2 -0
- package/framework-types/execution-context/ExecutionContext.d.ts +7 -3
- package/framework-types/execution-context/Types.d.ts +8 -0
- package/framework-types/framework.d.ts +4 -5
- package/framework-types/package-api/Package.d.ts +2 -1
- package/framework-types/package-api/PackageApi.d.ts +1 -1
- package/framework-types/package-api/PackageApiUtils.d.ts +2 -1
- package/framework-types/registry/Registry.d.ts +14 -7
- package/framework-types/registry/RegistryInterface.d.ts +2 -0
- package/framework-types/task/TaskUtils.d.ts +2 -1
- package/framework-types/thread/Thread.d.ts +3 -5
- package/framework-types/utils/Awaitable.d.ts +14 -0
- package/framework-types/utils/Deferred.d.ts +4 -4
- package/package.json +2 -2
- package/packages/playerx-adaptation.package.d.ts +1 -1
- package/packages/playerx-adaptation.package.js +3 -3
- package/packages/playerx-bitmovin-source-api.package.d.ts +1 -1
- package/packages/playerx-bitmovin-source-api.package.js +3 -3
- package/packages/playerx-bitmovin-ui.package.d.ts +1 -1
- package/packages/playerx-bitmovin-ui.package.js +3 -3
- package/packages/playerx-bitmovin-v8-core.package.d.ts +1 -1
- package/packages/playerx-bitmovin-v8-core.package.js +3 -3
- package/packages/playerx-bitmovin-v8-static-api.package.d.ts +1 -1
- package/packages/playerx-bitmovin-v8-static-api.package.js +3 -3
- package/packages/playerx-bitmovin-video-element-utils.package.d.ts +1 -1
- package/packages/playerx-bitmovin-video-element-utils.package.js +3 -3
- package/packages/playerx-capabilities.package.d.ts +1 -1
- package/packages/playerx-capabilities.package.js +3 -3
- package/packages/playerx-container-mp4.package.d.ts +1 -1
- package/packages/playerx-container-mp4.package.js +3 -3
- package/packages/playerx-container-ts.package.d.ts +1 -1
- package/packages/playerx-container-ts.package.js +3 -3
- package/packages/playerx-core.package.d.ts +1 -1
- package/packages/playerx-core.package.js +3 -3
- package/packages/playerx-dash-parsing.package.d.ts +1 -1
- package/packages/playerx-dash-parsing.package.js +3 -3
- package/packages/playerx-dash-translation.package.d.ts +1 -1
- package/packages/playerx-dash-translation.package.js +3 -3
- package/packages/playerx-dash.package.d.ts +1 -1
- package/packages/playerx-dash.package.js +3 -3
- package/packages/playerx-data.package.d.ts +1 -1
- package/packages/playerx-data.package.js +3 -3
- package/packages/playerx-event-bus.package.d.ts +1 -0
- package/packages/playerx-event-bus.package.js +10 -0
- package/packages/playerx-hls-parsing.package.d.ts +1 -1
- package/packages/playerx-hls-parsing.package.js +3 -3
- package/packages/playerx-hls-translation.package.d.ts +1 -1
- package/packages/playerx-hls-translation.package.js +3 -3
- package/packages/playerx-hls.package.d.ts +1 -1
- package/packages/playerx-hls.package.js +3 -3
- package/packages/playerx-network.package.d.ts +1 -1
- package/packages/playerx-network.package.js +3 -3
- package/packages/playerx-playback-api.package.d.ts +1 -0
- package/packages/playerx-playback-api.package.js +10 -0
- package/packages/playerx-playback.package.d.ts +1 -0
- package/packages/playerx-playback.package.js +10 -0
- package/packages/playerx-player-api.package.d.ts +1 -0
- package/packages/playerx-player-api.package.js +10 -0
- package/packages/playerx-presentation.package.d.ts +1 -1
- package/packages/playerx-presentation.package.js +3 -3
- package/packages/playerx-segment-processing.package.d.ts +1 -1
- package/packages/playerx-segment-processing.package.js +3 -3
- package/packages/playerx-source.package.d.ts +1 -1
- package/packages/playerx-source.package.js +3 -3
- package/packages/playerx-sources-api.package.d.ts +1 -1
- package/packages/playerx-sources-api.package.js +3 -3
- package/packages/playerx-trick-play.package.d.ts +1 -1
- package/packages/playerx-trick-play.package.js +3 -3
- package/packages/playerx-ts-transmuxer.package.d.ts +1 -1
- package/packages/playerx-ts-transmuxer.package.js +3 -3
- package/packages/playerx-tv.package.d.ts +1 -1
- package/packages/playerx-tv.package.js +3 -3
- package/packages/playerx-view-mode.package.d.ts +1 -0
- package/packages/playerx-view-mode.package.js +10 -0
- package/playerx-framework-utils.d.ts +1 -1
- package/playerx-framework-utils.js +3 -3
- package/types/FrameworkUtils.d.ts +3 -0
- package/types/{BaseTypes.d.ts → Types.d.ts} +1 -4
- package/types/bundles/BitmovinV8.bundle.d.ts +4 -33
- package/types/bundles/BitmovinV8Core.bundle.d.ts +4 -17
- package/types/bundles/Core.bundle.d.ts +9 -13
- package/types/bundles/Dash.bundle.d.ts +18 -28
- package/types/bundles/Hls.bundle.d.ts +19 -30
- package/types/bundles/Tv.bundle.d.ts +8 -28
- package/types/bundles/Types.d.ts +73 -10
- package/types/{framework/core → packages}/Types.d.ts +2 -2
- package/types/packages/adaptation/Adaptation.package.d.ts +33 -0
- package/types/{framework/core → packages}/adaptation/AdaptationStateAtom.d.ts +4 -4
- package/types/packages/adaptation/AdaptationTask.d.ts +5 -0
- package/types/packages/adaptation/Types.d.ts +37 -0
- package/types/{framework/core → packages}/adaptation/WishConfigAtom.d.ts +4 -4
- package/types/packages/capabilities/Capabilities.package.d.ts +26 -0
- package/types/packages/container/container-mp4/ContainerMp4.package.d.ts +35 -0
- package/types/packages/container/container-ts/ContainerTs.package.d.ts +32 -0
- package/types/packages/container/container-ts/processors/Constants.d.ts +77 -0
- package/types/packages/container/container-ts/processors/Types.d.ts +61 -0
- package/types/packages/container/container-ts/processors/packet-parsing/PacketParserData.d.ts +35 -0
- package/types/packages/container/container-ts/processors/payload-parsing/Types.d.ts +10 -0
- package/types/packages/container/container-ts/processors/readers/ChunkCursor.d.ts +5 -0
- package/types/packages/container/container-ts/processors/readers/PacketCursor.d.ts +8 -0
- package/types/packages/container/ts-transmuxer/TsTransmuxer.package.d.ts +33 -0
- package/types/{framework/core → packages}/core/Constants.d.ts +17 -0
- package/types/packages/core/Core.package.d.ts +13 -0
- package/types/{framework/core/core/Core.package.d.ts → packages/core/Types.d.ts} +49 -55
- package/types/{framework/core → packages}/core/effects/EventListenerEffectFactory.d.ts +7 -7
- package/types/{framework/core → packages}/core/metrics/MetricsAtom.d.ts +4 -5
- package/types/{framework/core → packages}/core/network/NetworkAtom.d.ts +1 -1
- package/types/{framework/core → packages}/core/state/ArrayStateAtom.d.ts +1 -1
- package/types/{framework/core → packages}/core/state/MapStateAtom.d.ts +1 -0
- package/types/packages/core/state/QueueAtom.d.ts +25 -0
- package/types/packages/core/state/StateMachineAtom.d.ts +15 -0
- package/types/packages/core/state/StoreEffectFactory.d.ts +5 -0
- package/types/{framework/core → packages}/core/state/Types.d.ts +1 -1
- package/types/{framework/core → packages}/core/state/codec-map/CodecMapAtom.d.ts +5 -6
- package/types/{framework/core → packages}/core/state/data-ranges/DataRangesAtom.d.ts +4 -4
- package/types/{framework/core → packages}/core/state/segment/SegmentAtom.d.ts +4 -11
- package/types/{framework/core → packages}/core/state/segment/SegmentDataAtom.d.ts +6 -7
- package/types/{framework/core → packages}/core/state/segment/SegmentTimingAtom.d.ts +1 -1
- package/types/packages/core/state/segment/SegmentUtils.d.ts +21 -0
- package/types/{framework/core → packages}/core/state/selection-group/SelectionGroupAtom.d.ts +18 -18
- package/types/{framework/core → packages}/core/state/state-effect/StateEffectFactory.d.ts +9 -10
- package/types/{framework/core → packages}/core/state/state-effect/Types.d.ts +3 -3
- package/types/{framework/core → packages}/core/state/stream-timeline/StreamSectionAtom.d.ts +6 -6
- package/types/{framework/core → packages}/core/state/track/TrackAtom.d.ts +8 -9
- package/types/{framework/core → packages}/core/state/track/TrackTypeGuards.d.ts +2 -1
- package/types/packages/core/utils/AnsiEscapeSequences.d.ts +23 -0
- package/types/{framework/core → packages}/core/utils/CodecStringHelper.d.ts +6 -6
- package/types/{framework/core → packages}/core/utils/StateUtils.d.ts +13 -12
- package/types/{framework/core → packages}/core/utils/StringHelper.d.ts +1 -0
- package/types/{framework/core → packages}/core/utils/TypedArrayHelper.d.ts +1 -1
- package/types/{framework/core → packages}/core/utils/Types.d.ts +2 -0
- package/types/packages/data/Data.package.d.ts +15 -0
- package/types/packages/data/Types.d.ts +46 -0
- package/types/packages/event-bus/EventBus.d.ts +4 -0
- package/types/packages/event-bus/EventBus.package.d.ts +16 -0
- package/types/packages/event-bus/Types.d.ts +23 -0
- package/types/packages/manifest/dash/parsing/DashParsing.package.d.ts +28 -0
- package/types/packages/manifest/dash/parsing/DashParsingTask.d.ts +2 -0
- package/types/packages/manifest/dash/root/Dash.package.d.ts +15 -0
- package/types/packages/manifest/dash/root/Types.d.ts +38 -0
- package/types/packages/manifest/dash/translation/DashTranslation.package.d.ts +12 -0
- package/types/packages/manifest/dash/translation/Types.d.ts +22 -0
- package/types/packages/manifest/dash/translation/manifests/DashPlaylistTranslatorTask.d.ts +3 -0
- package/types/packages/manifest/hls/parsing/HlsParsing.package.d.ts +31 -0
- package/types/packages/manifest/hls/parsing/HlsParsingTask.d.ts +2 -0
- package/types/packages/manifest/hls/root/Hls.package.d.ts +56 -0
- package/types/packages/manifest/hls/translation/HlsTranslation.package.d.ts +34 -0
- package/types/{framework/core → packages}/manifest/hls/translation/manifests/HlsMultivariantPlaylistTranslatorTask.d.ts +1 -1
- package/types/{framework/core → packages}/manifest/hls/translation/manifests/HlsVariantTranslationTask.d.ts +1 -1
- package/types/packages/network/FetchTask.d.ts +4 -0
- package/types/packages/network/Network.package.d.ts +12 -0
- package/types/{framework/core → packages}/network/NetworkTask.d.ts +2 -3
- package/types/{framework/core → packages}/network/Types.d.ts +29 -2
- package/types/packages/playback/Playback.package.d.ts +3 -0
- package/types/packages/playback/play-pause/TargetPlaybackStateAtom.d.ts +6 -0
- package/types/packages/playback/play-pause/Types.d.ts +28 -0
- package/types/packages/playback/playback-state/Types.d.ts +44 -0
- package/types/packages/playback/video-element-state/Types.d.ts +29 -0
- package/types/packages/playback/video-element-state/VideoElementStateAtom.d.ts +58 -0
- package/types/packages/playback-api/PlaybackApi.package.d.ts +3 -0
- package/types/packages/playback-api/Types.d.ts +6 -0
- package/types/packages/playback-api/play-pause-api/Types.d.ts +23 -0
- package/types/packages/playback-api/playback-api-events/Types.d.ts +31 -0
- package/types/packages/playback-api/playback-api-events/events/PlaybackEventMap.d.ts +32 -0
- package/types/packages/playback-api/playback-api-events/events/SeekedEvent.d.ts +6 -0
- package/types/packages/playback-api/playback-api-events/events/SeekingEvent.d.ts +7 -0
- package/types/packages/playback-api/playback-api-events/events/TimeChanged.d.ts +6 -0
- package/types/packages/player-api/PlayerApi.package.d.ts +29 -0
- package/types/packages/player-api/Types.d.ts +21 -0
- package/types/packages/presentation/Presentation.package.d.ts +62 -0
- package/types/packages/presentation/Types.d.ts +3 -0
- package/types/packages/presentation/cache/Types.d.ts +4 -0
- package/types/packages/segment-processing/SegmentProcessing.package.d.ts +28 -0
- package/types/{framework/core → packages}/segment-processing/Types.d.ts +15 -10
- package/types/packages/source/Source.package.d.ts +25 -0
- package/types/packages/source/SourceReference.d.ts +29 -0
- package/types/packages/source/Types.d.ts +32 -0
- package/types/{framework/core → packages}/source/atoms/BufferConfigAtom.d.ts +5 -5
- package/types/{framework/core → packages}/source/atoms/MediaTypeMapAtom.d.ts +5 -5
- package/types/packages/source/atoms/PlaybackAtom.d.ts +14 -0
- package/types/packages/source/atoms/PlaybackConfigAtom.d.ts +7 -0
- package/types/packages/source/atoms/SourceConfigAtom.d.ts +16 -0
- package/types/{framework/core → packages}/source/atoms/SourceStateAtom.d.ts +23 -13
- package/types/packages/source/atoms/VideoElementAtom.d.ts +17 -0
- package/types/packages/sources-api/SourcesApi.package.d.ts +12 -0
- package/types/packages/sources-api/Types.d.ts +102 -0
- package/types/packages/sources-api/VideoElementUtils.d.ts +12 -0
- package/types/packages/trick-play/TrickPlay.package.d.ts +37 -0
- package/types/packages/tv/Tv.package.d.ts +28 -0
- package/types/packages/v8-compat/BitmovinUi.package.d.ts +20 -0
- package/types/packages/v8-compat/BitmovinV8Core.package.d.ts +21 -0
- package/types/packages/v8-compat/BitmovinV8StaticApi.package.d.ts +49 -0
- package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/event-handling/EventListenerAtom.d.ts +2 -2
- package/types/packages/v8-compat/source-api/BitmovinSourceApi.package.d.ts +39 -0
- package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/Types.d.ts +4 -4
- package/types/packages/v8-compat/video-element/BitmovinVideoElementUtils.package.d.ts +32 -0
- package/types/packages/view-mode/Types.d.ts +15 -0
- package/types/packages/view-mode/ViewMode.package.d.ts +36 -0
- package/types/packages/view-mode/ViewModeAtom.d.ts +13 -0
- package/bundles/playerx-playlist.d.ts +0 -1
- package/bundles/playerx-playlist.js +0 -10
- package/packages/playerx-playback-state.package.d.ts +0 -1
- package/packages/playerx-playback-state.package.js +0 -10
- package/packages/playerx-playlist.package.d.ts +0 -1
- package/packages/playerx-playlist.package.js +0 -10
- package/packages/playerx-resize-tracker.package.d.ts +0 -1
- package/packages/playerx-resize-tracker.package.js +0 -10
- package/packages/playerx-source-api.package.d.ts +0 -1
- package/packages/playerx-source-api.package.js +0 -10
- package/types/bundles/Playlist.bundle.d.ts +0 -16
- package/types/framework/FrameworkUtils.d.ts +0 -3
- package/types/framework/Types.d.ts +0 -46
- package/types/framework/core/adaptation/Adaptation.package.d.ts +0 -102
- package/types/framework/core/capabilities/Capabilities.package.d.ts +0 -39
- package/types/framework/core/container/container-mp4/ContainerMp4.package.d.ts +0 -52
- package/types/framework/core/container/container-ts/ContainerTs.package.d.ts +0 -49
- package/types/framework/core/container/ts-transmuxer/TsTransmuxer.package.d.ts +0 -50
- package/types/framework/core/core/state/StoreEffectFactory.d.ts +0 -5
- package/types/framework/core/core/state/segment/SegmentUtils.d.ts +0 -10
- package/types/framework/core/data/Data.package.d.ts +0 -124
- package/types/framework/core/manifest/dash/parsing/DashParsing.package.d.ts +0 -34
- package/types/framework/core/manifest/dash/parsing/DashParsingTask.d.ts +0 -2
- package/types/framework/core/manifest/dash/root/Dash.package.d.ts +0 -119
- package/types/framework/core/manifest/dash/root/ManifestLoadTask.d.ts +0 -3
- package/types/framework/core/manifest/dash/root/Types.d.ts +0 -3
- package/types/framework/core/manifest/dash/translation/DashTranslation.package.d.ts +0 -48
- package/types/framework/core/manifest/dash/translation/Types.d.ts +0 -3
- package/types/framework/core/manifest/dash/translation/manifests/DashPlaylistTranslatorTask.d.ts +0 -3
- package/types/framework/core/manifest/hls/parsing/HlsParsing.package.d.ts +0 -38
- package/types/framework/core/manifest/hls/parsing/HlsParsingTask.d.ts +0 -2
- package/types/framework/core/manifest/hls/root/Hls.package.d.ts +0 -128
- package/types/framework/core/manifest/hls/root/ManifestLoadTask.d.ts +0 -3
- package/types/framework/core/manifest/hls/translation/HlsTranslation.package.d.ts +0 -51
- package/types/framework/core/network/FetchTask.d.ts +0 -5
- package/types/framework/core/network/Network.package.d.ts +0 -79
- package/types/framework/core/presentation/Presentation.package.d.ts +0 -122
- package/types/framework/core/segment-processing/SegmentProcessing.package.d.ts +0 -31
- package/types/framework/core/source/Source.package.d.ts +0 -108
- package/types/framework/core/source/SourceThread.d.ts +0 -2
- package/types/framework/core/source/atoms/PlaybackAtom.d.ts +0 -17
- package/types/framework/core/source/atoms/VideoElementAtom.d.ts +0 -12
- package/types/framework/core/source-api/SourceApi.package.d.ts +0 -56
- package/types/framework/core/source-api/Types.d.ts +0 -8
- package/types/framework/core/sources-api/PlaybackApi.d.ts +0 -9
- package/types/framework/core/sources-api/SourcesApi.package.d.ts +0 -67
- package/types/framework/core/sources-api/Types.d.ts +0 -17
- package/types/framework/core/sources-api/VideoElementUtils.d.ts +0 -8
- package/types/framework/core/trick-play/TrickPlay.package.d.ts +0 -71
- package/types/framework/player/bitmovin-v8-compat/BitmovinUi.package.d.ts +0 -27
- package/types/framework/player/bitmovin-v8-compat/BitmovinV8Core.package.d.ts +0 -28
- package/types/framework/player/bitmovin-v8-compat/BitmovinV8StaticApi.package.d.ts +0 -54
- package/types/framework/player/bitmovin-v8-compat/source-api/BitmovinSourceApi.package.d.ts +0 -83
- package/types/framework/player/bitmovin-v8-compat/video-element/BitmovinVideoElementUtils.package.d.ts +0 -42
- package/types/framework/player/playback-state/PlaybackState.package.d.ts +0 -72
- package/types/framework/player/playback-state/PlaybackStateAtom.d.ts +0 -40
- package/types/framework/player/playback-state/Types.d.ts +0 -7
- package/types/framework/player/playback-state/VideoElementStateAtom.d.ts +0 -9
- package/types/framework/player/playlist/Playlist.package.d.ts +0 -63
- package/types/framework/player/resize-tracker/ResizeObserverEffectFactory.d.ts +0 -11
- package/types/framework/player/resize-tracker/ResizeTracker.package.d.ts +0 -73
- package/types/framework/player/resize-tracker/ResizeTrackerStateAtom.d.ts +0 -9
- package/types/framework/player/resize-tracker/VideoElementStateAtom.d.ts +0 -9
- package/types/framework/player/tv/Tv.package.d.ts +0 -59
- /package/types/{framework/core → packages}/adaptation/RingBufferAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/adaptation/WishDataAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/capabilities/Types.d.ts +0 -0
- /package/types/{framework/core → packages}/core/FrameworkError.d.ts +0 -0
- /package/types/{framework/core → packages}/core/metrics/network/NetworkSampleAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/PrimitiveAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/Symbols.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/data-stream/DataStreamAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/segment/SegmentTypeGuards.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/selection-group/SelectionGroupTypeGuards.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/selection-group/SelectionGroupUtils.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/stream/StreamAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/stream-timeline/StreamSequenceMapAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/core/state/stream-timeline/StreamTimelineMapAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/core/utils/ArrayHelper.d.ts +0 -0
- /package/types/{framework/core → packages}/core/utils/FormatError.d.ts +0 -0
- /package/types/{framework/core → packages}/core/utils/Logger.d.ts +0 -0
- /package/types/{framework/core → packages}/core/utils/RangesHelper.d.ts +0 -0
- /package/types/{framework/core → packages}/core/utils/UrlHelper.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/dash/parsing/Errors.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/dash/parsing/Types.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/parsing/Errors.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/parsing/HlsParsingFunctions.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/parsing/Types.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/parsing/m3u8/AbstractStream.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/parsing/m3u8/DefaultTagParsers.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/parsing/m3u8/TranslatorStream.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/root/Types.d.ts +0 -0
- /package/types/{framework/core → packages}/manifest/hls/translation/Types.d.ts +0 -0
- /package/types/{framework/core → packages}/network/NetworkMessageTypes.d.ts +0 -0
- /package/types/{framework/core → packages}/segment-processing/Errors.d.ts +0 -0
- /package/types/{framework/core → packages}/segment-processing/SegmentProcessingComponent.d.ts +0 -0
- /package/types/{framework/core → packages}/source/atoms/PlayheadAtom.d.ts +0 -0
- /package/types/{framework/core → packages}/source/atoms/StartupOptionsAtom.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/BufferApi.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/DrmApi.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/ManifestApi.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/SubtitleApi.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/enums/PlayerExports.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/AdvertisingConfig.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/DrmConfig.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/NetworkConfig.d.ts +0 -0
- /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/PlayerConfig.d.ts +0 -0
package/COMPAT.md
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# Compatibility with v8
|
|
2
|
+
|
|
3
|
+
PWX is not natively compatible with v8, as it is a new design. However, the package system is powerful enough to allow us to write a compatibility layer, so that is what we have done.
|
|
4
|
+
|
|
5
|
+
Here are some examples of usage:
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## Easy mode
|
|
9
|
+
|
|
10
|
+
Just include the compatibility bundle:
|
|
11
|
+
|
|
12
|
+
```html
|
|
13
|
+
<!DOCTYPE html>
|
|
14
|
+
<html lang="en">
|
|
15
|
+
<head>
|
|
16
|
+
<title>Bitmovin Player Demo</title>
|
|
17
|
+
<meta charset="UTF-8"/>
|
|
18
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
19
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
20
|
+
|
|
21
|
+
<!-- Bitmovin Player X with v8 compatibility packages -->
|
|
22
|
+
<script type="text/javascript" src="./sdk/bundles/playerx-bitmovin-v8.js"></script>
|
|
23
|
+
|
|
24
|
+
<style>
|
|
25
|
+
.container {
|
|
26
|
+
color: white;
|
|
27
|
+
text-align: center;
|
|
28
|
+
max-width: 2200px;
|
|
29
|
+
}
|
|
30
|
+
.container a {
|
|
31
|
+
color: white;
|
|
32
|
+
}
|
|
33
|
+
.container h1 {
|
|
34
|
+
margin-bottom: 22px;
|
|
35
|
+
line-height: 66px;
|
|
36
|
+
}
|
|
37
|
+
.container h2 {
|
|
38
|
+
font-weight: normal;
|
|
39
|
+
margin-bottom: 36px;
|
|
40
|
+
line-height: 26px;
|
|
41
|
+
}
|
|
42
|
+
.player-wrapper {
|
|
43
|
+
width: 95%;
|
|
44
|
+
max-height: 95%;
|
|
45
|
+
margin: 20px auto;
|
|
46
|
+
box-shadow: 0 0 30px rgba(0,0,0,0.7);
|
|
47
|
+
}
|
|
48
|
+
</style>
|
|
49
|
+
</head>
|
|
50
|
+
<body>
|
|
51
|
+
<div class="container">
|
|
52
|
+
<div class="content">
|
|
53
|
+
<div class="player-wrapper">
|
|
54
|
+
<div id="player"></div>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<script type="text/javascript">
|
|
59
|
+
|
|
60
|
+
// This part is just like with the Bitmovin Player v8 :)
|
|
61
|
+
|
|
62
|
+
const conf = {
|
|
63
|
+
key: '<YOUR PLAYER KEY>',
|
|
64
|
+
playback: { autoplay: true, muted: true },
|
|
65
|
+
logs: { level: 'debug' },
|
|
66
|
+
events: {},
|
|
67
|
+
location: {
|
|
68
|
+
ui: 'https://cdn.bitmovin.com/player/web/8/bitmovinplayer-ui.js',
|
|
69
|
+
ui_css: 'https://cdn.bitmovin.com/player/web/8/bitmovinplayer-ui.css',
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const source = {
|
|
74
|
+
hls: 'https://cdn.bitmovin.com/content/assets/streams-sample-video/sintel/m3u8/index.m3u8',
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const player = new bitmovin.player.Player(document.getElementById('player'), conf);
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
player.load(source);
|
|
81
|
+
</script>
|
|
82
|
+
</body>
|
|
83
|
+
</html>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Package mode
|
|
87
|
+
|
|
88
|
+
In this version, you can see we include the individual packages:
|
|
89
|
+
|
|
90
|
+
```html
|
|
91
|
+
<!DOCTYPE html>
|
|
92
|
+
<html lang="en">
|
|
93
|
+
<head>
|
|
94
|
+
<title>Bitmovin Player Demo</title>
|
|
95
|
+
<meta charset="UTF-8"/>
|
|
96
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
97
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
98
|
+
|
|
99
|
+
<!-- Bitmovin Player X with v8 compatibility packages -->
|
|
100
|
+
<script type="text/javascript" src="./sdk/bundles/playerx-bitmovin-v8-core.js"></script>
|
|
101
|
+
<script type="text/javascript" src="./sdk/packages/playerx-data.package.js"></script>
|
|
102
|
+
<script type="text/javascript" src="./sdk/packages/playerx-capabilities.package.js"></script>
|
|
103
|
+
<script type="text/javascript" src="./sdk/packages/playerx-hls.package.js"></script>
|
|
104
|
+
<script type="text/javascript" src="./sdk/packages/playerx-hls-translation.package.js"></script>
|
|
105
|
+
<script type="text/javascript" src="./sdk/packages/playerx-hls-parsing.package.js"></script>
|
|
106
|
+
<script type="text/javascript" src="./sdk/packages/playerx-network.package.js"></script>
|
|
107
|
+
<script type="text/javascript" src="./sdk/packages/playerx-presentation.package.js"></script>
|
|
108
|
+
<script type="text/javascript" src="./sdk/packages/playerx-source.package.js"></script>
|
|
109
|
+
<script type="text/javascript" src="./sdk/packages/playerx-source-api.package.js"></script>
|
|
110
|
+
<script type="text/javascript" src="./sdk/packages/playerx-bitmovin-source-api.package.js"></script>
|
|
111
|
+
<script type="text/javascript" src="./sdk/packages/playerx-bitmovin-v8-static-api.package.js"></script>
|
|
112
|
+
<script type="text/javascript" src="./sdk/packages/playerx-bitmovin-ui.package.js"></script>
|
|
113
|
+
<script type="text/javascript" src="./sdk/packages/playerx-bitmovin-video-element-utils.package.js"></script>
|
|
114
|
+
<script type="text/javascript" src="./sdk/packages/playerx-adaptation.package.js"></script>
|
|
115
|
+
<script type="text/javascript" src="./sdk/packages/playerx-container-mp4.package.js"></script>
|
|
116
|
+
<script type="text/javascript" src="./sdk/packages/playerx-segment-processing.package.js"></script>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<style>
|
|
120
|
+
.container {
|
|
121
|
+
color: white;
|
|
122
|
+
text-align: center;
|
|
123
|
+
max-width: 2200px;
|
|
124
|
+
}
|
|
125
|
+
.container a {
|
|
126
|
+
color: white;
|
|
127
|
+
}
|
|
128
|
+
.container h1 {
|
|
129
|
+
margin-bottom: 22px;
|
|
130
|
+
line-height: 66px;
|
|
131
|
+
}
|
|
132
|
+
.container h2 {
|
|
133
|
+
font-weight: normal;
|
|
134
|
+
margin-bottom: 36px;
|
|
135
|
+
line-height: 26px;
|
|
136
|
+
}
|
|
137
|
+
.player-wrapper {
|
|
138
|
+
width: 95%;
|
|
139
|
+
max-height: 95%;
|
|
140
|
+
margin: 20px auto;
|
|
141
|
+
box-shadow: 0 0 30px rgba(0,0,0,0.7);
|
|
142
|
+
}
|
|
143
|
+
</style>
|
|
144
|
+
</head>
|
|
145
|
+
<body>
|
|
146
|
+
<div class="container">
|
|
147
|
+
<div class="content">
|
|
148
|
+
<div class="player-wrapper">
|
|
149
|
+
<div id="player"></div>
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
<script type="text/javascript">
|
|
154
|
+
|
|
155
|
+
// Once again, just like with v8
|
|
156
|
+
|
|
157
|
+
const conf = {
|
|
158
|
+
key: '<YOUR PLAYER KEY>',
|
|
159
|
+
playback: { autoplay: true, muted: true },
|
|
160
|
+
logs: { level: 'debug' },
|
|
161
|
+
events: {},
|
|
162
|
+
location: {
|
|
163
|
+
ui: 'https://cdn.bitmovin.com/player/web/8/bitmovinplayer-ui.js',
|
|
164
|
+
ui_css: 'https://cdn.bitmovin.com/player/web/8/bitmovinplayer-ui.css',
|
|
165
|
+
},
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const source = {
|
|
169
|
+
hls: 'https://cdn.bitmovin.com/content/assets/streams-sample-video/sintel/m3u8/index.m3u8',
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
const player = new bitmovin.player.Player(document.getElementById('player'), conf);
|
|
173
|
+
|
|
174
|
+
// Slightly different: once the player is instantiated, we can add the packages.
|
|
175
|
+
|
|
176
|
+
player.packages.add(bitmovin.playerx['data'].default);
|
|
177
|
+
player.packages.add(bitmovin.playerx['capabilities'].default);
|
|
178
|
+
player.packages.add(bitmovin.playerx['segment-processing'].default);
|
|
179
|
+
player.packages.add(bitmovin.playerx['container-mp4'].default);
|
|
180
|
+
player.packages.add(bitmovin.playerx['adaptation'].default);
|
|
181
|
+
player.packages.add(bitmovin.playerx['network'].default);
|
|
182
|
+
player.packages.add(bitmovin.playerx['hls'].default);
|
|
183
|
+
player.packages.add(bitmovin.playerx['hls-translation'].default);
|
|
184
|
+
player.packages.add(bitmovin.playerx['hls-parsing'].default);
|
|
185
|
+
player.packages.add(bitmovin.playerx['presentation'].default);
|
|
186
|
+
player.packages.add(bitmovin.playerx['source'].default);
|
|
187
|
+
player.packages.add(bitmovin.playerx['bitmovin-video-element-utils'].default);
|
|
188
|
+
player.packages.add(bitmovin.playerx['source-api'].default);
|
|
189
|
+
player.packages.add(bitmovin.playerx['bitmovin-v8-static-api'].default);
|
|
190
|
+
player.packages.add(bitmovin.playerx['bitmovin-source-api'].default);
|
|
191
|
+
player.packages.add(bitmovin.playerx['bitmovin-ui'].default); // Note the addition of the ui compatibility layer
|
|
192
|
+
|
|
193
|
+
// Load a source as usual
|
|
194
|
+
player.load(source);
|
|
195
|
+
</script>
|
|
196
|
+
</body>
|
|
197
|
+
</html>
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
That's all there is to it!
|
package/README.md
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# player-web-x
|
|
2
|
+
|
|
3
|
+
The next-gen Bitmovin web player.
|
|
4
|
+
|
|
5
|
+
Player Web X (PWX for short) is a new video player for the web that we at Bitmovin developed. It is based on an in-house developed library that we call the Phoenix Framework.
|
|
6
|
+
|
|
7
|
+
The Phoenix Framework is built from the ground up with fundamentals such as structured concurrency, an effect system and a package first architecture in mind that facilitates extensibility. Player Web X is built on a state-driven architecture that is built on top of the framework. Player Web X is developed with focus on making a highly performant player, with different, smaller and purpose built bundles comprised of different packages, as well as a Package API. Package API allows custom behaviours and functionalities to be built externally to the player, enabling our customers to support their own use cases without ever needing our help.
|
|
8
|
+
|
|
9
|
+
Currently, Player Web X has support for HLS streams that use the fMP4 and TS segment formats and partial support for DASH streams and muxed content. For a more detailed and complete listing of supported features, please refer to the [Support Matrix](https://developer.bitmovin.com/playback/docs/player-web-x-support-matrix).
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
To learn more about the framework and the player, checkout our [full documentation](https://developer.bitmovin.com/playback/docs/about-player-web-x).
|
|
13
|
+
|
|
14
|
+
## Getting started
|
|
15
|
+
|
|
16
|
+
The easiest way of getting started with Player Web X is to use our bundles from cdn and a simple HTML page to embed the player on.
|
|
17
|
+
You can read more about different approaches in our [getting started page](https://developer.bitmovin.com/playback/docs/player-web-x-getting-started).
|
|
18
|
+
|
|
19
|
+
But here we will cover only be covering the use of npm package to bundle the player into your app.
|
|
20
|
+
|
|
21
|
+
### Using the npm package
|
|
22
|
+
|
|
23
|
+
This example shows how to use the monolithic player from npm. First you will need to install the player to your project
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
npm install @bitmovin/player-web-x
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { Player } from '@bitmovin/player-web-x/bundles/playerx-hls';
|
|
31
|
+
|
|
32
|
+
const player = Player({
|
|
33
|
+
key: 'YOUR-PLAYER-KEY',
|
|
34
|
+
defaultContainer: document.getElementById('player-container')
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const sourceConfig = {
|
|
38
|
+
resources: [{
|
|
39
|
+
url: 'https://cdn.bitmovin.com/content/assets/streams-sample-video/tos/m3u8/index.m3u8',
|
|
40
|
+
}]
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
player.sources.add(sourceConfig);
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Or using the packages. In this case, you need to merge the API type yourself.
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
|
|
50
|
+
import { Player } from '@bitmovin/player-web-x/bundles/playerx-core';
|
|
51
|
+
import { AdaptationPackage } from '@bitmovin/player-web-x/packages/playerx-adaptation.package';
|
|
52
|
+
import { CapabilitiesPackage } from '@bitmovin/player-web-x/packages/playerx-capabilities.package';
|
|
53
|
+
import { ContainerMp4Package } from '@bitmovin/player-web-x/packages/playerx-container-mp4.package';
|
|
54
|
+
import { DataPackage } from '@bitmovin/player-web-x/packages/playerx-data.package';
|
|
55
|
+
import { HlsPackage } from '@bitmovin/player-web-x/packages/playerx-hls.package';
|
|
56
|
+
import { HlsParsingPackage } from '@bitmovin/player-web-x/packages/playerx-hls-parsing.package';
|
|
57
|
+
import { HlsTranslationPackage } from '@bitmovin/player-web-x/packages/playerx-hls-translation.package';
|
|
58
|
+
import { NetworkPackage } from '@bitmovin/player-web-x/packages/playerx-network.package';
|
|
59
|
+
import { PresentationPackage } from '@bitmovin/player-web-x/packages/playerx-presentation.package';
|
|
60
|
+
import { SegmentProcessingPackage } from '@bitmovin/player-web-x/packages/playerx-segment-processing.package';
|
|
61
|
+
import { SourcePackage } from '@bitmovin/player-web-x/packages/playerx-source.package';
|
|
62
|
+
import { SourcesApiPackage } from '@bitmovin/player-web-x/packages/playerx-sources-api.package';
|
|
63
|
+
import { ViewModePackage } from '@bitmovin/player-web-x/packages/playerx-view-mode.package';
|
|
64
|
+
import type { ViewModeApi } from '@bitmovin/player-web-x/types/framework/core/view-mode/Types'
|
|
65
|
+
import type { SourceApiBase, SourcesApi } from '@bitmovin/player-web-x/types/framework/core/sources-api/Types'
|
|
66
|
+
import type { PlayerApi } from '@bitmovin/player-web-x/types/framework/core/player-api/Types'
|
|
67
|
+
|
|
68
|
+
type SourceApi = SourceApiBase & ViewModeApi;
|
|
69
|
+
type MyApi = PlayerApi & SourcesApi<SourceApi>;
|
|
70
|
+
|
|
71
|
+
const player = Player({
|
|
72
|
+
key: 'YOUR-PLAYER-KEY',
|
|
73
|
+
defaultContainer: document.getElementById('player-container')
|
|
74
|
+
}) as MyApi
|
|
75
|
+
|
|
76
|
+
player.packages.add(CapabilitiesPackage);
|
|
77
|
+
player.packages.add(SegmentProcessingPackage);
|
|
78
|
+
player.packages.add(ContainerMp4Package);
|
|
79
|
+
player.packages.add(DataPackage);
|
|
80
|
+
player.packages.add(NetworkPackage);
|
|
81
|
+
player.packages.add(HlsTranslationPackage);
|
|
82
|
+
player.packages.add(HlsParsingPackage);
|
|
83
|
+
player.packages.add(HlsPackage);
|
|
84
|
+
player.packages.add(PresentationPackage);
|
|
85
|
+
player.packages.add(SourcePackage);
|
|
86
|
+
player.packages.add(AdaptationPackage);
|
|
87
|
+
player.packages.add(SourcesApiPackage);
|
|
88
|
+
player.packages.add(ViewModePackage);
|
|
89
|
+
|
|
90
|
+
const sourceConfig = {
|
|
91
|
+
resources: [{
|
|
92
|
+
url: 'https://cdn.bitmovin.com/content/assets/streams-sample-video/tos/m3u8/index.m3u8',
|
|
93
|
+
}]
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
player.sources.add(sourceConfig);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## Bitmovin Player V8 compatibility
|
|
100
|
+
|
|
101
|
+
To avoid disruption, we have also built a compatibility layer to allow you to use this player as a dropin for v8 - read more about it in our [documentation](https://developer.bitmovin.com/playback/docs/player-web-x-v8-compatibility)
|
|
102
|
+
|
|
103
|
+
## Package template repository
|
|
104
|
+
|
|
105
|
+
To find out more about packages and how to build them, please check out our [package template repository](https://github.com/bitmovin/pwx-package-template). It includes examples of packages of various types, and also functions as a package build system.
|