@amazon/vinyl 1.1.0 → 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/README.md +49 -8
- 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
|
@@ -1,36 +1,60 @@
|
|
|
1
1
|
import type { AnyRecord, Clearable, Disposable, ReadonlyEventHost } from '@amazon/vinyl-util';
|
|
2
2
|
import { EventHostImpl } from '@amazon/vinyl-util';
|
|
3
3
|
import type { PlaybackController } from '../playback/PlaybackController';
|
|
4
|
+
import type { ChangeEvent } from '../event/ChangeEvent';
|
|
4
5
|
export interface AutoResetControllerEventMap {
|
|
5
6
|
/**
|
|
6
7
|
* Notifies that playback errors should be reset and retried.
|
|
7
8
|
*/
|
|
8
9
|
readonly reset: AnyRecord;
|
|
10
|
+
/**
|
|
11
|
+
* Dispatched when {@link AutoResetController.resetPending} changes.
|
|
12
|
+
*/
|
|
13
|
+
readonly resetPendingChange: ChangeEvent<boolean>;
|
|
9
14
|
}
|
|
10
15
|
/**
|
|
11
|
-
* Notifies when playback should be reset and retried
|
|
16
|
+
* Notifies when playback should be reset and retried after a transient,
|
|
17
|
+
* potentially-recoverable error.
|
|
12
18
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* -
|
|
19
|
+
* Once an eligible error is set, the controller watches for opportunities
|
|
20
|
+
* to emit a `reset` event:
|
|
21
|
+
* - Immediately when the network transitions back to online
|
|
22
|
+
* - After a timeout interval, if online and retries are not exhausted
|
|
16
23
|
* - Immediately on user playback actions (play, pause, seeking, playing)
|
|
17
24
|
*
|
|
18
|
-
* Each error triggers a single timeout. If another error occurs
|
|
19
|
-
* setError
|
|
25
|
+
* Each error triggers a single retry timeout. If another error occurs
|
|
26
|
+
* after a reset, {@link AutoResetController.setError} should be called again
|
|
27
|
+
* to schedule the next retry attempt.
|
|
20
28
|
*/
|
|
21
29
|
export interface AutoResetController extends ReadonlyEventHost<AutoResetControllerEventMap>, Clearable {
|
|
22
30
|
/**
|
|
23
|
-
* Sets the current playback error and begins
|
|
31
|
+
* Sets the current playback error and, if eligible, begins watching for
|
|
32
|
+
* retry opportunities.
|
|
33
|
+
*
|
|
34
|
+
* An error is eligible when it is a {@link RequestError} that did not
|
|
35
|
+
* receive an HTTP response (i.e. `response == null`), indicating a
|
|
36
|
+
* transient network failure such as connection loss or DNS failure.
|
|
37
|
+
* All other errors — including HTTP failures with a response (4xx/5xx),
|
|
38
|
+
* and non-RequestError errors — are ignored, since those are unlikely
|
|
39
|
+
* to recover on their own.
|
|
24
40
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
41
|
+
* Subsequent calls while an error is already set are ignored until the
|
|
42
|
+
* error is cleared via a reset emission or {@link Clearable.clear}.
|
|
27
43
|
*
|
|
28
|
-
* After a reset, if another error occurs, this method should
|
|
29
|
-
* to schedule the next retry attempt.
|
|
44
|
+
* After a reset, if another eligible error occurs, this method should
|
|
45
|
+
* be called again to schedule the next retry attempt.
|
|
30
46
|
*
|
|
31
47
|
* @param error The error to monitor for retry opportunities
|
|
32
48
|
*/
|
|
33
49
|
setError(error: Error): void;
|
|
50
|
+
/**
|
|
51
|
+
* True while an eligible error is being watched and a `reset` event
|
|
52
|
+
* may still be emitted. Becomes false once the error is cleared, a
|
|
53
|
+
* reset is emitted, or all retries are exhausted.
|
|
54
|
+
*
|
|
55
|
+
* Listen to `resetPendingChange` events for changes.
|
|
56
|
+
*/
|
|
57
|
+
readonly resetPending: boolean;
|
|
34
58
|
}
|
|
35
59
|
export interface AutoResetControllerImplDeps {
|
|
36
60
|
readonly playbackController: PlaybackController;
|
|
@@ -75,7 +99,8 @@ export declare class AutoResetControllerImpl extends EventHostImpl<AutoResetCont
|
|
|
75
99
|
private disposer;
|
|
76
100
|
constructor(deps: AutoResetControllerImplDeps, options?: Partial<AutoResetControllerImplOptions>);
|
|
77
101
|
setError(error: Error): void;
|
|
78
|
-
|
|
102
|
+
get resetPending(): boolean;
|
|
103
|
+
private setResetPending;
|
|
79
104
|
private reset;
|
|
80
105
|
clear(): void;
|
|
81
106
|
get disposed(): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AnyRecord, Disposable, Maybe, ReadonlyEventHost } from '@amazon/vinyl-util';
|
|
2
2
|
import { EventHostImpl } from '@amazon/vinyl-util';
|
|
3
3
|
import type { PlaybackController } from '../playback/PlaybackController';
|
|
4
|
-
import type { ReadonlyTrack, TrackUri } from '
|
|
5
|
-
import type { TrackFactory, TrackLoadOptions } from '
|
|
4
|
+
import type { ReadonlyTrack, TrackUri } from './Track';
|
|
5
|
+
import type { TrackFactory, TrackLoadOptions } from './TrackFactory';
|
|
6
6
|
import type { ChangeEvent } from '../event/ChangeEvent';
|
|
7
7
|
export interface TrackControllerEventMap<TrackLoadOptionsType extends TrackLoadOptions> {
|
|
8
8
|
/**
|
|
@@ -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, SourceObjectTrackLoadOptions } from '
|
|
2
|
-
import type { SourceTrackDeps, SourceTrackLoadOptions } from '
|
|
3
|
-
import type { TrackFactory } from '
|
|
4
|
-
import type { DashTrackFactoryDeps, DashTrackLoadOptions } from '
|
|
5
|
-
import type { HlsTrackFactoryDeps, HlsTrackLoadOptions } from '
|
|
1
|
+
import type { SourceObjectTrackDeps, SourceObjectTrackLoadOptions } from './source/SourceObjectTrack';
|
|
2
|
+
import type { SourceTrackDeps, SourceTrackLoadOptions } from './source/SourceTrack';
|
|
3
|
+
import type { TrackFactory } from './TrackFactory';
|
|
4
|
+
import type { DashTrackFactoryDeps, DashTrackLoadOptions } from './dash/DashTrack';
|
|
5
|
+
import type { HlsTrackFactoryDeps, 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, 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, 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 {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { DashTrackLoadOptions } from '
|
|
1
|
+
import type { DashTrackLoadOptions } from './DashTrack';
|
|
2
2
|
import type { Maybe, RequestInterceptor } from '@amazon/vinyl-util';
|
|
3
|
-
import { createDefaultDashManifestTransformer } from '
|
|
3
|
+
import { createDefaultDashManifestTransformer } from './createDefaultDashManifestTransformer';
|
|
4
4
|
import { createMediaSource } from '../../util/media/mediaSource';
|
|
5
|
-
import type { DashMediaQualityMetadataResolverDeps } from '
|
|
5
|
+
import type { DashMediaQualityMetadataResolverDeps } from './DashMediaQualityMetadataResolver';
|
|
6
6
|
import type { MediaSourceControllerImplDeps } from '../../streaming/buffering/MediaSourceController';
|
|
7
7
|
import { MediaSourceControllerImpl } from '../../streaming/buffering/MediaSourceController';
|
|
8
8
|
import type { PlaybackController } from '../../playback/PlaybackController';
|
|
9
|
-
import type { DashManifestController, DashManifestControllerImplDeps } from '
|
|
9
|
+
import type { DashManifestController, DashManifestControllerImplDeps } from './DashManifestController';
|
|
10
10
|
import type { DrmKeySystemResolver } from '../../drm/DrmKeySystemResolver';
|
|
11
11
|
import type { DrmController } from '../../drm/DrmController';
|
|
12
12
|
import type { Capabilities } from '../../client/Capabilities';
|
|
@@ -15,12 +15,12 @@ import { QualitySelectorImpl } from '../../streaming/abr/QualitySelectorImpl';
|
|
|
15
15
|
import type { PlaybackSource } from '../../playback/PlaybackSource';
|
|
16
16
|
import { createContentStreamFactory } from '../../streaming/ContentStream';
|
|
17
17
|
import type { ContentStreamingOptions } from '../../streaming/ContentStreamingOptions';
|
|
18
|
-
import { createDashContentTypesValue } from '
|
|
18
|
+
import { createDashContentTypesValue } from './createDashContentTypesValue';
|
|
19
19
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
20
20
|
import type { VinylOptions } from '../../vinyl/VinylOptions';
|
|
21
|
-
import type { BuildDashMediaTimelineDeps } from '
|
|
21
|
+
import type { BuildDashMediaTimelineDeps } from './buildDashMediaTimeline';
|
|
22
22
|
import { createDefaultMediaTimelineTransformer } from '../../streaming/createDefaultMediaTimelineTransformer';
|
|
23
|
-
import type { DashManifestData } from '
|
|
23
|
+
import type { DashManifestData } from './DashManifestProvider';
|
|
24
24
|
/**
|
|
25
25
|
* Player-level dependencies needed for the Dash-specific factories.
|
|
26
26
|
*/
|
|
@@ -45,20 +45,20 @@ export type DashInitOptions = {
|
|
|
45
45
|
*/
|
|
46
46
|
export declare function createDashFactories(options: Maybe<DashInitOptions>): (deps: DashFactoryDeps) => (loadOptions: DashTrackLoadOptions) => {
|
|
47
47
|
contentTypesValue: typeof createDashContentTypesValue;
|
|
48
|
-
baseUrlSelector: () => import("
|
|
48
|
+
baseUrlSelector: () => import("./util/uriResolution").BaseUrlSelector;
|
|
49
49
|
segmentRequestInit: () => Maybe<Readonly<Omit<RequestInit, "signal">>>;
|
|
50
50
|
manifestProvider: (deps: {
|
|
51
51
|
readonly requestInterceptor: RequestInterceptor;
|
|
52
|
-
}) => import("
|
|
52
|
+
}) => import("./DashManifestProvider").DashManifestProvider;
|
|
53
53
|
manifestController: (deps: DashManifestControllerImplDeps) => DashManifestController;
|
|
54
54
|
mediaSourceFactory: () => typeof createMediaSource;
|
|
55
|
-
mediaQualityMetadataResolver: (deps: DashMediaQualityMetadataResolverDeps) => import("
|
|
55
|
+
mediaQualityMetadataResolver: (deps: DashMediaQualityMetadataResolverDeps) => import("./DashMediaQualityMetadataResolver").DashMediaQualityMetadataResolver;
|
|
56
56
|
mediaSourceController: (deps: MediaSourceControllerImplDeps) => MediaSourceControllerImpl;
|
|
57
|
-
createContentStreamFactories: (deps: import("
|
|
57
|
+
createContentStreamFactories: (deps: import("./createDashContentStreamFactories").DashContentStreamTrackDeps) => import("@amazon/vinyl-util").MemoizedFunction & ((contentType: import("../..").ContentType) => {
|
|
58
58
|
sourceBufferControllerFactory: (deps: import("../..").SourceBufferControllerImplDeps) => () => import("../..").SourceBufferControllerImpl;
|
|
59
59
|
bufferingController: (deps: import("../..").BufferingControllerImplDeps) => import("../..").BufferingControllerImpl;
|
|
60
60
|
segmentController: (deps: import("../..").SegmentControllerImplDeps) => import("../..").SegmentControllerImpl;
|
|
61
|
-
mediaSourceController: import("@amazon/vinyl-di").Factory<import("
|
|
61
|
+
mediaSourceController: import("@amazon/vinyl-di").Factory<import("../..").MediaSourceController>;
|
|
62
62
|
playbackController: import("@amazon/vinyl-di").Factory<PlaybackController>;
|
|
63
63
|
mediaTimelineTransformed: import("@amazon/vinyl-di").Factory<ObservableValue<Promise<import("../..").MediaTimeline>>>;
|
|
64
64
|
qualitySelector: import("@amazon/vinyl-di").Factory<import("../..").QualitySelector>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DashTrackLoadOptions } from '
|
|
1
|
+
import type { DashTrackLoadOptions } from './DashTrack';
|
|
2
2
|
import type { RequestInterceptor } from '@amazon/vinyl-util';
|
|
3
3
|
/**
|
|
4
4
|
* Creates a DashManifestProvider which uses the manifestProvider set on the loadOptions, or a urlDashManifestProvider
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
2
|
-
import type { DashManifestData } from '
|
|
2
|
+
import type { DashManifestData } from './DashManifestProvider';
|
|
3
3
|
import type { AdaptationSetType, RepresentationType } from '@amazon/vinyl-mpd-parser';
|
|
4
4
|
import type { Comparator } from '@amazon/vinyl-util';
|
|
5
5
|
export interface DashManifestTransformerDeps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AdaptationSetType, DashManifest, RepresentationType } from '@amazon/vinyl-mpd-parser';
|
|
2
|
-
import type { DashManifestData } from '
|
|
2
|
+
import type { DashManifestData } from './DashManifestProvider';
|
|
3
3
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
4
4
|
import type { Comparator, FilterPredicate, MaybePromise } from '@amazon/vinyl-util';
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { RepresentationType } from '@amazon/vinyl-mpd-parser';
|
|
2
|
-
import type { DashUriResolveDeps } from '
|
|
3
|
-
import type { CreateSegmentDataProviderDeps } from '
|
|
2
|
+
import type { DashUriResolveDeps } from '../util/uriResolution';
|
|
3
|
+
import type { CreateSegmentDataProviderDeps } from '../../createSegmentDataProvider';
|
|
4
4
|
import type { SegmentReference } from '../../../streaming/SegmentReference';
|
|
5
5
|
import type { SegmentDataProvider } from '../../../streaming/SegmentDataSlot';
|
|
6
|
-
import type { DashMediaQualityMetadataResolver } from '
|
|
6
|
+
import type { DashMediaQualityMetadataResolver } from '../DashMediaQualityMetadataResolver';
|
|
7
7
|
export interface DashSegmentProviderDeps extends DashUriResolveDeps, CreateSegmentDataProviderDeps {
|
|
8
8
|
/**
|
|
9
9
|
* Produces abstract metadata from a dash representation.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Maybe } from '@amazon/vinyl-util';
|
|
2
2
|
import type { RequestInitOptions } from '@amazon/vinyl-util';
|
|
3
3
|
import type { RequestInterceptor } from '@amazon/vinyl-util';
|
|
4
|
-
import type { DashManifestProvider } from '
|
|
4
|
+
import type { DashManifestProvider } from './DashManifestProvider';
|
|
5
5
|
/**
|
|
6
6
|
* Creates a DashManifestProvider which performs a request to retrieve a dash manifest.
|
|
7
7
|
* Can be a relative path.
|
|
@@ -74,7 +74,8 @@ export declare function getPeriodAtTime(manifest: DashManifest, time: number): P
|
|
|
74
74
|
export declare function flattenRepresentations(period: PeriodType): RepresentationType[];
|
|
75
75
|
/**
|
|
76
76
|
* Calculates the manifest duration, either from the mediaPresentationDuration or the last period end time.
|
|
77
|
-
*
|
|
77
|
+
* Returns `Infinity` for live (dynamic) presentations.
|
|
78
|
+
* Throws if duration cannot be determined.
|
|
78
79
|
*/
|
|
79
|
-
export declare function calculateDuration(manifest: DashManifest): number
|
|
80
|
+
export declare function calculateDuration(manifest: DashManifest): number;
|
|
80
81
|
//# sourceMappingURL=mpd.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { HlsManifestData } from '
|
|
2
|
-
import type { HlsMediaQualityMetadataResolver } from '
|
|
1
|
+
import type { HlsManifestData } from './HlsManifestProvider';
|
|
2
|
+
import type { HlsMediaQualityMetadataResolver } from './HlsMediaQualityMetadataResolver';
|
|
3
3
|
import type { MediaTimeline } from '../../streaming/MediaTimeline';
|
|
4
|
-
import type { CreateSegmentDataProviderDeps } from '
|
|
4
|
+
import type { CreateSegmentDataProviderDeps } from '../createSegmentDataProvider';
|
|
5
5
|
export interface BuildHlsMediaTimelineDeps extends CreateSegmentDataProviderDeps {
|
|
6
6
|
readonly mediaQualityMetadataResolver: HlsMediaQualityMetadataResolver;
|
|
7
7
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
2
|
-
import type { HlsManifestData } from '
|
|
2
|
+
import type { HlsManifestData } from './HlsManifestProvider';
|
|
3
3
|
export interface HlsManifestTransformerDeps {
|
|
4
4
|
readonly manifestController: ObservableValue<Promise<HlsManifestData>>;
|
|
5
5
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HlsSegment } from '@amazon/vinyl-hls-parser';
|
|
2
2
|
import type { MediaSegmentReference } from '../../../streaming/SegmentReference';
|
|
3
3
|
import type { SegmentDataProvider } from '../../../streaming/SegmentDataSlot';
|
|
4
|
-
import type { CreateSegmentDataProviderDeps } from '
|
|
4
|
+
import type { CreateSegmentDataProviderDeps } from '../../createSegmentDataProvider';
|
|
5
5
|
/**
|
|
6
6
|
* Builds a timeline of MediaSegmentReferences from an HLS media playlist's
|
|
7
7
|
* segment list. Cumulative durations are used to compute start/end times.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { TrackBaseDeps, TrackBaseOptions } from '
|
|
2
|
-
import { TrackBase } from '
|
|
1
|
+
import type { TrackBaseDeps, TrackBaseOptions } from '../TrackBase';
|
|
2
|
+
import { TrackBase } from '../TrackBase';
|
|
3
3
|
import type { ReadonlyRanges, ReadonlySet } from '@amazon/vinyl-util';
|
|
4
|
-
import type { TrackPreloadOptions, TrackTypeId, TrackUri } from '
|
|
4
|
+
import type { TrackPreloadOptions, TrackTypeId, TrackUri } from '../Track';
|
|
5
5
|
import type { ContentType, MediaQualityMetadata } from '../../streaming/MediaQualityMetadata';
|
|
6
6
|
import type { Factories } from '@amazon/vinyl-di';
|
|
7
7
|
import type { ContentStream } from '../../streaming/ContentStream';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TrackEventMap } from '
|
|
1
|
+
import type { TrackEventMap } from '../Track';
|
|
2
2
|
import type { ReadonlySet } from '@amazon/vinyl-util';
|
|
3
3
|
import { EventHostImpl } from '@amazon/vinyl-util';
|
|
4
4
|
import type { PlaybackController } from '../../playback/PlaybackController';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { PlaybackSource } from '../../playback/PlaybackSource';
|
|
2
|
-
import type { TrackTypeId, TrackUri } from '
|
|
3
|
-
import type { TrackBaseDeps } from '
|
|
4
|
-
import type { TrackFactory, TrackLoadOptions } from '
|
|
2
|
+
import type { TrackTypeId, TrackUri } from '../Track';
|
|
3
|
+
import type { TrackBaseDeps } from '../TrackBase';
|
|
4
|
+
import type { TrackFactory, TrackLoadOptions } from '../TrackFactory';
|
|
5
5
|
import type { Maybe } from '@amazon/vinyl-util';
|
|
6
|
-
import type { SourceTrackBaseOptions } from '
|
|
7
|
-
import { SourceTrackBase } from '
|
|
6
|
+
import type { SourceTrackBaseOptions } from './SourceTrackBase';
|
|
7
|
+
import { SourceTrackBase } from './SourceTrackBase';
|
|
8
8
|
/**
|
|
9
9
|
* Dependencies for a SourceObjectTrack.
|
|
10
10
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { TrackTypeId, TrackUri } from '
|
|
2
|
-
import type { TrackBaseDeps } from '
|
|
3
|
-
import type { TrackFactory, TrackLoadOptions } from '
|
|
1
|
+
import type { TrackTypeId, TrackUri } from '../Track';
|
|
2
|
+
import type { TrackBaseDeps } from '../TrackBase';
|
|
3
|
+
import type { TrackFactory, TrackLoadOptions } from '../TrackFactory';
|
|
4
4
|
import type { Maybe } from '@amazon/vinyl-util';
|
|
5
|
-
import type { SourceTrackBaseOptions } from '
|
|
6
|
-
import { SourceTrackBase } from '
|
|
5
|
+
import type { SourceTrackBaseOptions } from './SourceTrackBase';
|
|
6
|
+
import { SourceTrackBase } from './SourceTrackBase';
|
|
7
7
|
import type { PlaybackSource } from '../../playback/PlaybackSource';
|
|
8
8
|
/**
|
|
9
9
|
* Dependencies for a SourceTrack.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { TrackBaseDeps, TrackBaseOptions } from '
|
|
2
|
-
import { TrackBase } from '
|
|
3
|
-
import type { TrackEventMap, TrackPreloadOptions, TrackTypeId, TrackUri } from '
|
|
1
|
+
import type { TrackBaseDeps, TrackBaseOptions } from '../TrackBase';
|
|
2
|
+
import { TrackBase } from '../TrackBase';
|
|
3
|
+
import type { TrackEventMap, TrackPreloadOptions, TrackTypeId, TrackUri } from '../Track';
|
|
4
4
|
import type { Maybe, ReadonlySet } from '@amazon/vinyl-util';
|
|
5
5
|
import type { ContentType, MediaQualityMetadata } from '../../streaming/MediaQualityMetadata';
|
|
6
6
|
import type { ObjectSchema } from '@amazon/vinyl-validation';
|
|
@@ -7,7 +7,7 @@ import type { TrackLoadOptions } from '../track/TrackFactory';
|
|
|
7
7
|
import type { DrmController } from '../drm/DrmController';
|
|
8
8
|
import type { AutoResetController } from '../track/AutoResetController';
|
|
9
9
|
import type { MutableValue } from '@amazon/vinyl-observable';
|
|
10
|
-
import type { VinylOptions } from '
|
|
10
|
+
import type { VinylOptions } from './VinylOptions';
|
|
11
11
|
export interface VinylDeps<TrackLoadOptionsType extends TrackLoadOptions = VinylTrackLoadOptions, OptionsType = VinylOptions> {
|
|
12
12
|
/**
|
|
13
13
|
* A mutable provider for configuration options.
|
|
@@ -12,14 +12,28 @@ import type { DefaultVinylFactories, InferVinylOverrideDependencyType, VinylDepe
|
|
|
12
12
|
import type { VinylDeps } from './VinylDeps';
|
|
13
13
|
import type { Capabilities } from '../client/Capabilities';
|
|
14
14
|
import type { ContentType, MediaQualityMetadata } from '../streaming/MediaQualityMetadata';
|
|
15
|
-
import type { ReadonlyPlaybackStreamingState } from '
|
|
15
|
+
import type { ReadonlyPlaybackStreamingState } from './ReadonlyPlaybackStreamingState';
|
|
16
16
|
import type { StreamingEventMap } from '../streaming/StreamingEventMap';
|
|
17
17
|
import type { InferObservableValueType } from '@amazon/vinyl-observable';
|
|
18
|
-
import type { VinylOptions } from '
|
|
18
|
+
import type { VinylOptions } from './VinylOptions';
|
|
19
|
+
import type { ChangeEvent } from '../event/ChangeEvent';
|
|
19
20
|
/**
|
|
20
21
|
* Events the Vinyl Player emits.
|
|
21
22
|
*/
|
|
22
23
|
export interface VinylPlayerEventMap<TrackLoadOptionsType extends TrackLoadOptions = VinylTrackLoadOptions> extends PlaybackControllerEventMap, TrackControllerEventMap<TrackLoadOptionsType>, StreamingEventMap {
|
|
24
|
+
/**
|
|
25
|
+
* Dispatched when {@link VinylPlayer.resetPending} changes.
|
|
26
|
+
*
|
|
27
|
+
* `current` is true when the player has hit a transient, potentially
|
|
28
|
+
* recoverable error (e.g. a network outage) and an automatic reset
|
|
29
|
+
* attempt is scheduled. `current` is false once the pending reset is
|
|
30
|
+
* emitted, the error is cleared, or all retries are exhausted.
|
|
31
|
+
*
|
|
32
|
+
* If `resetPending` becomes false while {@link VinylPlayer.error} is
|
|
33
|
+
* still non-null, all automatic reset attempts have been exhausted
|
|
34
|
+
* and playback will not recover without user action.
|
|
35
|
+
*/
|
|
36
|
+
readonly resetPendingChange: ChangeEvent<boolean>;
|
|
23
37
|
}
|
|
24
38
|
/**
|
|
25
39
|
* A Vinyl Media Player.
|
|
@@ -33,6 +47,7 @@ export declare class VinylPlayer<TrackLoadOptionsType extends TrackLoadOptions =
|
|
|
33
47
|
private get drmController();
|
|
34
48
|
private get playbackController();
|
|
35
49
|
private get trackController();
|
|
50
|
+
private get autoResetController();
|
|
36
51
|
/**
|
|
37
52
|
* Provides information about the client, such as device and browser capabilities.
|
|
38
53
|
*/
|
|
@@ -75,6 +90,7 @@ export declare class VinylPlayer<TrackLoadOptionsType extends TrackLoadOptions =
|
|
|
75
90
|
get duration(): number;
|
|
76
91
|
get ended(): boolean;
|
|
77
92
|
get error(): (Error | null);
|
|
93
|
+
get resetPending(): boolean;
|
|
78
94
|
get hasMetadata(): boolean;
|
|
79
95
|
get loop(): boolean;
|
|
80
96
|
set loop(value: boolean);
|
|
@@ -20,7 +20,7 @@ import type { AutoResetControllerImplDeps, AutoResetControllerImplOptions } from
|
|
|
20
20
|
import { AutoResetControllerImpl } from '../track/AutoResetController';
|
|
21
21
|
import type { Dependencies, Factories } from '@amazon/vinyl-di';
|
|
22
22
|
import type { ContentStreamingOptions } from '../streaming/ContentStreamingOptions';
|
|
23
|
-
import type { VinylOptions } from '
|
|
23
|
+
import type { VinylOptions } from './VinylOptions';
|
|
24
24
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
25
25
|
/**
|
|
26
26
|
* Configuration used by the default dependency factories for Vinyl.
|
|
@@ -83,15 +83,13 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
|
|
|
83
83
|
}) => LoudnessNormalizationControllerImpl;
|
|
84
84
|
capabilities: (deps: CapabilitiesImplDeps) => CapabilitiesImpl;
|
|
85
85
|
requestInterceptor: () => typeof noop;
|
|
86
|
-
trackFactory: (deps: VinylTrackFactoryDeps) => import("
|
|
86
|
+
trackFactory: (deps: VinylTrackFactoryDeps) => import("..").TrackFactory<import("..").SourceObjectTrackLoadOptions | import("..").SourceTrackLoadOptions | import("..").DashTrackLoadOptions | import("..").HlsTrackLoadOptions>;
|
|
87
87
|
trackController: (deps: TrackControllerImplDeps<any>) => TrackControllerImpl<any>;
|
|
88
|
-
drmKeySystemResolver: () => import("
|
|
88
|
+
drmKeySystemResolver: () => import("..").DrmKeySystemResolver;
|
|
89
89
|
drmController: (deps: DrmControllerImplDeps) => DrmControllerImpl;
|
|
90
90
|
commonEme: typeof commonEmeFactory;
|
|
91
91
|
autoResetController: (deps: AutoResetControllerImplDeps) => AutoResetControllerImpl;
|
|
92
|
-
createDashFactories: (deps: import("
|
|
93
|
-
* Configuration for segmented streaming tracks (hls / dash).
|
|
94
|
-
*/ loadOptions: import("..").DashTrackLoadOptions) => {
|
|
92
|
+
createDashFactories: (deps: import("..").DashFactoryDeps) => (loadOptions: import("..").DashTrackLoadOptions) => {
|
|
95
93
|
contentTypesValue: typeof import("..").createDashContentTypesValue;
|
|
96
94
|
baseUrlSelector: () => import("..").BaseUrlSelector;
|
|
97
95
|
segmentRequestInit: () => import("@amazon/vinyl-util").Maybe<Readonly<Omit<RequestInit, "signal">>>;
|
|
@@ -114,7 +112,7 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
|
|
|
114
112
|
contentStreamFactory: typeof import("..").createContentStreamFactory;
|
|
115
113
|
qualitySelector: (deps: {
|
|
116
114
|
options: ObservableValue<Pick<VinylOptions, "abr">>;
|
|
117
|
-
}) => import("
|
|
115
|
+
}) => import("..").QualitySelectorImpl;
|
|
118
116
|
manifestTransformed: typeof import("..").createDefaultDashManifestTransformer;
|
|
119
117
|
mediaTimeline: (deps: import("..").BuildDashMediaTimelineDeps & {
|
|
120
118
|
readonly manifestTransformed: ObservableValue<Promise<import("..").DashManifestData>>;
|
|
@@ -126,12 +124,12 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
|
|
|
126
124
|
}>>;
|
|
127
125
|
playbackController: import("@amazon/vinyl-di").Factory<import("..").PlaybackController>;
|
|
128
126
|
playbackSource: import("@amazon/vinyl-di").Factory<import("..").PlaybackSource>;
|
|
129
|
-
drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("
|
|
127
|
+
drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("..").DrmKeySystemResolver>;
|
|
130
128
|
requestInterceptor: import("@amazon/vinyl-di").Factory<import("@amazon/vinyl-util").RequestInterceptor>;
|
|
131
129
|
drmController: import("@amazon/vinyl-di").Factory<import("..").DrmController>;
|
|
132
130
|
capabilities: import("@amazon/vinyl-di").Factory<import("..").Capabilities>;
|
|
133
131
|
};
|
|
134
|
-
createHlsFactories: (deps: import("
|
|
132
|
+
createHlsFactories: (deps: import("..").HlsFactoryDeps) => (loadOptions: import("..").HlsTrackLoadOptions) => {
|
|
135
133
|
contentTypesValue: typeof import("..").createHlsContentTypesValue;
|
|
136
134
|
manifestController: () => import("..").HlsManifestControllerImpl;
|
|
137
135
|
manifestTransformed: typeof import("..").createDefaultHlsManifestTransformer;
|
|
@@ -151,7 +149,7 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
|
|
|
151
149
|
contentStreamFactory: typeof import("..").createContentStreamFactory;
|
|
152
150
|
qualitySelector: (deps: {
|
|
153
151
|
options: ObservableValue<Pick<VinylOptions, "abr">>;
|
|
154
|
-
}) => import("
|
|
152
|
+
}) => import("..").QualitySelectorImpl;
|
|
155
153
|
mediaTimeline: (deps: import("..").BuildHlsMediaTimelineDeps & {
|
|
156
154
|
readonly manifestTransformed: ObservableValue<Promise<import("..").HlsManifestData>>;
|
|
157
155
|
}) => ObservableValue<Promise<import("..").MediaTimeline>>;
|
|
@@ -162,7 +160,7 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
|
|
|
162
160
|
}>>;
|
|
163
161
|
playbackController: import("@amazon/vinyl-di").Factory<import("..").PlaybackController>;
|
|
164
162
|
playbackSource: import("@amazon/vinyl-di").Factory<import("..").PlaybackSource>;
|
|
165
|
-
drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("
|
|
163
|
+
drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("..").DrmKeySystemResolver>;
|
|
166
164
|
requestInterceptor: import("@amazon/vinyl-di").Factory<import("@amazon/vinyl-util").RequestInterceptor>;
|
|
167
165
|
drmController: import("@amazon/vinyl-di").Factory<import("..").DrmController>;
|
|
168
166
|
capabilities: import("@amazon/vinyl-di").Factory<import("..").Capabilities>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type AnyRecord, type Maybe, type ReadonlyAbort, type ReadonlyEventHost } from '@amazon/vinyl-util';
|
|
2
2
|
import type { DrmInitDataType } from '../streaming/DrmInitDataType';
|
|
3
|
-
import type { DrmKeySystem } from '
|
|
3
|
+
import type { DrmKeySystem } from './DrmKeySystem';
|
|
4
4
|
import type { MediaFormatMetadata } from '../streaming/MediaQualityMetadata';
|
|
5
5
|
import type { BasicErrorEvent } from '../event/BasicErrorEvent';
|
|
6
|
-
import type { DrmOptions } from '
|
|
6
|
+
import type { DrmOptions } from './DrmOptions';
|
|
7
7
|
export interface DrmControllerEventMap {
|
|
8
8
|
/**
|
|
9
9
|
* A DRM error occurred.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventHostImpl, type Maybe, type ReadonlyAbort } from '@amazon/vinyl-util';
|
|
2
|
-
import { type DrmOptions } from '
|
|
3
|
-
import type { DrmController, DrmControllerEventMap, DrmKeySystemSupport } from '
|
|
4
|
-
import type { CommonEme, CommonMediaKeyMessageEvent, CommonMediaKeys, CommonMediaKeySession } from '
|
|
2
|
+
import { type DrmOptions } from './DrmOptions';
|
|
3
|
+
import type { DrmController, DrmControllerEventMap, DrmKeySystemSupport } from './DrmController';
|
|
4
|
+
import type { CommonEme, CommonMediaKeyMessageEvent, CommonMediaKeys, CommonMediaKeySession } from './commonEme/CommonEme';
|
|
5
5
|
import type { MediaFormatMetadata } from '../streaming/MediaQualityMetadata';
|
|
6
6
|
/**
|
|
7
7
|
* The number of seconds a license request will be allowed before timing out.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReadonlyRecord } from '@amazon/vinyl-util';
|
|
2
|
-
import { DrmKeySystem } from '
|
|
2
|
+
import { DrmKeySystem } from './DrmKeySystem';
|
|
3
3
|
/**
|
|
4
4
|
* Given a ContentProtection schemeIdUri, returns the {@link DrmKeySystem} it represents.
|
|
5
5
|
* Not all scheme ids will match to a DrmKeySystem. If none are matched, null is returned.
|
|
@@ -3,7 +3,7 @@ import type { DrmInitDataType } from '../streaming/DrmInitDataType';
|
|
|
3
3
|
import type { MediaFormatMetadata } from '../streaming/MediaQualityMetadata';
|
|
4
4
|
import { type ObjectSchema, type ValueSchema } from '@amazon/vinyl-validation';
|
|
5
5
|
import { DrmKeySystem } from './DrmKeySystem';
|
|
6
|
-
import { type LicenseProvider, type LicenseServerOptions } from '
|
|
6
|
+
import { type LicenseProvider, type LicenseServerOptions } from './licenseProvider/LicenseProvider';
|
|
7
7
|
/**
|
|
8
8
|
* DrmRobustness is the requested security level for audio or video decryption.
|
|
9
9
|
*/
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* An common interface to unify multiple EME implementations.
|
|
3
3
|
* @module
|
|
4
4
|
*/
|
|
5
|
-
import type { DrmKeySystem } from '
|
|
5
|
+
import type { DrmKeySystem } from '../DrmKeySystem';
|
|
6
6
|
import type { Json, ReadonlyEventHost, Unsubscribe } from '@amazon/vinyl-util';
|
|
7
7
|
import { ReportableError } from '@amazon/vinyl-util';
|
|
8
|
-
import type { EncryptedInitData } from '
|
|
8
|
+
import type { EncryptedInitData } from './EncryptedInitData';
|
|
9
9
|
import type { DrmInitDataType } from '../../streaming/DrmInitDataType';
|
|
10
10
|
import type { BasicErrorEvent } from '../../event/BasicErrorEvent';
|
|
11
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Disposable, EventHostImpl, type Unsubscribe } from '@amazon/vinyl-util';
|
|
2
2
|
import { type CommonEme, type CommonMediaKeys, type CommonMediaKeySession, type CommonMediaKeySessionEventMap, type CommonMediaKeySystemAccess, MediaKeySessionErrorType } from './CommonEme';
|
|
3
|
-
import type { DrmKeySystem } from '
|
|
3
|
+
import type { DrmKeySystem } from '../DrmKeySystem';
|
|
4
4
|
import { type EncryptedInitData } from './EncryptedInitData';
|
|
5
5
|
import type { DrmInitDataType } from '../../streaming/DrmInitDataType';
|
|
6
6
|
declare global {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Disposable, EventHostImpl, type Unsubscribe } from '@amazon/vinyl-util';
|
|
2
2
|
import type { CommonEme, CommonMediaEncryptedEvent, CommonMediaKeys, CommonMediaKeySession, CommonMediaKeySessionEventMap, CommonMediaKeySystemAccess } from './CommonEme';
|
|
3
|
-
import type { DrmKeySystem } from '
|
|
3
|
+
import type { DrmKeySystem } from '../DrmKeySystem';
|
|
4
4
|
import { type EncryptedInitData } from './EncryptedInitData';
|
|
5
5
|
import type { DrmInitDataType } from '../../streaming/DrmInitDataType';
|
|
6
6
|
/**
|