@amazon/vinyl 1.1.1 → 1.2.1
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 +286 -201
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +294 -206
- 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 +5996 -5138
- 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/ad/AdBreakInfo.d.ts +160 -0
- package/dist/types/current/ad/AdBreakInfo.d.ts.map +1 -0
- package/dist/types/current/ad/AdBreakInfo.js +5 -0
- package/dist/types/current/ad/AdController.d.ts +229 -0
- package/dist/types/current/ad/AdController.d.ts.map +1 -0
- package/dist/types/current/ad/AdController.js +19 -0
- package/dist/types/current/ad/AdControllerImpl.d.ts +146 -0
- package/dist/types/current/ad/AdControllerImpl.d.ts.map +1 -0
- package/dist/types/current/ad/AdControllerImpl.js +705 -0
- package/dist/types/current/ad/AdError.d.ts +6 -0
- package/dist/types/current/ad/AdError.d.ts.map +1 -0
- package/dist/types/current/ad/AdError.js +14 -0
- package/dist/types/current/ad/AdsProvider.d.ts +28 -0
- package/dist/types/current/ad/AdsProvider.d.ts.map +1 -0
- package/dist/types/current/ad/AdsProvider.js +5 -0
- package/dist/types/current/ad/defaultAdLoadOptionsResolver.d.ts +12 -0
- package/dist/types/current/ad/defaultAdLoadOptionsResolver.d.ts.map +1 -0
- package/dist/types/current/ad/defaultAdLoadOptionsResolver.js +26 -0
- package/dist/types/current/ad/discoverHlsInterstitials.d.ts +22 -0
- package/dist/types/current/ad/discoverHlsInterstitials.d.ts.map +1 -0
- package/dist/types/current/ad/discoverHlsInterstitials.js +246 -0
- 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 +18 -8
- 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 +2 -2
- 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/AudioOptions.d.ts +39 -0
- package/dist/types/current/streaming/AudioOptions.d.ts.map +1 -0
- package/dist/types/current/streaming/AudioOptions.js +15 -0
- 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/LoadMetric.d.ts +58 -0
- package/dist/types/current/streaming/LoadMetric.d.ts.map +1 -0
- package/dist/types/current/streaming/LoadMetric.js +5 -0
- package/dist/types/current/streaming/ManifestControllerImpl.d.ts +43 -0
- package/dist/types/current/streaming/ManifestControllerImpl.d.ts.map +1 -0
- package/dist/types/current/streaming/ManifestControllerImpl.js +104 -0
- 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/buffering/codecDenylist.d.ts +23 -0
- package/dist/types/current/streaming/buffering/codecDenylist.d.ts.map +1 -0
- package/dist/types/current/streaming/buffering/codecDenylist.js +62 -0
- package/dist/types/current/streaming/createAllowedContentTypesValue.d.ts +30 -0
- package/dist/types/current/streaming/createAllowedContentTypesValue.d.ts.map +1 -0
- package/dist/types/current/streaming/createAllowedContentTypesValue.js +43 -0
- 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/mediaTimelineAccessibilityFilter.d.ts +35 -0
- package/dist/types/current/streaming/mediaTimelineAccessibilityFilter.d.ts.map +1 -0
- package/dist/types/current/streaming/mediaTimelineAccessibilityFilter.js +75 -0
- 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/text/HtmlTextTrackRenderer.d.ts +60 -0
- package/dist/types/current/text/HtmlTextTrackRenderer.d.ts.map +1 -0
- package/dist/types/current/text/HtmlTextTrackRenderer.js +231 -0
- package/dist/types/current/text/SidecarTextTrackController.d.ts +103 -0
- package/dist/types/current/text/SidecarTextTrackController.d.ts.map +1 -0
- package/dist/types/current/text/SidecarTextTrackController.js +250 -0
- package/dist/types/current/text/SidecarTextTrackLoader.d.ts +65 -0
- package/dist/types/current/text/SidecarTextTrackLoader.d.ts.map +1 -0
- package/dist/types/current/text/SidecarTextTrackLoader.js +150 -0
- package/dist/types/current/text/TextTrack.d.ts +179 -0
- package/dist/types/current/text/TextTrack.d.ts.map +1 -0
- package/dist/types/current/text/TextTrack.js +29 -0
- package/dist/types/current/text/TextTrackRenderer.d.ts +24 -0
- package/dist/types/current/text/TextTrackRenderer.d.ts.map +1 -0
- package/dist/types/current/text/TextTrackRenderer.js +5 -0
- package/dist/types/current/text/VttCueStyle.d.ts +41 -0
- package/dist/types/current/text/VttCueStyle.d.ts.map +1 -0
- package/dist/types/current/text/VttCueStyle.js +45 -0
- package/dist/types/current/text/discoverDashTextTracks.d.ts +24 -0
- package/dist/types/current/text/discoverDashTextTracks.d.ts.map +1 -0
- package/dist/types/current/text/discoverDashTextTracks.js +109 -0
- package/dist/types/current/text/discoverHlsTextTracks.d.ts +19 -0
- package/dist/types/current/text/discoverHlsTextTracks.d.ts.map +1 -0
- package/dist/types/current/text/discoverHlsTextTracks.js +49 -0
- package/dist/types/current/text/mediaTextTrackProvider.d.ts +34 -0
- package/dist/types/current/text/mediaTextTrackProvider.d.ts.map +1 -0
- package/dist/types/current/text/mediaTextTrackProvider.js +42 -0
- package/dist/types/current/text/parseWebVtt.d.ts +60 -0
- package/dist/types/current/text/parseWebVtt.d.ts.map +1 -0
- package/dist/types/current/text/parseWebVtt.js +248 -0
- package/dist/types/current/text/pickPreferredTextTrack.d.ts +15 -0
- package/dist/types/current/text/pickPreferredTextTrack.d.ts.map +1 -0
- package/dist/types/current/text/pickPreferredTextTrack.js +71 -0
- 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/SeekRange.d.ts +9 -0
- package/dist/types/current/track/SeekRange.d.ts.map +1 -0
- package/dist/types/current/track/SeekRange.js +5 -0
- 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/HlsManifestData.d.ts +19 -0
- package/dist/types/current/track/hls/HlsManifestData.d.ts.map +1 -0
- package/dist/types/current/track/hls/HlsManifestData.js +5 -0
- 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/createHlsManifestProvider.d.ts +6 -0
- package/dist/types/current/track/hls/createHlsManifestProvider.d.ts.map +1 -0
- package/dist/types/current/track/hls/createHlsManifestProvider.js +9 -0
- 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/inferLoadOptionsFromUri.d.ts +15 -0
- package/dist/types/current/track/inferLoadOptionsFromUri.d.ts.map +1 -0
- package/dist/types/current/track/inferLoadOptionsFromUri.js +55 -0
- 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/util/media/codecOverrides.d.ts +33 -0
- package/dist/types/current/util/media/codecOverrides.d.ts.map +1 -0
- package/dist/types/current/util/media/codecOverrides.js +37 -0
- package/dist/types/current/util/media/codecSupport.d.ts +6 -0
- package/dist/types/current/util/media/codecSupport.d.ts.map +1 -0
- package/dist/types/current/util/media/codecSupport.js +17 -0
- package/dist/types/current/util/media/mimeType.d.ts +8 -0
- package/dist/types/current/util/media/mimeType.d.ts.map +1 -0
- package/dist/types/current/util/media/mimeType.js +13 -0
- 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/ad/AdBreakInfo.d.ts +160 -0
- package/dist/types/ts3.7/ad/AdController.d.ts +243 -0
- package/dist/types/ts3.7/ad/AdControllerImpl.d.ts +146 -0
- package/dist/types/ts3.7/ad/AdError.d.ts +6 -0
- package/dist/types/ts3.7/ad/AdsProvider.d.ts +28 -0
- package/dist/types/ts3.7/ad/defaultAdLoadOptionsResolver.d.ts +12 -0
- package/dist/types/ts3.7/ad/discoverHlsInterstitials.d.ts +22 -0
- 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 +2 -2
- 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/AudioOptions.d.ts +39 -0
- 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/LoadMetric.d.ts +58 -0
- package/dist/types/ts3.7/streaming/ManifestControllerImpl.d.ts +40 -0
- 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/buffering/codecDenylist.d.ts +23 -0
- package/dist/types/ts3.7/streaming/createAllowedContentTypesValue.d.ts +30 -0
- package/dist/types/ts3.7/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
- package/dist/types/ts3.7/streaming/mediaTimelineAccessibilityFilter.d.ts +35 -0
- 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/text/HtmlTextTrackRenderer.d.ts +60 -0
- package/dist/types/ts3.7/text/SidecarTextTrackController.d.ts +103 -0
- package/dist/types/ts3.7/text/SidecarTextTrackLoader.d.ts +65 -0
- package/dist/types/ts3.7/text/TextTrack.d.ts +183 -0
- package/dist/types/ts3.7/text/TextTrackRenderer.d.ts +24 -0
- package/dist/types/ts3.7/text/VttCueStyle.d.ts +41 -0
- package/dist/types/ts3.7/text/discoverDashTextTracks.d.ts +24 -0
- package/dist/types/ts3.7/text/discoverHlsTextTracks.d.ts +19 -0
- package/dist/types/ts3.7/text/mediaTextTrackProvider.d.ts +34 -0
- package/dist/types/ts3.7/text/parseWebVtt.d.ts +60 -0
- package/dist/types/ts3.7/text/pickPreferredTextTrack.d.ts +15 -0
- package/dist/types/ts3.7/track/AutoResetController.d.ts +37 -12
- package/dist/types/ts3.7/track/SeekRange.d.ts +9 -0
- 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/HlsManifestData.d.ts +19 -0
- 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/createHlsManifestProvider.d.ts +6 -0
- package/dist/types/ts3.7/track/hls/util/hlsSegmentTime.d.ts +1 -1
- package/dist/types/ts3.7/track/inferLoadOptionsFromUri.d.ts +15 -0
- 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/util/media/codecOverrides.d.ts +33 -0
- package/dist/types/ts3.7/util/media/codecSupport.d.ts +6 -0
- package/dist/types/ts3.7/util/media/mimeType.d.ts +8 -0
- 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/ad/AdBreakInfo.d.ts +160 -0
- package/dist/types/ts4.1/ad/AdController.d.ts +243 -0
- package/dist/types/ts4.1/ad/AdControllerImpl.d.ts +146 -0
- package/dist/types/ts4.1/ad/AdError.d.ts +6 -0
- package/dist/types/ts4.1/ad/AdsProvider.d.ts +28 -0
- package/dist/types/ts4.1/ad/defaultAdLoadOptionsResolver.d.ts +12 -0
- package/dist/types/ts4.1/ad/discoverHlsInterstitials.d.ts +22 -0
- 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 +2 -2
- 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/AudioOptions.d.ts +39 -0
- 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/LoadMetric.d.ts +58 -0
- package/dist/types/ts4.1/streaming/ManifestControllerImpl.d.ts +40 -0
- 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/buffering/codecDenylist.d.ts +23 -0
- package/dist/types/ts4.1/streaming/createAllowedContentTypesValue.d.ts +30 -0
- package/dist/types/ts4.1/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
- package/dist/types/ts4.1/streaming/mediaTimelineAccessibilityFilter.d.ts +35 -0
- 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/text/HtmlTextTrackRenderer.d.ts +60 -0
- package/dist/types/ts4.1/text/SidecarTextTrackController.d.ts +104 -0
- package/dist/types/ts4.1/text/SidecarTextTrackLoader.d.ts +65 -0
- package/dist/types/ts4.1/text/TextTrack.d.ts +183 -0
- package/dist/types/ts4.1/text/TextTrackRenderer.d.ts +24 -0
- package/dist/types/ts4.1/text/VttCueStyle.d.ts +41 -0
- package/dist/types/ts4.1/text/discoverDashTextTracks.d.ts +24 -0
- package/dist/types/ts4.1/text/discoverHlsTextTracks.d.ts +19 -0
- package/dist/types/ts4.1/text/mediaTextTrackProvider.d.ts +34 -0
- package/dist/types/ts4.1/text/parseWebVtt.d.ts +60 -0
- package/dist/types/ts4.1/text/pickPreferredTextTrack.d.ts +15 -0
- package/dist/types/ts4.1/track/AutoResetController.d.ts +37 -12
- package/dist/types/ts4.1/track/SeekRange.d.ts +9 -0
- 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/HlsManifestData.d.ts +19 -0
- 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/createHlsManifestProvider.d.ts +6 -0
- package/dist/types/ts4.1/track/hls/util/hlsSegmentTime.d.ts +1 -1
- package/dist/types/ts4.1/track/inferLoadOptionsFromUri.d.ts +15 -0
- 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/util/media/codecOverrides.d.ts +33 -0
- package/dist/types/ts4.1/util/media/codecSupport.d.ts +6 -0
- package/dist/types/ts4.1/util/media/mimeType.d.ts +8 -0
- 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/ad/AdBreakInfo.d.ts +160 -0
- package/dist/types/ts4.7/ad/AdController.d.ts +243 -0
- package/dist/types/ts4.7/ad/AdControllerImpl.d.ts +146 -0
- package/dist/types/ts4.7/ad/AdError.d.ts +6 -0
- package/dist/types/ts4.7/ad/AdsProvider.d.ts +28 -0
- package/dist/types/ts4.7/ad/defaultAdLoadOptionsResolver.d.ts +12 -0
- package/dist/types/ts4.7/ad/discoverHlsInterstitials.d.ts +22 -0
- 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 +2 -2
- 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/AudioOptions.d.ts +39 -0
- 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/LoadMetric.d.ts +58 -0
- package/dist/types/ts4.7/streaming/ManifestControllerImpl.d.ts +43 -0
- 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/buffering/codecDenylist.d.ts +23 -0
- package/dist/types/ts4.7/streaming/createAllowedContentTypesValue.d.ts +30 -0
- package/dist/types/ts4.7/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
- package/dist/types/ts4.7/streaming/mediaTimelineAccessibilityFilter.d.ts +35 -0
- 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/text/HtmlTextTrackRenderer.d.ts +60 -0
- package/dist/types/ts4.7/text/SidecarTextTrackController.d.ts +103 -0
- package/dist/types/ts4.7/text/SidecarTextTrackLoader.d.ts +65 -0
- package/dist/types/ts4.7/text/TextTrack.d.ts +183 -0
- package/dist/types/ts4.7/text/TextTrackRenderer.d.ts +24 -0
- package/dist/types/ts4.7/text/VttCueStyle.d.ts +41 -0
- package/dist/types/ts4.7/text/discoverDashTextTracks.d.ts +24 -0
- package/dist/types/ts4.7/text/discoverHlsTextTracks.d.ts +19 -0
- package/dist/types/ts4.7/text/mediaTextTrackProvider.d.ts +34 -0
- package/dist/types/ts4.7/text/parseWebVtt.d.ts +60 -0
- package/dist/types/ts4.7/text/pickPreferredTextTrack.d.ts +15 -0
- package/dist/types/ts4.7/track/AutoResetController.d.ts +37 -12
- package/dist/types/ts4.7/track/SeekRange.d.ts +9 -0
- 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/HlsManifestData.d.ts +19 -0
- 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/createHlsManifestProvider.d.ts +6 -0
- package/dist/types/ts4.7/track/hls/util/hlsSegmentTime.d.ts +1 -1
- package/dist/types/ts4.7/track/inferLoadOptionsFromUri.d.ts +15 -0
- 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/util/media/codecOverrides.d.ts +33 -0
- package/dist/types/ts4.7/util/media/codecSupport.d.ts +6 -0
- package/dist/types/ts4.7/util/media/mimeType.d.ts +8 -0
- 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/ad/AdController.test.d.ts +2 -0
- package/dist/unit/types/current/ad/AdController.test.d.ts.map +1 -0
- package/dist/unit/types/current/ad/AdController.test.js +10 -0
- package/dist/unit/types/current/ad/AdControllerImpl.test.d.ts +2 -0
- package/dist/unit/types/current/ad/AdControllerImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/ad/AdControllerImpl.test.js +1456 -0
- package/dist/unit/types/current/ad/defaultAdLoadOptionsResolver.test.d.ts +2 -0
- package/dist/unit/types/current/ad/defaultAdLoadOptionsResolver.test.d.ts.map +1 -0
- package/dist/unit/types/current/ad/defaultAdLoadOptionsResolver.test.js +56 -0
- package/dist/unit/types/current/ad/discoverHlsInterstitials.test.d.ts +2 -0
- package/dist/unit/types/current/ad/discoverHlsInterstitials.test.d.ts.map +1 -0
- package/dist/unit/types/current/ad/discoverHlsInterstitials.test.js +756 -0
- package/dist/unit/types/current/drm/DrmControllerImpl.test.js +66 -1
- package/dist/unit/types/current/streaming/ManifestControllerImpl.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/ManifestControllerImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/ManifestControllerImpl.test.js +197 -0
- 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/buffering/codecDenylist.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/buffering/codecDenylist.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/buffering/codecDenylist.test.js +56 -0
- package/dist/unit/types/current/streaming/createAllowedContentTypesValue.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/createAllowedContentTypesValue.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/createAllowedContentTypesValue.test.js +77 -0
- package/dist/unit/types/current/streaming/createDefaultMediaTimelineTransformer.test.js +6 -0
- package/dist/unit/types/current/streaming/mediaTimelineAccessibilityFilter.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/mediaTimelineAccessibilityFilter.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/mediaTimelineAccessibilityFilter.test.js +99 -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/text/HtmlTextTrackRenderer.test.d.ts +2 -0
- package/dist/unit/types/current/text/HtmlTextTrackRenderer.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/HtmlTextTrackRenderer.test.js +231 -0
- package/dist/unit/types/current/text/SidecarTextTrackController.test.d.ts +2 -0
- package/dist/unit/types/current/text/SidecarTextTrackController.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/SidecarTextTrackController.test.js +686 -0
- package/dist/unit/types/current/text/SidecarTextTrackLoader.test.d.ts +2 -0
- package/dist/unit/types/current/text/SidecarTextTrackLoader.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/SidecarTextTrackLoader.test.js +365 -0
- package/dist/unit/types/current/text/VttCueStyle.test.d.ts +2 -0
- package/dist/unit/types/current/text/VttCueStyle.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/VttCueStyle.test.js +76 -0
- package/dist/unit/types/current/text/discoverDashTextTracks.test.d.ts +2 -0
- package/dist/unit/types/current/text/discoverDashTextTracks.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/discoverDashTextTracks.test.js +199 -0
- package/dist/unit/types/current/text/discoverHlsTextTracks.test.d.ts +2 -0
- package/dist/unit/types/current/text/discoverHlsTextTracks.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/discoverHlsTextTracks.test.js +177 -0
- package/dist/unit/types/current/text/mediaTextTrackProvider.test.d.ts +2 -0
- package/dist/unit/types/current/text/mediaTextTrackProvider.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/mediaTextTrackProvider.test.js +86 -0
- package/dist/unit/types/current/text/parseWebVtt.test.d.ts +2 -0
- package/dist/unit/types/current/text/parseWebVtt.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/parseWebVtt.test.js +393 -0
- package/dist/unit/types/current/text/pickPreferredTextTrack.test.d.ts +2 -0
- package/dist/unit/types/current/text/pickPreferredTextTrack.test.d.ts.map +1 -0
- package/dist/unit/types/current/text/pickPreferredTextTrack.test.js +78 -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/track/inferLoadOptionsFromUri.test.d.ts +2 -0
- package/dist/unit/types/current/track/inferLoadOptionsFromUri.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/inferLoadOptionsFromUri.test.js +165 -0
- package/dist/unit/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/unit/types/current/util/media/codecOverrides.test.d.ts +2 -0
- package/dist/unit/types/current/util/media/codecOverrides.test.d.ts.map +1 -0
- package/dist/unit/types/current/util/media/codecOverrides.test.js +42 -0
- package/dist/unit/types/current/util/media/codecSupport.test.d.ts +2 -0
- package/dist/unit/types/current/util/media/codecSupport.test.d.ts.map +1 -0
- package/dist/unit/types/current/util/media/codecSupport.test.js +26 -0
- package/dist/unit/types/current/util/media/mimeType.test.d.ts +2 -0
- package/dist/unit/types/current/util/media/mimeType.test.d.ts.map +1 -0
- package/dist/unit/types/current/util/media/mimeType.test.js +22 -0
- package/dist/unit/types/current/vinyl/VinylPlayer.test.js +35 -0
- package/dist/unit/types/current/vinyl/VinylPlayerAdBreaks.test.d.ts +2 -0
- package/dist/unit/types/current/vinyl/VinylPlayerAdBreaks.test.d.ts.map +1 -0
- package/dist/unit/types/current/vinyl/VinylPlayerAdBreaks.test.js +142 -0
- package/dist/unit/types/current/vinyl/VinylPlayerTextTracks.test.d.ts +2 -0
- package/dist/unit/types/current/vinyl/VinylPlayerTextTracks.test.d.ts.map +1 -0
- package/dist/unit/types/current/vinyl/VinylPlayerTextTracks.test.js +188 -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/ad/MockAdController.d.ts +15 -0
- package/dist/vinylTestUtil/types/current/mock/ad/MockAdController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/ad/MockAdController.js +26 -0
- package/dist/vinylTestUtil/types/current/mock/dash/mockDashManifest.d.ts +72 -72
- 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/text/MockTextTrackController.d.ts +10 -0
- package/dist/vinylTestUtil/types/current/mock/text/MockTextTrackController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/text/MockTextTrackController.js +14 -0
- 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/ad/MockAdController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dash/mockDashManifest.d.ts +72 -72
- 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/text/MockTextTrackController.d.ts +10 -0
- 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/ad/MockAdController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dash/mockDashManifest.d.ts +72 -72
- 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/text/MockTextTrackController.d.ts +10 -0
- 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/ad/MockAdController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dash/mockDashManifest.d.ts +72 -72
- 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/text/MockTextTrackController.d.ts +10 -0
- 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 -16
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { VttCueStyle } from './VttCueStyle';
|
|
2
|
+
/**
|
|
3
|
+
* A single WebVTT cue.
|
|
4
|
+
*
|
|
5
|
+
* @see https://www.w3.org/TR/webvtt1/
|
|
6
|
+
*/
|
|
7
|
+
export interface WebVttCue {
|
|
8
|
+
/**
|
|
9
|
+
* Optional cue identifier, the line that appears before the timing line.
|
|
10
|
+
*/
|
|
11
|
+
readonly id: string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Cue start time in seconds.
|
|
14
|
+
*/
|
|
15
|
+
readonly startTime: number;
|
|
16
|
+
/**
|
|
17
|
+
* Cue end time in seconds.
|
|
18
|
+
*/
|
|
19
|
+
readonly endTime: number;
|
|
20
|
+
/**
|
|
21
|
+
* The cue text payload, with line breaks preserved as `\n`.
|
|
22
|
+
*/
|
|
23
|
+
readonly text: string;
|
|
24
|
+
/**
|
|
25
|
+
* The authored cue settings from the timing line (position/line/size/
|
|
26
|
+
* align/vertical), when any were present. Preserved so a renderer can
|
|
27
|
+
* position the cue faithfully. Absent when the cue declared no settings.
|
|
28
|
+
*/
|
|
29
|
+
readonly settings?: VttCueStyle;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The result of parsing a WebVTT document.
|
|
33
|
+
*/
|
|
34
|
+
export interface WebVttDocument {
|
|
35
|
+
/**
|
|
36
|
+
* Parsed cues in document order.
|
|
37
|
+
*/
|
|
38
|
+
readonly cues: readonly WebVttCue[];
|
|
39
|
+
/**
|
|
40
|
+
* The raw CSS body of each `STYLE` block, in document order. These carry
|
|
41
|
+
* `::cue` rules (e.g. `::cue(.loud) { font-weight: bold }`) an HTML renderer
|
|
42
|
+
* can apply. Empty when the document declared no styles.
|
|
43
|
+
*/
|
|
44
|
+
readonly styles: readonly string[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Parses a WebVTT document into a list of cues.
|
|
48
|
+
*
|
|
49
|
+
* Implements a forgiving subset of the WebVTT 1.0 specification: header
|
|
50
|
+
* detection, comment blocks (lines starting with `NOTE`), styling/region
|
|
51
|
+
* blocks (STYLE bodies are captured, REGION skipped), cue identifiers, and
|
|
52
|
+
* HH:MM:SS.mmm or MM:SS.mmm timestamps with optional cue settings.
|
|
53
|
+
*
|
|
54
|
+
* @param input The raw WebVTT document text. Both LF and CRLF line endings
|
|
55
|
+
* are supported, and a leading BOM is stripped if present.
|
|
56
|
+
* @throws ValidationError if the input is missing the WEBVTT header.
|
|
57
|
+
* @see https://www.w3.org/TR/webvtt1/#webvtt-timestamp
|
|
58
|
+
*/
|
|
59
|
+
export declare function parseWebVtt(input: string): WebVttDocument;
|
|
60
|
+
//# sourceMappingURL=parseWebVtt.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { TextTrackInfo } from './TextTrack';
|
|
2
|
+
import type { Maybe } from '@amazon/vinyl-util';
|
|
3
|
+
/**
|
|
4
|
+
* Chooses the text track that best matches the preferred language(s), or null
|
|
5
|
+
* when none relate (or there is no preference / no tracks).
|
|
6
|
+
*
|
|
7
|
+
* Language dominates: a track is ranked first by which preference it relates to
|
|
8
|
+
* (earlier entries win) and how closely (see {@link languageRelatedness}).
|
|
9
|
+
* Within a single language, a full track is preferred over a forced-only track
|
|
10
|
+
* (a user asking for a caption language wants the full captions, not just the
|
|
11
|
+
* forced foreign-dialogue cues), and a manifest-default track breaks any
|
|
12
|
+
* remaining tie.
|
|
13
|
+
*/
|
|
14
|
+
export declare function pickPreferredTextTrack(tracks: readonly TextTrackInfo[], preferred: Maybe<string | readonly string[]>): TextTrackInfo | null;
|
|
15
|
+
//# sourceMappingURL=pickPreferredTextTrack.d.ts.map
|
|
@@ -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
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { HlsMainPlaylist, HlsMediaPlaylist } from '@amazon/vinyl-hls-parser';
|
|
2
|
+
export interface HlsManifestData {
|
|
3
|
+
/**
|
|
4
|
+
* The main HLS playlist manifest.
|
|
5
|
+
* Use getMediaPlaylist to resolve bitrate manifests.
|
|
6
|
+
*/
|
|
7
|
+
readonly mainPlaylist: HlsMainPlaylist;
|
|
8
|
+
/**
|
|
9
|
+
* The URL to be used for relative requests. Guaranteed to be absolute.
|
|
10
|
+
*
|
|
11
|
+
* Media with relative paths in the manifests will be resolved relative to this URL.
|
|
12
|
+
*/
|
|
13
|
+
readonly baseUrl: string;
|
|
14
|
+
/**
|
|
15
|
+
* Lazily fetches and caches a media playlist by variant URI.
|
|
16
|
+
*/
|
|
17
|
+
readonly getMediaPlaylist: (uri: string) => Promise<HlsMediaPlaylist>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=HlsManifestData.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
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HlsTrackLoadOptions } from './HlsTrack';
|
|
2
|
+
import type { ManifestProvider } from '../../streaming/ManifestController';
|
|
3
|
+
import type { HlsManifestData } from './HlsManifestData';
|
|
4
|
+
export declare function createHlsManifestProvider(loadOptions: HlsTrackLoadOptions): HlsManifestProvider;
|
|
5
|
+
export type HlsManifestProvider = ManifestProvider<HlsManifestData>;
|
|
6
|
+
//# sourceMappingURL=createHlsManifestProvider.d.ts.map
|
|
@@ -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.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { VinylTrackLoadOptions } from './createVinylTrackFactories';
|
|
2
|
+
/**
|
|
3
|
+
* The built-in track types Vinyl can infer from a URI.
|
|
4
|
+
*/
|
|
5
|
+
export type TrackType = 'hls' | 'dash' | 'src';
|
|
6
|
+
/**
|
|
7
|
+
* Infers the track type from a URI based first on its file extension
|
|
8
|
+
* then mime type.
|
|
9
|
+
*
|
|
10
|
+
* Returns null if the type cannot be determined.
|
|
11
|
+
*/
|
|
12
|
+
export declare function inferTrackTypeFromUrl(url: string): Promise<TrackType | null>;
|
|
13
|
+
export declare function inferTrackTypeFromUrlPath(url: string): TrackType | null;
|
|
14
|
+
export declare function createTrackLoadOptionsFromUrl(url: string): Promise<VinylTrackLoadOptions | null>;
|
|
15
|
+
//# sourceMappingURL=inferLoadOptionsFromUri.d.ts.map
|
|
@@ -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';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An explicit application-provided decision to allow or deny a codec,
|
|
3
|
+
* bypassing the browser's support detection.
|
|
4
|
+
*
|
|
5
|
+
* - `'allow'` forces the codec to be treated as supported even if the browser
|
|
6
|
+
* reports it unsupported (e.g. to opt in to a codec the app knows the
|
|
7
|
+
* platform can decode via an external path).
|
|
8
|
+
* - `'deny'` forces the codec to be treated as unsupported even if the browser
|
|
9
|
+
* reports it supported (e.g. to work around a browser that falsely claims
|
|
10
|
+
* support, or to exclude a codec by policy).
|
|
11
|
+
*/
|
|
12
|
+
export type CodecOverride = 'allow' | 'deny';
|
|
13
|
+
/**
|
|
14
|
+
* Explicit codec allow/deny overrides. Keys are RFC 6381 codec strings or
|
|
15
|
+
* prefixes (matched case-insensitively against the start of each codec in a
|
|
16
|
+
* mimeType's `codecs=` list, so `"hvc1"` matches `"hvc1.2.20000000.L123.B0"`).
|
|
17
|
+
*
|
|
18
|
+
* An override supersedes the browser's support detection entirely. When a
|
|
19
|
+
* mimeType contains multiple codecs, a `'deny'` on any of them denies the
|
|
20
|
+
* mimeType; an `'allow'` applies only when no codec is denied.
|
|
21
|
+
*/
|
|
22
|
+
export type CodecOverrides = Readonly<Record<string, CodecOverride>>;
|
|
23
|
+
/**
|
|
24
|
+
* Resolves the effective override decision for a mimeType against a set of
|
|
25
|
+
* {@link CodecOverrides}, or undefined when no override applies (in which case
|
|
26
|
+
* the caller should fall back to normal support detection).
|
|
27
|
+
*
|
|
28
|
+
* A `'deny'` on any contained codec wins over an `'allow'` on another, so an
|
|
29
|
+
* explicit deny is never silently overridden by an allow elsewhere in the
|
|
30
|
+
* mimeType.
|
|
31
|
+
*/
|
|
32
|
+
export declare function resolveCodecOverride(mimeType: string, overrides: CodecOverrides | undefined): CodecOverride | undefined;
|
|
33
|
+
//# sourceMappingURL=codecOverrides.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extracts the container subtype from a MIME type, lowercased — the portion
|
|
3
|
+
* after the `/`, ignoring any parameters. For example
|
|
4
|
+
* `video/webm; codecs="vp9"` → `webm` and `audio/mp4` → `mp4`. Returns an empty
|
|
5
|
+
* string when the MIME type has no subtype.
|
|
6
|
+
*/
|
|
7
|
+
export declare function mimeSubtype(mimeType: string): string;
|
|
8
|
+
//# sourceMappingURL=mimeType.d.ts.map
|
|
@@ -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.
|