@amazon/vinyl 1.1.1 → 1.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/dist/index.cjs +276 -200
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +280 -203
- package/dist/index.js.map +4 -4
- package/dist/test/benchmark.es5.js +169 -232
- package/dist/test/benchmark.js +1475 -1933
- package/dist/test/benchmark.js.map +4 -4
- package/dist/test/integ.es5.js +771 -394
- package/dist/test/integ.js +6063 -5273
- package/dist/test/integ.js.map +4 -4
- package/dist/test/jasmineHtml.es5.js +8 -8
- package/dist/test/jasmineHtml.js +8 -4
- package/dist/test/jasmineHtml.js.map +3 -3
- package/dist/types/current/client/Capabilities.d.ts.map +1 -1
- package/dist/types/current/client/CapabilitiesImpl.d.ts.map +1 -1
- package/dist/types/current/drm/DrmController.d.ts +2 -2
- package/dist/types/current/drm/DrmController.d.ts.map +1 -1
- package/dist/types/current/drm/DrmControllerImpl.d.ts +3 -3
- package/dist/types/current/drm/DrmControllerImpl.d.ts.map +1 -1
- package/dist/types/current/drm/DrmControllerImpl.js +7 -7
- package/dist/types/current/drm/DrmKeySystemResolver.d.ts +1 -1
- package/dist/types/current/drm/DrmKeySystemResolver.d.ts.map +1 -1
- package/dist/types/current/drm/DrmKeySystemResolver.js +1 -1
- package/dist/types/current/drm/DrmOptions.d.ts +1 -1
- package/dist/types/current/drm/DrmOptions.d.ts.map +1 -1
- package/dist/types/current/drm/DrmOptions.js +1 -1
- package/dist/types/current/drm/commonEme/CommonEme.d.ts +2 -2
- package/dist/types/current/drm/commonEme/CommonEme.d.ts.map +1 -1
- package/dist/types/current/drm/commonEme/CommonEmeFactory.d.ts +1 -1
- package/dist/types/current/drm/commonEme/CommonEmeFactory.d.ts.map +1 -1
- package/dist/types/current/drm/commonEme/MsCommonEme.d.ts +1 -1
- package/dist/types/current/drm/commonEme/MsCommonEme.d.ts.map +1 -1
- package/dist/types/current/drm/commonEme/MsCommonEme.js +1 -1
- package/dist/types/current/drm/commonEme/StandardCommonEme.d.ts +1 -1
- package/dist/types/current/drm/commonEme/StandardCommonEme.d.ts.map +1 -1
- package/dist/types/current/drm/commonEme/WebKitCommonEme.d.ts +2 -2
- package/dist/types/current/drm/commonEme/WebKitCommonEme.d.ts.map +1 -1
- package/dist/types/current/drm/commonEme/WebKitCommonEme.js +1 -1
- package/dist/types/current/drm/commonEme/createDrmErrorHandler.js +1 -1
- package/dist/types/current/drm/licenseProvider/LicenseProvider.d.ts +1 -1
- package/dist/types/current/drm/licenseProvider/LicenseProvider.d.ts.map +1 -1
- package/dist/types/current/global/environment.d.ts +6 -2
- package/dist/types/current/global/environment.d.ts.map +1 -1
- package/dist/types/current/global/environment.js +4 -3
- package/dist/types/current/global/initializeVinylGlobal.js +1 -1
- package/dist/types/current/patch/media/MediaElementPatchOptions.js +1 -1
- package/dist/types/current/patch/media/patchMediaElement.js +1 -1
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts.map +1 -1
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts.map +1 -1
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts +1 -1
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts.map +1 -1
- package/dist/types/current/playback/PlaybackControllerImpl.js +4 -4
- package/dist/types/current/playback/ReadonlyPlaybackController.d.ts.map +1 -1
- package/dist/types/current/playback/error/ReportableMediaError.js +1 -1
- package/dist/types/current/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
- package/dist/types/current/playback/logging/playbackStateLoggingHandler.d.ts.map +1 -1
- package/dist/types/current/playback/logging/playbackStateLoggingHandler.js +1 -1
- package/dist/types/current/playback/nextHasMetadata.d.ts +1 -1
- package/dist/types/current/playback/nextHasMetadata.d.ts.map +1 -1
- package/dist/types/current/streaming/ContentStream.d.ts +4 -4
- package/dist/types/current/streaming/ContentStream.d.ts.map +1 -1
- package/dist/types/current/streaming/ContentStreamingOptions.d.ts +2 -2
- package/dist/types/current/streaming/ContentStreamingOptions.d.ts.map +1 -1
- package/dist/types/current/streaming/MediaQualityMetadata.d.ts +2 -2
- package/dist/types/current/streaming/MediaQualityMetadata.d.ts.map +1 -1
- package/dist/types/current/streaming/MediaQualityMetadata.js +1 -1
- package/dist/types/current/streaming/MediaTimeline.d.ts +6 -5
- package/dist/types/current/streaming/MediaTimeline.d.ts.map +1 -1
- package/dist/types/current/streaming/SegmentController.d.ts +2 -7
- package/dist/types/current/streaming/SegmentController.d.ts.map +1 -1
- package/dist/types/current/streaming/SegmentControllerImpl.d.ts +5 -6
- package/dist/types/current/streaming/SegmentControllerImpl.d.ts.map +1 -1
- package/dist/types/current/streaming/SegmentControllerImpl.js +5 -15
- package/dist/types/current/streaming/SegmentReference.d.ts +1 -1
- package/dist/types/current/streaming/SegmentReference.d.ts.map +1 -1
- package/dist/types/current/streaming/StreamingEventMap.d.ts +1 -1
- package/dist/types/current/streaming/StreamingEventMap.d.ts.map +1 -1
- package/dist/types/current/streaming/abr/QualitySelector.d.ts +1 -1
- package/dist/types/current/streaming/abr/QualitySelector.d.ts.map +1 -1
- package/dist/types/current/streaming/abr/QualitySelectorImpl.d.ts +18 -3
- package/dist/types/current/streaming/abr/QualitySelectorImpl.d.ts.map +1 -1
- package/dist/types/current/streaming/abr/QualitySelectorImpl.js +8 -2
- package/dist/types/current/streaming/buffering/BufferingController.d.ts +3 -13
- package/dist/types/current/streaming/buffering/BufferingController.d.ts.map +1 -1
- package/dist/types/current/streaming/buffering/BufferingController.js +1 -24
- package/dist/types/current/streaming/buffering/MediaSourceController.d.ts +41 -15
- package/dist/types/current/streaming/buffering/MediaSourceController.d.ts.map +1 -1
- package/dist/types/current/streaming/buffering/MediaSourceController.js +74 -17
- package/dist/types/current/streaming/buffering/SourceBufferController.d.ts +1 -1
- package/dist/types/current/streaming/buffering/SourceBufferController.d.ts.map +1 -1
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts.map +1 -1
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.js +2 -2
- package/dist/types/current/streaming/mediaTimelineFilter.d.ts +3 -3
- package/dist/types/current/streaming/mediaTimelineFilter.d.ts.map +1 -1
- package/dist/types/current/streaming/mediaTimelineFilter.js +1 -1
- package/dist/types/current/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
- package/dist/types/current/streaming/mediaTimelineLanguageFilter.d.ts.map +1 -1
- package/dist/types/current/streaming/util/segment.d.ts +1 -1
- package/dist/types/current/streaming/util/segment.d.ts.map +1 -1
- package/dist/types/current/track/AutoResetController.d.ts +37 -12
- package/dist/types/current/track/AutoResetController.d.ts.map +1 -1
- package/dist/types/current/track/AutoResetController.js +38 -28
- package/dist/types/current/track/Track.d.ts.map +1 -1
- package/dist/types/current/track/TrackBase.d.ts.map +1 -1
- package/dist/types/current/track/TrackController.d.ts +2 -2
- package/dist/types/current/track/TrackController.d.ts.map +1 -1
- package/dist/types/current/track/TrackFactory.d.ts +1 -1
- package/dist/types/current/track/TrackFactory.d.ts.map +1 -1
- package/dist/types/current/track/createSegmentDataProvider.d.ts.map +1 -1
- package/dist/types/current/track/createVinylTrackFactories.d.ts +5 -5
- package/dist/types/current/track/createVinylTrackFactories.d.ts.map +1 -1
- package/dist/types/current/track/createVinylTrackFactories.js +4 -4
- package/dist/types/current/track/dash/DashManifestController.d.ts +1 -1
- package/dist/types/current/track/dash/DashManifestController.d.ts.map +1 -1
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.d.ts.map +1 -1
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.js +1 -1
- package/dist/types/current/track/dash/DashTrack.d.ts +4 -4
- package/dist/types/current/track/dash/DashTrack.d.ts.map +1 -1
- package/dist/types/current/track/dash/DashTrack.js +2 -2
- package/dist/types/current/track/dash/buildDashMediaTimeline.d.ts +2 -2
- package/dist/types/current/track/dash/buildDashMediaTimeline.d.ts.map +1 -1
- package/dist/types/current/track/dash/buildDashMediaTimeline.js +2 -2
- package/dist/types/current/track/dash/createDashContentStreamFactories.d.ts.map +1 -1
- package/dist/types/current/track/dash/createDashContentTypesValue.d.ts +2 -2
- package/dist/types/current/track/dash/createDashContentTypesValue.d.ts.map +1 -1
- package/dist/types/current/track/dash/createDashContentTypesValue.js +1 -1
- package/dist/types/current/track/dash/createDashFactories.d.ts +12 -12
- package/dist/types/current/track/dash/createDashFactories.d.ts.map +1 -1
- package/dist/types/current/track/dash/createDashFactories.js +8 -8
- package/dist/types/current/track/dash/createDashManifestProvider.d.ts +1 -1
- package/dist/types/current/track/dash/createDashManifestProvider.d.ts.map +1 -1
- package/dist/types/current/track/dash/createDashManifestProvider.js +1 -1
- package/dist/types/current/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
- package/dist/types/current/track/dash/createDefaultDashManifestTransformer.d.ts.map +1 -1
- package/dist/types/current/track/dash/createDefaultDashManifestTransformer.js +1 -1
- package/dist/types/current/track/dash/createSegmentControllerFactory.d.ts.map +1 -1
- package/dist/types/current/track/dash/manifestTransformUtils.d.ts +1 -1
- package/dist/types/current/track/dash/manifestTransformUtils.d.ts.map +1 -1
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.d.ts.map +1 -1
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.js +3 -3
- package/dist/types/current/track/dash/urlDashManifestProvider.d.ts +1 -1
- package/dist/types/current/track/dash/urlDashManifestProvider.d.ts.map +1 -1
- package/dist/types/current/track/dash/util/mimeType.d.ts.map +1 -1
- package/dist/types/current/track/dash/util/mimeType.js +1 -1
- package/dist/types/current/track/dash/util/mpd.d.ts +3 -2
- package/dist/types/current/track/dash/util/mpd.d.ts.map +1 -1
- package/dist/types/current/track/dash/util/mpd.js +13 -3
- package/dist/types/current/track/dash/util/uriResolution.js +1 -1
- package/dist/types/current/track/filters/keySystemFilter.d.ts.map +1 -1
- package/dist/types/current/track/filters/resourceTypeFilter.d.ts.map +1 -1
- package/dist/types/current/track/filters/sampleRateFilter.d.ts.map +1 -1
- package/dist/types/current/track/hls/HlsTrack.d.ts.map +1 -1
- package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts +3 -3
- package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts.map +1 -1
- package/dist/types/current/track/hls/buildHlsMediaTimeline.js +16 -14
- package/dist/types/current/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
- package/dist/types/current/track/hls/createDefaultHlsManifestTransformer.d.ts.map +1 -1
- package/dist/types/current/track/hls/createHlsContentStreamFactories.d.ts.map +1 -1
- package/dist/types/current/track/hls/util/hlsSegmentTime.d.ts +1 -1
- package/dist/types/current/track/hls/util/hlsSegmentTime.d.ts.map +1 -1
- package/dist/types/current/track/hls/util/hlsSegmentTime.js +1 -1
- package/dist/types/current/track/mse/MseTrack.d.ts +2 -2
- package/dist/types/current/track/mse/MseTrack.d.ts.map +1 -1
- package/dist/types/current/track/mse/MseTrack.js +2 -1
- package/dist/types/current/track/mse/codec.d.ts.map +1 -1
- package/dist/types/current/track/source/FixedPlaybackQuality.d.ts +1 -1
- package/dist/types/current/track/source/FixedPlaybackQuality.d.ts.map +1 -1
- package/dist/types/current/track/source/SourceObjectTrack.d.ts +4 -4
- package/dist/types/current/track/source/SourceObjectTrack.d.ts.map +1 -1
- package/dist/types/current/track/source/SourceObjectTrack.js +2 -2
- package/dist/types/current/track/source/SourceTrack.d.ts +4 -4
- package/dist/types/current/track/source/SourceTrack.d.ts.map +1 -1
- package/dist/types/current/track/source/SourceTrack.js +2 -2
- package/dist/types/current/track/source/SourceTrackBase.d.ts +2 -2
- package/dist/types/current/track/source/SourceTrackBase.d.ts.map +1 -1
- package/dist/types/current/track/source/SourceTrackBase.js +2 -2
- package/dist/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/types/current/vinyl/ReadonlyPlaybackStreamingState.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylDeps.d.ts +1 -1
- package/dist/types/current/vinyl/VinylDeps.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylOptions.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylPatchOptions.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylPlayer.d.ts +26 -2
- package/dist/types/current/vinyl/VinylPlayer.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylPlayer.js +18 -3
- package/dist/types/current/vinyl/createVinylFactories.d.ts +9 -11
- package/dist/types/current/vinyl/createVinylFactories.d.ts.map +1 -1
- package/dist/types/current/vinyl/createVinylFactories.js +2 -2
- package/dist/types/ts3.7/drm/DrmController.d.ts +2 -2
- package/dist/types/ts3.7/drm/DrmControllerImpl.d.ts +3 -3
- package/dist/types/ts3.7/drm/DrmKeySystemResolver.d.ts +1 -1
- package/dist/types/ts3.7/drm/DrmOptions.d.ts +1 -1
- package/dist/types/ts3.7/drm/commonEme/CommonEme.d.ts +2 -2
- package/dist/types/ts3.7/drm/commonEme/CommonEmeFactory.d.ts +1 -1
- package/dist/types/ts3.7/drm/commonEme/MsCommonEme.d.ts +1 -1
- package/dist/types/ts3.7/drm/commonEme/StandardCommonEme.d.ts +1 -1
- package/dist/types/ts3.7/drm/commonEme/WebKitCommonEme.d.ts +2 -2
- package/dist/types/ts3.7/drm/licenseProvider/LicenseProvider.d.ts +1 -1
- package/dist/types/ts3.7/global/environment.d.ts +6 -2
- package/dist/types/ts3.7/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
- package/dist/types/ts3.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
- package/dist/types/ts3.7/playback/PlaybackControllerImpl.d.ts +1 -1
- package/dist/types/ts3.7/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
- package/dist/types/ts3.7/playback/nextHasMetadata.d.ts +1 -1
- package/dist/types/ts3.7/streaming/ContentStream.d.ts +4 -4
- package/dist/types/ts3.7/streaming/ContentStreamingOptions.d.ts +2 -2
- package/dist/types/ts3.7/streaming/MediaQualityMetadata.d.ts +2 -2
- package/dist/types/ts3.7/streaming/MediaTimeline.d.ts +6 -5
- package/dist/types/ts3.7/streaming/SegmentController.d.ts +2 -7
- package/dist/types/ts3.7/streaming/SegmentControllerImpl.d.ts +5 -6
- package/dist/types/ts3.7/streaming/SegmentReference.d.ts +1 -1
- package/dist/types/ts3.7/streaming/StreamingEventMap.d.ts +1 -1
- package/dist/types/ts3.7/streaming/abr/QualitySelector.d.ts +1 -1
- package/dist/types/ts3.7/streaming/abr/QualitySelectorImpl.d.ts +18 -3
- package/dist/types/ts3.7/streaming/buffering/BufferingController.d.ts +3 -13
- package/dist/types/ts3.7/streaming/buffering/MediaSourceController.d.ts +41 -15
- package/dist/types/ts3.7/streaming/buffering/SourceBufferController.d.ts +1 -1
- package/dist/types/ts3.7/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
- package/dist/types/ts3.7/streaming/mediaTimelineFilter.d.ts +3 -3
- package/dist/types/ts3.7/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
- package/dist/types/ts3.7/streaming/util/segment.d.ts +1 -1
- package/dist/types/ts3.7/track/AutoResetController.d.ts +37 -12
- package/dist/types/ts3.7/track/TrackController.d.ts +2 -2
- package/dist/types/ts3.7/track/TrackFactory.d.ts +1 -1
- package/dist/types/ts3.7/track/createVinylTrackFactories.d.ts +5 -5
- package/dist/types/ts3.7/track/dash/DashManifestController.d.ts +1 -1
- package/dist/types/ts3.7/track/dash/DashTrack.d.ts +4 -4
- package/dist/types/ts3.7/track/dash/buildDashMediaTimeline.d.ts +2 -2
- package/dist/types/ts3.7/track/dash/createDashContentTypesValue.d.ts +2 -2
- package/dist/types/ts3.7/track/dash/createDashFactories.d.ts +12 -12
- package/dist/types/ts3.7/track/dash/createDashManifestProvider.d.ts +1 -1
- package/dist/types/ts3.7/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
- package/dist/types/ts3.7/track/dash/manifestTransformUtils.d.ts +1 -1
- package/dist/types/ts3.7/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
- package/dist/types/ts3.7/track/dash/urlDashManifestProvider.d.ts +1 -1
- package/dist/types/ts3.7/track/dash/util/mpd.d.ts +3 -2
- package/dist/types/ts3.7/track/hls/buildHlsMediaTimeline.d.ts +3 -3
- package/dist/types/ts3.7/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
- package/dist/types/ts3.7/track/hls/util/hlsSegmentTime.d.ts +1 -1
- package/dist/types/ts3.7/track/mse/MseTrack.d.ts +2 -2
- package/dist/types/ts3.7/track/source/FixedPlaybackQuality.d.ts +1 -1
- package/dist/types/ts3.7/track/source/SourceObjectTrack.d.ts +4 -4
- package/dist/types/ts3.7/track/source/SourceTrack.d.ts +4 -4
- package/dist/types/ts3.7/track/source/SourceTrackBase.d.ts +2 -2
- package/dist/types/ts3.7/vinyl/VinylDeps.d.ts +1 -1
- package/dist/types/ts3.7/vinyl/VinylPlayer.d.ts +18 -2
- package/dist/types/ts3.7/vinyl/createVinylFactories.d.ts +9 -11
- package/dist/types/ts4.1/drm/DrmController.d.ts +2 -2
- package/dist/types/ts4.1/drm/DrmControllerImpl.d.ts +3 -3
- package/dist/types/ts4.1/drm/DrmKeySystemResolver.d.ts +1 -1
- package/dist/types/ts4.1/drm/DrmOptions.d.ts +1 -1
- package/dist/types/ts4.1/drm/commonEme/CommonEme.d.ts +2 -2
- package/dist/types/ts4.1/drm/commonEme/CommonEmeFactory.d.ts +1 -1
- package/dist/types/ts4.1/drm/commonEme/MsCommonEme.d.ts +1 -1
- package/dist/types/ts4.1/drm/commonEme/StandardCommonEme.d.ts +1 -1
- package/dist/types/ts4.1/drm/commonEme/WebKitCommonEme.d.ts +2 -2
- package/dist/types/ts4.1/drm/licenseProvider/LicenseProvider.d.ts +1 -1
- package/dist/types/ts4.1/global/environment.d.ts +6 -2
- package/dist/types/ts4.1/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
- package/dist/types/ts4.1/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
- package/dist/types/ts4.1/playback/PlaybackControllerImpl.d.ts +1 -1
- package/dist/types/ts4.1/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
- package/dist/types/ts4.1/playback/nextHasMetadata.d.ts +1 -1
- package/dist/types/ts4.1/streaming/ContentStream.d.ts +4 -4
- package/dist/types/ts4.1/streaming/ContentStreamingOptions.d.ts +2 -2
- package/dist/types/ts4.1/streaming/MediaQualityMetadata.d.ts +2 -2
- package/dist/types/ts4.1/streaming/MediaTimeline.d.ts +6 -5
- package/dist/types/ts4.1/streaming/SegmentController.d.ts +2 -7
- package/dist/types/ts4.1/streaming/SegmentControllerImpl.d.ts +5 -6
- package/dist/types/ts4.1/streaming/SegmentReference.d.ts +1 -1
- package/dist/types/ts4.1/streaming/StreamingEventMap.d.ts +1 -1
- package/dist/types/ts4.1/streaming/abr/QualitySelector.d.ts +1 -1
- package/dist/types/ts4.1/streaming/abr/QualitySelectorImpl.d.ts +18 -3
- package/dist/types/ts4.1/streaming/buffering/BufferingController.d.ts +3 -13
- package/dist/types/ts4.1/streaming/buffering/MediaSourceController.d.ts +41 -15
- package/dist/types/ts4.1/streaming/buffering/SourceBufferController.d.ts +1 -1
- package/dist/types/ts4.1/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
- package/dist/types/ts4.1/streaming/mediaTimelineFilter.d.ts +3 -3
- package/dist/types/ts4.1/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
- package/dist/types/ts4.1/streaming/util/segment.d.ts +1 -1
- package/dist/types/ts4.1/track/AutoResetController.d.ts +37 -12
- package/dist/types/ts4.1/track/TrackController.d.ts +2 -2
- package/dist/types/ts4.1/track/TrackFactory.d.ts +1 -1
- package/dist/types/ts4.1/track/createVinylTrackFactories.d.ts +5 -5
- package/dist/types/ts4.1/track/dash/DashManifestController.d.ts +1 -1
- package/dist/types/ts4.1/track/dash/DashTrack.d.ts +4 -4
- package/dist/types/ts4.1/track/dash/buildDashMediaTimeline.d.ts +2 -2
- package/dist/types/ts4.1/track/dash/createDashContentTypesValue.d.ts +2 -2
- package/dist/types/ts4.1/track/dash/createDashFactories.d.ts +12 -12
- package/dist/types/ts4.1/track/dash/createDashManifestProvider.d.ts +1 -1
- package/dist/types/ts4.1/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
- package/dist/types/ts4.1/track/dash/manifestTransformUtils.d.ts +1 -1
- package/dist/types/ts4.1/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
- package/dist/types/ts4.1/track/dash/urlDashManifestProvider.d.ts +1 -1
- package/dist/types/ts4.1/track/dash/util/mpd.d.ts +3 -2
- package/dist/types/ts4.1/track/hls/buildHlsMediaTimeline.d.ts +3 -3
- package/dist/types/ts4.1/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
- package/dist/types/ts4.1/track/hls/util/hlsSegmentTime.d.ts +1 -1
- package/dist/types/ts4.1/track/mse/MseTrack.d.ts +3 -3
- package/dist/types/ts4.1/track/source/FixedPlaybackQuality.d.ts +1 -1
- package/dist/types/ts4.1/track/source/SourceObjectTrack.d.ts +5 -5
- package/dist/types/ts4.1/track/source/SourceTrack.d.ts +5 -5
- package/dist/types/ts4.1/track/source/SourceTrackBase.d.ts +3 -3
- package/dist/types/ts4.1/vinyl/VinylDeps.d.ts +1 -1
- package/dist/types/ts4.1/vinyl/VinylPlayer.d.ts +18 -2
- package/dist/types/ts4.1/vinyl/createVinylFactories.d.ts +9 -11
- package/dist/types/ts4.7/drm/DrmController.d.ts +2 -2
- package/dist/types/ts4.7/drm/DrmControllerImpl.d.ts +3 -3
- package/dist/types/ts4.7/drm/DrmKeySystemResolver.d.ts +1 -1
- package/dist/types/ts4.7/drm/DrmOptions.d.ts +1 -1
- package/dist/types/ts4.7/drm/commonEme/CommonEme.d.ts +2 -2
- package/dist/types/ts4.7/drm/commonEme/CommonEmeFactory.d.ts +1 -1
- package/dist/types/ts4.7/drm/commonEme/MsCommonEme.d.ts +1 -1
- package/dist/types/ts4.7/drm/commonEme/StandardCommonEme.d.ts +1 -1
- package/dist/types/ts4.7/drm/commonEme/WebKitCommonEme.d.ts +2 -2
- package/dist/types/ts4.7/drm/licenseProvider/LicenseProvider.d.ts +1 -1
- package/dist/types/ts4.7/global/environment.d.ts +6 -2
- package/dist/types/ts4.7/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
- package/dist/types/ts4.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
- package/dist/types/ts4.7/playback/PlaybackControllerImpl.d.ts +1 -1
- package/dist/types/ts4.7/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
- package/dist/types/ts4.7/playback/nextHasMetadata.d.ts +1 -1
- package/dist/types/ts4.7/streaming/ContentStream.d.ts +4 -4
- package/dist/types/ts4.7/streaming/ContentStreamingOptions.d.ts +2 -2
- package/dist/types/ts4.7/streaming/MediaQualityMetadata.d.ts +2 -2
- package/dist/types/ts4.7/streaming/MediaTimeline.d.ts +6 -5
- package/dist/types/ts4.7/streaming/SegmentController.d.ts +2 -7
- package/dist/types/ts4.7/streaming/SegmentControllerImpl.d.ts +5 -6
- package/dist/types/ts4.7/streaming/SegmentReference.d.ts +1 -1
- package/dist/types/ts4.7/streaming/StreamingEventMap.d.ts +1 -1
- package/dist/types/ts4.7/streaming/abr/QualitySelector.d.ts +1 -1
- package/dist/types/ts4.7/streaming/abr/QualitySelectorImpl.d.ts +18 -3
- package/dist/types/ts4.7/streaming/buffering/BufferingController.d.ts +3 -13
- package/dist/types/ts4.7/streaming/buffering/MediaSourceController.d.ts +41 -15
- package/dist/types/ts4.7/streaming/buffering/SourceBufferController.d.ts +1 -1
- package/dist/types/ts4.7/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
- package/dist/types/ts4.7/streaming/mediaTimelineFilter.d.ts +3 -3
- package/dist/types/ts4.7/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
- package/dist/types/ts4.7/streaming/util/segment.d.ts +1 -1
- package/dist/types/ts4.7/track/AutoResetController.d.ts +37 -12
- package/dist/types/ts4.7/track/TrackController.d.ts +2 -2
- package/dist/types/ts4.7/track/TrackFactory.d.ts +1 -1
- package/dist/types/ts4.7/track/createVinylTrackFactories.d.ts +5 -5
- package/dist/types/ts4.7/track/dash/DashManifestController.d.ts +1 -1
- package/dist/types/ts4.7/track/dash/DashTrack.d.ts +4 -4
- package/dist/types/ts4.7/track/dash/buildDashMediaTimeline.d.ts +2 -2
- package/dist/types/ts4.7/track/dash/createDashContentTypesValue.d.ts +2 -2
- package/dist/types/ts4.7/track/dash/createDashFactories.d.ts +12 -12
- package/dist/types/ts4.7/track/dash/createDashManifestProvider.d.ts +1 -1
- package/dist/types/ts4.7/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
- package/dist/types/ts4.7/track/dash/manifestTransformUtils.d.ts +1 -1
- package/dist/types/ts4.7/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
- package/dist/types/ts4.7/track/dash/urlDashManifestProvider.d.ts +1 -1
- package/dist/types/ts4.7/track/dash/util/mpd.d.ts +3 -2
- package/dist/types/ts4.7/track/hls/buildHlsMediaTimeline.d.ts +3 -3
- package/dist/types/ts4.7/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
- package/dist/types/ts4.7/track/hls/util/hlsSegmentTime.d.ts +1 -1
- package/dist/types/ts4.7/track/mse/MseTrack.d.ts +2 -2
- package/dist/types/ts4.7/track/source/FixedPlaybackQuality.d.ts +1 -1
- package/dist/types/ts4.7/track/source/SourceObjectTrack.d.ts +4 -4
- package/dist/types/ts4.7/track/source/SourceTrack.d.ts +4 -4
- package/dist/types/ts4.7/track/source/SourceTrackBase.d.ts +2 -2
- package/dist/types/ts4.7/vinyl/VinylDeps.d.ts +1 -1
- package/dist/types/ts4.7/vinyl/VinylPlayer.d.ts +26 -2
- package/dist/types/ts4.7/vinyl/createVinylFactories.d.ts +9 -11
- package/dist/unit/types/current/streaming/MediaTimeline.test.js +6 -1
- package/dist/unit/types/current/streaming/MseTrack.test.js +4 -0
- package/dist/unit/types/current/streaming/SegmentControllerImpl.test.js +3 -33
- package/dist/unit/types/current/streaming/abr/QualitySelectorImpl.test.js +73 -0
- package/dist/unit/types/current/streaming/buffering/BufferingController.test.js +1 -41
- package/dist/unit/types/current/streaming/buffering/MediaSourceController.test.js +97 -17
- package/dist/unit/types/current/streaming/createDefaultMediaTimelineTransformer.test.js +6 -0
- package/dist/unit/types/current/streaming/mediaTimelineFilter.test.js +2 -0
- package/dist/unit/types/current/streaming/mediaTimelineLanguageFilter.test.js +7 -0
- package/dist/unit/types/current/track/AutoResetController.test.js +134 -22
- package/dist/unit/types/current/track/dash/createDashContentStreamFactories.test.js +5 -1
- package/dist/unit/types/current/track/dash/createSegmentControllerFactory.test.js +5 -1
- package/dist/unit/types/current/track/dash/util/mpd.test.js +29 -0
- package/dist/unit/types/current/track/hls/buildHlsMediaTimeline.test.js +16 -8
- package/dist/unit/types/current/track/hls/createHlsContentStreamFactories.test.js +5 -1
- package/dist/unit/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/unit/types/current/vinyl/VinylPlayer.test.js +35 -0
- package/dist/vinylTestUtil/index.js +20 -14
- package/dist/vinylTestUtil/index.js.map +2 -2
- package/dist/vinylTestUtil/types/current/media/FrequencyAnalyzer.js +1 -1
- package/dist/vinylTestUtil/types/current/mediaSource/ControlledMediaSource.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/dash/mockDashManifest.d.ts +12 -12
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.js +7 -7
- package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.d.ts +0 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.js +0 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.js +0 -1
- package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.d.ts +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.js +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.d.ts +5 -5
- package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.js +11 -7
- package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
- package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.js +11 -7
- package/dist/vinylTestUtil/types/current/player/createVinylSuite.js +1 -1
- package/dist/vinylTestUtil/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.js +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlays.js +2 -2
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.js +1 -2
- package/dist/vinylTestUtil/types/ts3.7/mock/dash/mockDashManifest.d.ts +12 -12
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts3.7/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/MockSegmentController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts3.7/mock/track/MockAutoResetController.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/track/dash/createMockDashDependencies.d.ts +5 -5
- package/dist/vinylTestUtil/types/ts3.7/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
- package/dist/vinylTestUtil/types/ts4.1/mock/dash/mockDashManifest.d.ts +12 -12
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts4.1/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/MockSegmentController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.1/mock/track/MockAutoResetController.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/track/dash/createMockDashDependencies.d.ts +5 -5
- package/dist/vinylTestUtil/types/ts4.1/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
- package/dist/vinylTestUtil/types/ts4.7/mock/dash/mockDashManifest.d.ts +12 -12
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts4.7/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/MockSegmentController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.7/mock/track/MockAutoResetController.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/track/dash/createMockDashDependencies.d.ts +5 -5
- package/dist/vinylTestUtil/types/ts4.7/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
- package/docs/USAGE.md +33 -0
- package/package.json +13 -15
|
@@ -2,8 +2,8 @@ import type { Unsubscribe } from '@amazon/vinyl-util';
|
|
|
2
2
|
import { type Disposable, EventHostImpl } from '@amazon/vinyl-util';
|
|
3
3
|
import type { CommonEme, CommonMediaEncryptedEvent, CommonMediaKeys, CommonMediaKeySession, CommonMediaKeySessionEventMap, CommonMediaKeySystemAccess } from './CommonEme';
|
|
4
4
|
import { MediaKeySessionErrorType } from './CommonEme';
|
|
5
|
-
import type { DrmKeySystem } from '
|
|
6
|
-
import type { EncryptedInitData } from '
|
|
5
|
+
import type { DrmKeySystem } from '../DrmKeySystem';
|
|
6
|
+
import type { EncryptedInitData } from './EncryptedInitData';
|
|
7
7
|
import type { DrmInitDataType } from '../../streaming/DrmInitDataType';
|
|
8
8
|
declare global {
|
|
9
9
|
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Maybe, type ReadonlyAbort } from '@amazon/vinyl-util';
|
|
2
|
-
import type { DrmKeySystem } from '
|
|
2
|
+
import type { DrmKeySystem } from '../DrmKeySystem';
|
|
3
3
|
import { type ObjectSchema } from '@amazon/vinyl-validation';
|
|
4
4
|
/**
|
|
5
5
|
* LicenseProvider handles requesting DRM licenses for specific key systems.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
var __VINYL_VERSION__: string | undefined;
|
|
3
|
+
}
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
5
|
+
* `globalThis.__VINYL_VERSION__` is replaced at build time with the package.version via
|
|
6
|
+
* esbuild's `define` option. In unit tests and unbundled dev builds the replacement does not
|
|
7
|
+
* happen and the global is undefined, so we fall through to a placeholder version.
|
|
4
8
|
*/
|
|
5
9
|
export declare const vinylVersion: import("@amazon/vinyl-util").Version;
|
|
6
10
|
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HtmlMediaElementPatch } from '
|
|
1
|
+
import type { HtmlMediaElementPatch } from '../HtmlMediaElementPatch';
|
|
2
2
|
/**
|
|
3
3
|
* The number of timeupdate events stuck at the same position before attempting to jiggle the playhead.
|
|
4
4
|
* @private
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventHostImpl, type ReadonlyRanges } from '@amazon/vinyl-util';
|
|
2
2
|
import { type PlaybackController } from './PlaybackController';
|
|
3
3
|
import { type PlaybackControllerEventMap, PlaybackReadyState } from './ReadonlyPlaybackController';
|
|
4
|
-
import type { LoudnessNormalizationController } from '
|
|
4
|
+
import type { LoudnessNormalizationController } from './loudness/LoudnessNormalizationController';
|
|
5
5
|
export interface PlaybackControllerImplOptions {
|
|
6
6
|
/**
|
|
7
7
|
* An affordance when comparing the last currentTime and the new currentTime after a seek.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Disposable } from '@amazon/vinyl-util';
|
|
2
|
-
import type { ReadonlyPlaybackController } from '
|
|
2
|
+
import type { ReadonlyPlaybackController } from '../ReadonlyPlaybackController';
|
|
3
3
|
/**
|
|
4
4
|
* The number of seconds to throttle timeupdate logs.
|
|
5
5
|
* Logs will not be emitted for timeupdate events less than this interval.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PlaybackControllerEventMap, ReadonlyPlaybackController } from '
|
|
1
|
+
import type { PlaybackControllerEventMap, ReadonlyPlaybackController } from './ReadonlyPlaybackController';
|
|
2
2
|
import { type AnyRecord, type NextEventAsPromiseOptions } from '@amazon/vinyl-util';
|
|
3
3
|
export declare function nextHasMetadata(controller: ReadonlyPlaybackController, options?: NextEventAsPromiseOptions<PlaybackControllerEventMap, 'loadedMetadata'>): Promise<AnyRecord>;
|
|
4
4
|
//# sourceMappingURL=nextHasMetadata.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Disposable, EventHostImpl, type Maybe, type ReadonlyEventHost, type ReadonlyRanges } from '@amazon/vinyl-util';
|
|
2
|
-
import type { StreamingEventMap } from '
|
|
3
|
-
import type { SegmentController } from '
|
|
4
|
-
import type { BufferingController } from '
|
|
5
|
-
import type { ContentType, MediaQualityMetadata } from '
|
|
2
|
+
import type { StreamingEventMap } from './StreamingEventMap';
|
|
3
|
+
import type { SegmentController } from './SegmentController';
|
|
4
|
+
import type { BufferingController } from './buffering/BufferingController';
|
|
5
|
+
import type { ContentType, MediaQualityMetadata } from './MediaQualityMetadata';
|
|
6
6
|
import { type Factories } from '@amazon/vinyl-di';
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new ContentStream for the given content type.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SegmentControllerImplOptions } from '
|
|
2
|
-
import type { BufferingControllerImplOptions } from '
|
|
1
|
+
import type { SegmentControllerImplOptions } from './SegmentControllerImpl';
|
|
2
|
+
import type { BufferingControllerImplOptions } from './buffering/BufferingController';
|
|
3
3
|
export interface ContentStreamingOptions {
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for the segment controller.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Maybe, type MutableDeep } from '@amazon/vinyl-util';
|
|
2
2
|
import type { ObjectSchema } from '@amazon/vinyl-validation';
|
|
3
|
-
import { type DescriptorRecord } from '
|
|
4
|
-
import type { DrmInitDataType } from '
|
|
3
|
+
import { type DescriptorRecord } from './DescriptorRecord';
|
|
4
|
+
import type { DrmInitDataType } from './DrmInitDataType';
|
|
5
5
|
import type { CencEncryptionScheme } from '../drm/CencEncryptionScheme';
|
|
6
6
|
import { DrmKeySystem } from '../drm/DrmKeySystem';
|
|
7
7
|
import type { FrameRate } from '@amazon/vinyl-mpd-parser';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { SegmentReference } from '
|
|
2
|
-
import type { SegmentDataProvider } from '
|
|
3
|
-
import type { MediaQualityMetadata } from '
|
|
1
|
+
import type { SegmentReference } from './SegmentReference';
|
|
2
|
+
import type { SegmentDataProvider } from './SegmentDataSlot';
|
|
3
|
+
import type { MediaQualityMetadata } from './MediaQualityMetadata';
|
|
4
4
|
/**
|
|
5
5
|
* Represents a single quality within a period, providing access to its metadata
|
|
6
6
|
* and segment data.
|
|
@@ -34,9 +34,10 @@ export interface MediaTimeline {
|
|
|
34
34
|
readonly minBufferTime: number;
|
|
35
35
|
/**
|
|
36
36
|
* The total duration of the media, in seconds.
|
|
37
|
-
* Returns
|
|
37
|
+
* Returns `Infinity` for live streams.
|
|
38
|
+
* Rejects when there are no segments to derive a duration from.
|
|
38
39
|
*/
|
|
39
|
-
getDuration
|
|
40
|
+
getDuration(): Promise<number>;
|
|
40
41
|
}
|
|
41
42
|
/**
|
|
42
43
|
* Gets the period spanning the given presentation time.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnyRecord, Disposable, ReadonlyAbort, ReadonlyEventHost, ReadonlyRanges } from '@amazon/vinyl-util';
|
|
2
|
-
import type { SegmentReference } from '
|
|
2
|
+
import type { SegmentReference } from './SegmentReference';
|
|
3
3
|
import type { ChangeEvent } from '../event/ChangeEvent';
|
|
4
|
-
import type { MediaQualityMetadata } from '
|
|
4
|
+
import type { MediaQualityMetadata } from './MediaQualityMetadata';
|
|
5
5
|
/**
|
|
6
6
|
* Forward-snap tolerance, in seconds, applied when looking up a segment by time.
|
|
7
7
|
*
|
|
@@ -48,11 +48,6 @@ export interface ReadonlySegmentController extends ReadonlyEventHost<SegmentCont
|
|
|
48
48
|
* The most recently requested quality metadata.
|
|
49
49
|
*/
|
|
50
50
|
readonly streamingQuality: MediaQualityMetadata | null;
|
|
51
|
-
/**
|
|
52
|
-
* The duration of the media, in seconds.
|
|
53
|
-
* Returns null if duration cannot be determined.
|
|
54
|
-
*/
|
|
55
|
-
getDuration(): Promise<number | null>;
|
|
56
51
|
/**
|
|
57
52
|
* Returns a Promise for a segment covering the given time, with quality chosen by
|
|
58
53
|
* the configured `QualitySelector`. Resolves to `null` if no media exists at that
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { EventHostImpl, type ReadonlyAbort, type ReadonlyRanges } from '@amazon/vinyl-util';
|
|
2
2
|
import type { ReadonlyPlaybackController } from '../playback/ReadonlyPlaybackController';
|
|
3
|
-
import { type PrefetchOptions, type SegmentController, type SegmentControllerEventMap } from '
|
|
4
|
-
import type { SegmentReference } from '
|
|
5
|
-
import type { ContentType, MediaQualityMetadata } from '
|
|
3
|
+
import { type PrefetchOptions, type SegmentController, type SegmentControllerEventMap } from './SegmentController';
|
|
4
|
+
import type { SegmentReference } from './SegmentReference';
|
|
5
|
+
import type { ContentType, MediaQualityMetadata } from './MediaQualityMetadata';
|
|
6
6
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
7
|
-
import type { MediaTimeline } from '
|
|
8
|
-
import type { QualitySelector } from '
|
|
7
|
+
import type { MediaTimeline } from './MediaTimeline';
|
|
8
|
+
import type { QualitySelector } from './abr/QualitySelector';
|
|
9
9
|
/**
|
|
10
10
|
* The interval to check if additional segments should be prefetched.
|
|
11
11
|
*/
|
|
@@ -73,7 +73,6 @@ export declare class SegmentControllerImpl extends EventHostImpl<SegmentControll
|
|
|
73
73
|
private _cachedPeriod;
|
|
74
74
|
constructor(deps: SegmentControllerImplDeps, contentType: ContentType, options?: Partial<SegmentControllerImplOptions>);
|
|
75
75
|
get error(): Error | null;
|
|
76
|
-
getDuration(): Promise<number | null>;
|
|
77
76
|
/**
|
|
78
77
|
* Gets the period at the given time, using a cache for the last returned period.
|
|
79
78
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ChangeEvent } from '../event/ChangeEvent';
|
|
2
|
-
import type { ContentType, MediaQualityMetadata } from '
|
|
2
|
+
import type { ContentType, MediaQualityMetadata } from './MediaQualityMetadata';
|
|
3
3
|
import type { BasicErrorEvent } from '../event/BasicErrorEvent';
|
|
4
4
|
import type { AnyRecord } from '@amazon/vinyl-util';
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { PrefetchState, QualitySelector } from '
|
|
2
|
-
import { type Disposable, type LogTarget } from '@amazon/vinyl-util';
|
|
1
|
+
import type { PrefetchState, QualitySelector } from './QualitySelector';
|
|
2
|
+
import { type Disposable, type LogTarget, type Maybe } from '@amazon/vinyl-util';
|
|
3
3
|
import { type ObjectSchema } from '@amazon/vinyl-validation';
|
|
4
|
-
import type { MediaQualityMetadata } from '
|
|
4
|
+
import type { MediaQualityMetadata } from '../MediaQualityMetadata';
|
|
5
5
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
6
6
|
export interface QualitySelectorImplOptions {
|
|
7
7
|
/**
|
|
@@ -52,6 +52,20 @@ export interface QualitySelectorImplOptions {
|
|
|
52
52
|
* Default: false
|
|
53
53
|
*/
|
|
54
54
|
readonly restrictDecoderChangeOnAudioAbrUp?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Maximum bandwidth in bits per second a quality may use to be selectable.
|
|
57
|
+
*
|
|
58
|
+
* Soft cap: if no qualities fit within the limit (including when set to 0),
|
|
59
|
+
* the quality with the lowest bandwidth is selected so playback is still
|
|
60
|
+
* possible.
|
|
61
|
+
*
|
|
62
|
+
* Has no effect when {@link strategy} is {@link AbrStrategy.LOWEST} or
|
|
63
|
+
* {@link AbrStrategy.HIGHEST}, since those strategies pin the selection
|
|
64
|
+
* regardless of bandwidth.
|
|
65
|
+
*
|
|
66
|
+
* Default: null (no limit).
|
|
67
|
+
*/
|
|
68
|
+
readonly maxBandwidth?: Maybe<number>;
|
|
55
69
|
}
|
|
56
70
|
export declare enum AbrStrategy {
|
|
57
71
|
/**
|
|
@@ -82,6 +96,7 @@ export declare const defaultQualitySelectorImplOptions: {
|
|
|
82
96
|
readonly bandwidthMultiplierLow: 0.4;
|
|
83
97
|
readonly bandwidthMultiplierHigh: 0.9;
|
|
84
98
|
readonly restrictDecoderChangeOnAudioAbrUp: false;
|
|
99
|
+
readonly maxBandwidth: null;
|
|
85
100
|
};
|
|
86
101
|
export interface QualitySelectorImplDeps {
|
|
87
102
|
readonly options: ObservableValue<QualitySelectorImplOptions>;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { type AnyRecord, type Clearable, type Disposable, EventHostImpl, type ReadonlyEventHost } from '@amazon/vinyl-util';
|
|
2
2
|
import type { ReadonlyPlaybackController } from '../../playback/ReadonlyPlaybackController';
|
|
3
3
|
import type { SourceBufferController } from './SourceBufferController';
|
|
4
|
-
import type { ReadonlySegmentController } from '
|
|
4
|
+
import type { ReadonlySegmentController } from '../SegmentController';
|
|
5
5
|
import type { BasicErrorEvent } from '../../event/BasicErrorEvent';
|
|
6
6
|
import type { ChangeEvent } from '../../event/ChangeEvent';
|
|
7
|
-
import type { ContentType, MediaQualityMetadata } from '
|
|
8
|
-
import { type MediaSourceController } from '
|
|
9
|
-
/**
|
|
10
|
-
* Chrome 52 has decoding errors when duration is set to the mediaPresentationDuration.
|
|
11
|
-
* Adds a slight padding as a workaround.
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
export declare const DURATION_PADDING = 0.1;
|
|
7
|
+
import type { ContentType, MediaQualityMetadata } from '../MediaQualityMetadata';
|
|
8
|
+
import { type MediaSourceController } from './MediaSourceController';
|
|
15
9
|
/**
|
|
16
10
|
* The interval to throttle polling the buffer.
|
|
17
11
|
* Reset after a seek.
|
|
@@ -170,10 +164,6 @@ export declare class BufferingControllerImpl extends EventHostImpl<BufferingCont
|
|
|
170
164
|
* Returns true if there are active operations.
|
|
171
165
|
*/
|
|
172
166
|
get busy(): boolean;
|
|
173
|
-
/**
|
|
174
|
-
* Enqueues a duration update.
|
|
175
|
-
*/
|
|
176
|
-
private refreshDuration;
|
|
177
167
|
/**
|
|
178
168
|
* Resets the throttle and polls the buffer on the next frame.
|
|
179
169
|
*/
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { type AnyRecord, type Disposable, EventHostImpl, type Json, type LogTarget, type ReadonlyEventHost, ReportableError } from '@amazon/vinyl-util';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
3
|
+
import type { ContentTypesValue } from '../ContentTypesValue';
|
|
3
4
|
import type { BasicErrorEvent } from '../../event/BasicErrorEvent';
|
|
4
|
-
import type { ContentType } from '
|
|
5
|
+
import type { ContentType } from '../MediaQualityMetadata';
|
|
6
|
+
import type { MediaTimeline } from '../MediaTimeline';
|
|
7
|
+
/**
|
|
8
|
+
* Chrome 52 has decoding errors when duration is set to the mediaPresentationDuration.
|
|
9
|
+
* Adds a slight padding as a workaround.
|
|
10
|
+
* @private
|
|
11
|
+
*/
|
|
12
|
+
export declare const DURATION_PADDING = 0.1;
|
|
5
13
|
export interface SourceBufferRef extends Disposable {
|
|
6
14
|
/**
|
|
7
15
|
* The source buffer.
|
|
@@ -22,7 +30,8 @@ export interface MediaSourceControllerEventMap {
|
|
|
22
30
|
*/
|
|
23
31
|
readonly sourceOpen: AnyRecord;
|
|
24
32
|
/**
|
|
25
|
-
* All source buffers have been created
|
|
33
|
+
* All source buffers have been created, the media source duration has been set, and data
|
|
34
|
+
* may be appended.
|
|
26
35
|
*/
|
|
27
36
|
readonly readyToAppend: AnyRecord;
|
|
28
37
|
/**
|
|
@@ -35,20 +44,12 @@ export interface ReadonlyMediaSourceController extends ReadonlyEventHost<MediaSo
|
|
|
35
44
|
* Returns the parent media source ready state.
|
|
36
45
|
*/
|
|
37
46
|
readonly readyState: ReadyState;
|
|
38
|
-
/**
|
|
39
|
-
* Gets the media source's duration.
|
|
40
|
-
*/
|
|
41
|
-
readonly duration: number;
|
|
42
47
|
/**
|
|
43
48
|
* True if all source buffers have been created and data may be appended.
|
|
44
49
|
*/
|
|
45
50
|
readonly readyToAppend: boolean;
|
|
46
51
|
}
|
|
47
52
|
export interface MediaSourceController extends ReadonlyMediaSourceController {
|
|
48
|
-
/**
|
|
49
|
-
* Sets/gets the media source's duration.
|
|
50
|
-
*/
|
|
51
|
-
duration: number;
|
|
52
53
|
/**
|
|
53
54
|
* Constructs a new SourceBuffer with the given content type and mime type.
|
|
54
55
|
*/
|
|
@@ -72,21 +73,46 @@ export interface MediaSourceControllerImplDeps {
|
|
|
72
73
|
* Provides the streams that must be created before appending.
|
|
73
74
|
*/
|
|
74
75
|
readonly contentTypesValue: ContentTypesValue;
|
|
76
|
+
/**
|
|
77
|
+
* The media timeline used to determine duration.
|
|
78
|
+
*/
|
|
79
|
+
readonly mediaTimelineTransformed: ObservableValue<Promise<MediaTimeline>>;
|
|
75
80
|
}
|
|
76
81
|
export declare class MediaSourceControllerImpl extends EventHostImpl<MediaSourceControllerEventMap> implements MediaSourceController, LogTarget {
|
|
82
|
+
private readonly deps;
|
|
77
83
|
get [Symbol.toStringTag](): string;
|
|
78
|
-
private
|
|
84
|
+
private readonly sourceBuffers;
|
|
79
85
|
private readonly mediaSource;
|
|
80
86
|
private readonly disposer;
|
|
81
87
|
private contentTypes;
|
|
88
|
+
private durationSet;
|
|
89
|
+
/**
|
|
90
|
+
* Token for the in-flight duration update; used to discard stale results when
|
|
91
|
+
* the timeline changes or the source closes mid-fetch.
|
|
92
|
+
*/
|
|
93
|
+
private durationToken;
|
|
82
94
|
constructor(deps: MediaSourceControllerImplDeps);
|
|
95
|
+
private get sourceBufferCount();
|
|
96
|
+
private readonly errorHandler;
|
|
97
|
+
/**
|
|
98
|
+
* Subscription to mediaTimelineTransformed; only attached while the media source is open
|
|
99
|
+
* so the timeline pipeline isn't forced to evaluate before the source has opened.
|
|
100
|
+
*/
|
|
101
|
+
private timelineSub;
|
|
83
102
|
private initializeEvents;
|
|
84
|
-
|
|
85
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Sets the duration on the media source from the current media timeline.
|
|
105
|
+
* Live streams use LIVE_DURATION since not all browsers support +Infinity duration.
|
|
106
|
+
*
|
|
107
|
+
* MSE throws InvalidStateError if duration is set while any source buffer is updating,
|
|
108
|
+
* so we wait for all tracked source buffers to be idle first.
|
|
109
|
+
*/
|
|
110
|
+
private refreshDuration;
|
|
86
111
|
get readyState(): ReadyState;
|
|
87
112
|
createSourceBuffer(contentType: ContentType, mimeType: string): SourceBufferRef;
|
|
88
113
|
/**
|
|
89
|
-
* Emits a 'readyToAppend' event if all source buffers have been created
|
|
114
|
+
* Emits a 'readyToAppend' event if all source buffers have been created and the duration
|
|
115
|
+
* has been applied to the media source.
|
|
90
116
|
*/
|
|
91
117
|
private readonly checkReady;
|
|
92
118
|
endOfStream(error?: EndOfStreamError): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Disposable, type LogTarget, type ReadonlyRanges, type Task } from '@amazon/vinyl-util';
|
|
2
2
|
import type { MediaSourceController } from './MediaSourceController';
|
|
3
|
-
import type { ContentType } from '
|
|
3
|
+
import type { ContentType } from '../MediaQualityMetadata';
|
|
4
4
|
export declare const APPEND_WINDOW_START_OFFSET = 0.05;
|
|
5
5
|
export declare const APPEND_WINDOW_END_OFFSET = 0.01;
|
|
6
6
|
export declare const READY_TO_APPEND_TIMEOUT = 30;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
2
2
|
import type { Capabilities } from '../client/Capabilities';
|
|
3
3
|
import type { DrmController } from '../drm/DrmController';
|
|
4
|
-
import type { MediaTimeline } from '
|
|
4
|
+
import type { MediaTimeline } from './MediaTimeline';
|
|
5
5
|
export interface DefaultMediaTimelineTransformerDeps {
|
|
6
6
|
readonly capabilities: Capabilities;
|
|
7
7
|
readonly drmController: DrmController;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { MediaTimeline } from '
|
|
2
|
-
import type { MediaQualityMetadata } from '
|
|
1
|
+
import type { MediaTimeline } from './MediaTimeline';
|
|
2
|
+
import type { MediaQualityMetadata } from './MediaQualityMetadata';
|
|
3
3
|
import type { FilterPredicate, FilterPredicateAsync, Maybe } from '@amazon/vinyl-util';
|
|
4
4
|
/**
|
|
5
5
|
* Filters qualities in a MediaTimeline using a synchronous predicate.
|
|
@@ -14,5 +14,5 @@ export declare function filterTimelineQualitiesAsync(filter: FilterPredicateAsyn
|
|
|
14
14
|
/**
|
|
15
15
|
* Creates a language filter predicate for use with filterTimelineQualities.
|
|
16
16
|
*/
|
|
17
|
-
export { createLanguageFilter } from '
|
|
17
|
+
export { createLanguageFilter } from './mediaTimelineLanguageFilter';
|
|
18
18
|
//# sourceMappingURL=mediaTimelineFilter.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MediaQualityMetadata } from '
|
|
1
|
+
import type { MediaQualityMetadata } from './MediaQualityMetadata';
|
|
2
2
|
import type { FilterPredicate } from '@amazon/vinyl-util';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a filter predicate that keeps qualities matching the preferred language.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MediaSegmentMetadata } from '
|
|
1
|
+
import type { MediaSegmentMetadata } from '../SegmentReference';
|
|
2
2
|
/**
|
|
3
3
|
* Returns the segment whose range covers `time` (`startTime <= time < endTime`), or
|
|
4
4
|
* — when `affordance > 0` — the next segment if `time` falls within `affordance`
|
|
@@ -1,35 +1,59 @@
|
|
|
1
1
|
import { type AnyRecord, type Clearable, type Disposable, EventHostImpl, type ReadonlyEventHost } from '@amazon/vinyl-util';
|
|
2
2
|
import type { PlaybackController } from '../playback/PlaybackController';
|
|
3
|
+
import type { ChangeEvent } from '../event/ChangeEvent';
|
|
3
4
|
export interface AutoResetControllerEventMap {
|
|
4
5
|
/**
|
|
5
6
|
* Notifies that playback errors should be reset and retried.
|
|
6
7
|
*/
|
|
7
8
|
readonly reset: AnyRecord;
|
|
9
|
+
/**
|
|
10
|
+
* Dispatched when {@link AutoResetController.resetPending} changes.
|
|
11
|
+
*/
|
|
12
|
+
readonly resetPendingChange: ChangeEvent<boolean>;
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
|
-
* Notifies when playback should be reset and retried
|
|
15
|
+
* Notifies when playback should be reset and retried after a transient,
|
|
16
|
+
* potentially-recoverable error.
|
|
11
17
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* -
|
|
18
|
+
* Once an eligible error is set, the controller watches for opportunities
|
|
19
|
+
* to emit a `reset` event:
|
|
20
|
+
* - Immediately when the network transitions back to online
|
|
21
|
+
* - After a timeout interval, if online and retries are not exhausted
|
|
15
22
|
* - Immediately on user playback actions (play, pause, seeking, playing)
|
|
16
23
|
*
|
|
17
|
-
* Each error triggers a single timeout. If another error occurs
|
|
18
|
-
* setError
|
|
24
|
+
* Each error triggers a single retry timeout. If another error occurs
|
|
25
|
+
* after a reset, {@link AutoResetController.setError} should be called again
|
|
26
|
+
* to schedule the next retry attempt.
|
|
19
27
|
*/
|
|
20
28
|
export interface AutoResetController extends ReadonlyEventHost<AutoResetControllerEventMap>, Clearable {
|
|
21
29
|
/**
|
|
22
|
-
* Sets the current playback error and begins
|
|
30
|
+
* Sets the current playback error and, if eligible, begins watching for
|
|
31
|
+
* retry opportunities.
|
|
32
|
+
*
|
|
33
|
+
* An error is eligible when it is a {@link RequestError} that did not
|
|
34
|
+
* receive an HTTP response (i.e. `response == null`), indicating a
|
|
35
|
+
* transient network failure such as connection loss or DNS failure.
|
|
36
|
+
* All other errors — including HTTP failures with a response (4xx/5xx),
|
|
37
|
+
* and non-RequestError errors — are ignored, since those are unlikely
|
|
38
|
+
* to recover on their own.
|
|
23
39
|
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
40
|
+
* Subsequent calls while an error is already set are ignored until the
|
|
41
|
+
* error is cleared via a reset emission or {@link Clearable.clear}.
|
|
26
42
|
*
|
|
27
|
-
* After a reset, if another error occurs, this method should
|
|
28
|
-
* to schedule the next retry attempt.
|
|
43
|
+
* After a reset, if another eligible error occurs, this method should
|
|
44
|
+
* be called again to schedule the next retry attempt.
|
|
29
45
|
*
|
|
30
46
|
* @param error The error to monitor for retry opportunities
|
|
31
47
|
*/
|
|
32
48
|
setError(error: Error): void;
|
|
49
|
+
/**
|
|
50
|
+
* True while an eligible error is being watched and a `reset` event
|
|
51
|
+
* may still be emitted. Becomes false once the error is cleared, a
|
|
52
|
+
* reset is emitted, or all retries are exhausted.
|
|
53
|
+
*
|
|
54
|
+
* Listen to `resetPendingChange` events for changes.
|
|
55
|
+
*/
|
|
56
|
+
readonly resetPending: boolean;
|
|
33
57
|
}
|
|
34
58
|
export interface AutoResetControllerImplDeps {
|
|
35
59
|
readonly playbackController: PlaybackController;
|
|
@@ -74,7 +98,8 @@ export declare class AutoResetControllerImpl extends EventHostImpl<AutoResetCont
|
|
|
74
98
|
private disposer;
|
|
75
99
|
constructor(deps: AutoResetControllerImplDeps, options?: Partial<AutoResetControllerImplOptions>);
|
|
76
100
|
setError(error: Error): void;
|
|
77
|
-
|
|
101
|
+
get resetPending(): boolean;
|
|
102
|
+
private setResetPending;
|
|
78
103
|
private reset;
|
|
79
104
|
clear(): void;
|
|
80
105
|
get disposed(): boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type AnyRecord, type Disposable, EventHostImpl, type Maybe, type ReadonlyEventHost } from '@amazon/vinyl-util';
|
|
2
2
|
import type { PlaybackController } from '../playback/PlaybackController';
|
|
3
|
-
import type { ReadonlyTrack, TrackUri } from '
|
|
4
|
-
import type { TrackFactory, TrackLoadOptions } from '
|
|
3
|
+
import type { ReadonlyTrack, TrackUri } from './Track';
|
|
4
|
+
import type { TrackFactory, TrackLoadOptions } from './TrackFactory';
|
|
5
5
|
import type { ChangeEvent } from '../event/ChangeEvent';
|
|
6
6
|
export interface TrackControllerEventMap<TrackLoadOptionsType extends TrackLoadOptions> {
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AnyRecord, Maybe, ReadonlyRecord } from '@amazon/vinyl-util';
|
|
2
2
|
import type { ObjectSchema } from '@amazon/vinyl-validation';
|
|
3
|
-
import type { Track, TrackTypeId, TrackUri } from '
|
|
3
|
+
import type { Track, TrackTypeId, TrackUri } from './Track';
|
|
4
4
|
export interface TrackLoadOptions {
|
|
5
5
|
/**
|
|
6
6
|
* The track type, used to map to a track factory.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type SourceObjectTrackDeps, type SourceObjectTrackLoadOptions } from '
|
|
2
|
-
import { type SourceTrackDeps, type SourceTrackLoadOptions } from '
|
|
3
|
-
import type { TrackFactory } from '
|
|
4
|
-
import { type DashTrackFactoryDeps, type DashTrackLoadOptions } from '
|
|
5
|
-
import { type HlsTrackFactoryDeps, type HlsTrackLoadOptions } from '
|
|
1
|
+
import { type SourceObjectTrackDeps, type SourceObjectTrackLoadOptions } from './source/SourceObjectTrack';
|
|
2
|
+
import { type SourceTrackDeps, type SourceTrackLoadOptions } from './source/SourceTrack';
|
|
3
|
+
import type { TrackFactory } from './TrackFactory';
|
|
4
|
+
import { type DashTrackFactoryDeps, type DashTrackLoadOptions } from './dash/DashTrack';
|
|
5
|
+
import { type HlsTrackFactoryDeps, type HlsTrackLoadOptions } from './hls/HlsTrack';
|
|
6
6
|
export interface VinylTrackFactoryDeps extends SourceTrackDeps, SourceObjectTrackDeps, DashTrackFactoryDeps, HlsTrackFactoryDeps {
|
|
7
7
|
}
|
|
8
8
|
export type VinylTrackLoadOptions = SourceObjectTrackLoadOptions | SourceTrackLoadOptions | DashTrackLoadOptions | HlsTrackLoadOptions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DashManifestData, DashManifestProvider } from '
|
|
1
|
+
import type { DashManifestData, DashManifestProvider } from './DashManifestProvider';
|
|
2
2
|
import type { ManifestController } from '../../streaming/ManifestController';
|
|
3
3
|
export type DashManifestController = ManifestController<Promise<DashManifestData>>;
|
|
4
4
|
export interface DashManifestControllerImplDeps {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type TrackBaseOptions } from '
|
|
1
|
+
import { type TrackBaseOptions } from '../TrackBase';
|
|
2
2
|
import { type DashManifestProvider, type DashManifestData } from './DashManifestProvider';
|
|
3
3
|
import type { DashManifestController } from './DashManifestController';
|
|
4
|
-
import type { TrackFactory, TrackLoadOptions } from '
|
|
4
|
+
import type { TrackFactory, TrackLoadOptions } from '../TrackFactory';
|
|
5
5
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
6
6
|
import { type Maybe, type RequestInitOptions } from '@amazon/vinyl-util';
|
|
7
7
|
import { type Factories } from '@amazon/vinyl-di';
|
|
8
|
-
import type { DashMediaQualityMetadataResolver } from '
|
|
9
|
-
import { type MseTrackDeps } from '
|
|
8
|
+
import type { DashMediaQualityMetadataResolver } from './DashMediaQualityMetadataResolver';
|
|
9
|
+
import { type MseTrackDeps } from '../mse/MseTrack';
|
|
10
10
|
import type { MediaTimeline } from '../../streaming/MediaTimeline';
|
|
11
11
|
export interface DashTrackLoadOptions extends TrackLoadOptions {
|
|
12
12
|
readonly type: 'dash';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { DashManifestData } from '
|
|
1
|
+
import type { DashManifestData } from './DashManifestProvider';
|
|
2
2
|
import type { MediaTimeline } from '../../streaming/MediaTimeline';
|
|
3
|
-
import { type DashSegmentProviderDeps } from '
|
|
3
|
+
import { type DashSegmentProviderDeps } from './timeline/DashRepresentationSegmentProvider';
|
|
4
4
|
export type BuildDashMediaTimelineDeps = DashSegmentProviderDeps;
|
|
5
5
|
/**
|
|
6
6
|
* Builds a MediaTimeline from a Dash manifest.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DashManifestData } from '
|
|
2
|
-
import type { DashMediaQualityMetadataResolver } from '
|
|
1
|
+
import type { DashManifestData } from './DashManifestProvider';
|
|
2
|
+
import type { DashMediaQualityMetadataResolver } from './DashMediaQualityMetadataResolver';
|
|
3
3
|
import type { ContentTypesValue } from '../../streaming/ContentTypesValue';
|
|
4
4
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
5
5
|
export interface DashContentTypesValueDeps {
|