@amazon/vinyl 1.1.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9043 -6375
- package/dist/index.cjs.map +4 -4
- package/dist/index.js +9314 -6592
- package/dist/index.js.map +4 -4
- package/dist/test/benchmark.es5.js +298 -348
- package/dist/test/benchmark.js +2820 -3212
- package/dist/test/benchmark.js.map +4 -4
- package/dist/test/integ.es5.js +1621 -933
- package/dist/test/integ.js +49633 -36792
- 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/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 +31 -6
- package/dist/types/current/drm/DrmController.d.ts.map +1 -1
- package/dist/types/current/drm/DrmControllerImpl.d.ts +15 -6
- package/dist/types/current/drm/DrmControllerImpl.d.ts.map +1 -1
- package/dist/types/current/drm/DrmControllerImpl.js +92 -21
- 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/drm/util/unpackPlayReadyChallenge.d.ts +5 -0
- package/dist/types/current/drm/util/unpackPlayReadyChallenge.d.ts.map +1 -1
- package/dist/types/current/drm/util/unpackPlayReadyChallenge.js +5 -0
- 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/index.d.ts +151 -126
- package/dist/types/current/index.d.ts.map +1 -1
- package/dist/types/current/index.js +151 -126
- 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 -1
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts.map +1 -1
- package/dist/types/current/playback/PlaybackControllerImpl.js +48 -9
- package/dist/types/current/playback/PlaybackSource.d.ts +1 -1
- package/dist/types/current/playback/ReadonlyPlaybackController.d.ts +6 -1
- package/dist/types/current/playback/ReadonlyPlaybackController.d.ts.map +1 -1
- package/dist/types/current/playback/ReadonlyPlaybackController.js +1 -0
- 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 +12 -5
- package/dist/types/current/streaming/ContentStream.d.ts.map +1 -1
- package/dist/types/current/streaming/ContentStream.js +19 -2
- 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/ManifestController.d.ts +16 -1
- package/dist/types/current/streaming/ManifestController.d.ts.map +1 -1
- 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 +18 -2
- package/dist/types/current/streaming/MediaQualityMetadata.d.ts.map +1 -1
- package/dist/types/current/streaming/MediaQualityMetadata.js +7 -1
- package/dist/types/current/streaming/MediaTimeline.d.ts +12 -5
- package/dist/types/current/streaming/MediaTimeline.d.ts.map +1 -1
- package/dist/types/current/streaming/SegmentController.d.ts +7 -7
- package/dist/types/current/streaming/SegmentController.d.ts.map +1 -1
- package/dist/types/current/streaming/SegmentControllerImpl.d.ts +17 -6
- package/dist/types/current/streaming/SegmentControllerImpl.d.ts.map +1 -1
- package/dist/types/current/streaming/SegmentControllerImpl.js +72 -25
- 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 +39 -2
- package/dist/types/current/streaming/StreamingEventMap.d.ts.map +1 -1
- package/dist/types/current/streaming/StreamingEventMap.js +4 -0
- 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 +46 -3
- package/dist/types/current/streaming/abr/QualitySelectorImpl.d.ts.map +1 -1
- package/dist/types/current/streaming/abr/QualitySelectorImpl.js +46 -5
- package/dist/types/current/streaming/buffering/BufferingController.d.ts +40 -13
- package/dist/types/current/streaming/buffering/BufferingController.d.ts.map +1 -1
- package/dist/types/current/streaming/buffering/BufferingController.js +80 -27
- package/dist/types/current/streaming/buffering/MediaSourceController.d.ts +52 -21
- package/dist/types/current/streaming/buffering/MediaSourceController.d.ts.map +1 -1
- package/dist/types/current/streaming/buffering/MediaSourceController.js +126 -44
- 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/SourceBufferController.js +5 -2
- 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 +5 -2
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts.map +1 -1
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.js +34 -3
- 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 +25 -7
- package/dist/types/current/streaming/mediaTimelineLanguageFilter.d.ts.map +1 -1
- package/dist/types/current/streaming/mediaTimelineLanguageFilter.js +61 -16
- 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/SidecarTextTrackController.d.ts +91 -0
- package/dist/types/current/text/SidecarTextTrackController.d.ts.map +1 -0
- package/dist/types/current/text/SidecarTextTrackController.js +237 -0
- package/dist/types/current/text/SidecarTextTrackLoader.d.ts +60 -0
- package/dist/types/current/text/SidecarTextTrackLoader.d.ts.map +1 -0
- package/dist/types/current/text/SidecarTextTrackLoader.js +144 -0
- package/dist/types/current/text/TextTrack.d.ts +125 -0
- package/dist/types/current/text/TextTrack.d.ts.map +1 -0
- package/dist/types/current/text/TextTrack.js +9 -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/parseWebVtt.d.ts +46 -0
- package/dist/types/current/text/parseWebVtt.d.ts.map +1 -0
- package/dist/types/current/text/parseWebVtt.js +120 -0
- package/dist/types/current/text/pickPreferredTextTrack.d.ts +14 -0
- package/dist/types/current/text/pickPreferredTextTrack.d.ts.map +1 -0
- package/dist/types/current/text/pickPreferredTextTrack.js +68 -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 +50 -7
- package/dist/types/current/track/Track.d.ts.map +1 -1
- package/dist/types/current/track/TrackBase.d.ts +30 -29
- package/dist/types/current/track/TrackBase.d.ts.map +1 -1
- package/dist/types/current/track/TrackBase.js +68 -16
- package/dist/types/current/track/TrackController.d.ts +102 -38
- package/dist/types/current/track/TrackController.d.ts.map +1 -1
- package/dist/types/current/track/TrackController.js +368 -115
- package/dist/types/current/track/TrackFactory.d.ts +24 -4
- package/dist/types/current/track/TrackFactory.d.ts.map +1 -1
- package/dist/types/current/track/TrackFactory.js +9 -3
- 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 -40
- package/dist/types/current/track/dash/DashManifestController.d.ts.map +1 -1
- package/dist/types/current/track/dash/DashManifestController.js +1 -79
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.d.ts.map +1 -1
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.js +14 -1
- package/dist/types/current/track/dash/DashTrack.d.ts +6 -7
- package/dist/types/current/track/dash/DashTrack.d.ts.map +1 -1
- package/dist/types/current/track/dash/DashTrack.js +4 -6
- 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 +4 -3
- 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 +2 -2
- package/dist/types/current/track/dash/createDashFactories.d.ts +50 -23
- package/dist/types/current/track/dash/createDashFactories.d.ts.map +1 -1
- package/dist/types/current/track/dash/createDashFactories.js +40 -12
- 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 +0 -5
- 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 +5 -4
- 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 +13 -2
- package/dist/types/current/track/dash/util/mpd.d.ts.map +1 -1
- package/dist/types/current/track/dash/util/mpd.js +29 -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/HlsManifestController.d.ts +1 -25
- package/dist/types/current/track/hls/HlsManifestController.d.ts.map +1 -1
- package/dist/types/current/track/hls/HlsManifestController.js +1 -68
- package/dist/types/{ts3.7/track/hls/HlsManifestProvider.d.ts → current/track/hls/HlsManifestData.d.ts} +4 -6
- 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/HlsMediaQualityMetadataResolver.js +9 -6
- package/dist/types/current/track/hls/HlsTrack.d.ts +5 -6
- package/dist/types/current/track/hls/HlsTrack.d.ts.map +1 -1
- package/dist/types/current/track/hls/HlsTrack.js +3 -5
- package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts +10 -3
- package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts.map +1 -1
- package/dist/types/current/track/hls/buildHlsMediaTimeline.js +150 -81
- 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/createHlsContentTypesValue.d.ts +1 -1
- package/dist/types/current/track/hls/createHlsContentTypesValue.d.ts.map +1 -1
- package/dist/types/current/track/hls/createHlsFactories.d.ts +40 -13
- package/dist/types/current/track/hls/createHlsFactories.d.ts.map +1 -1
- package/dist/types/current/track/hls/createHlsFactories.js +35 -6
- 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/createUrlHlsManifestProvider.d.ts +4 -4
- package/dist/types/current/track/hls/createUrlHlsManifestProvider.d.ts.map +1 -1
- package/dist/types/current/track/hls/createUrlHlsManifestProvider.js +22 -3
- package/dist/types/current/track/hls/index.d.ts +1 -1
- package/dist/types/current/track/hls/index.d.ts.map +1 -1
- package/dist/types/current/track/hls/index.js +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/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 +67 -9
- package/dist/types/current/track/mse/MseTrack.d.ts.map +1 -1
- package/dist/types/current/track/mse/MseTrack.js +216 -51
- 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 +5 -5
- 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 +5 -5
- package/dist/types/current/track/source/SourceTrack.d.ts.map +1 -1
- package/dist/types/current/track/source/SourceTrack.js +3 -4
- package/dist/types/current/track/source/SourceTrackBase.d.ts +8 -6
- package/dist/types/current/track/source/SourceTrackBase.d.ts.map +1 -1
- package/dist/types/current/track/source/SourceTrackBase.js +27 -10
- 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/mediaSource.d.ts +5 -0
- package/dist/types/current/util/media/mediaSource.d.ts.map +1 -1
- package/dist/types/current/util/media/mediaSource.js +6 -1
- package/dist/types/current/vinyl/ReadonlyPlaybackStreamingState.d.ts +9 -2
- package/dist/types/current/vinyl/ReadonlyPlaybackStreamingState.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylDeps.d.ts +6 -1
- package/dist/types/current/vinyl/VinylDeps.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylOptions.d.ts +68 -4
- package/dist/types/current/vinyl/VinylOptions.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylOptions.js +17 -2
- package/dist/types/current/vinyl/VinylPatchOptions.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylPlayer.d.ts +89 -6
- package/dist/types/current/vinyl/VinylPlayer.d.ts.map +1 -1
- package/dist/types/current/vinyl/VinylPlayer.js +234 -39
- package/dist/types/current/vinyl/createVinylFactories.d.ts +64 -23
- package/dist/types/current/vinyl/createVinylFactories.d.ts.map +1 -1
- package/dist/types/current/vinyl/createVinylFactories.js +6 -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 +31 -6
- package/dist/types/ts3.7/drm/DrmControllerImpl.d.ts +15 -6
- 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/drm/util/unpackPlayReadyChallenge.d.ts +5 -0
- package/dist/types/ts3.7/global/environment.d.ts +6 -2
- package/dist/types/ts3.7/index.d.ts +151 -126
- 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 -1
- package/dist/types/ts3.7/playback/PlaybackSource.d.ts +1 -1
- package/dist/types/ts3.7/playback/ReadonlyPlaybackController.d.ts +6 -0
- 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 +12 -5
- 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/ManifestController.d.ts +16 -1
- package/dist/types/ts3.7/streaming/ManifestControllerImpl.d.ts +40 -0
- package/dist/types/ts3.7/streaming/MediaQualityMetadata.d.ts +21 -2
- package/dist/types/ts3.7/streaming/MediaTimeline.d.ts +12 -5
- package/dist/types/ts3.7/streaming/SegmentController.d.ts +7 -7
- package/dist/types/ts3.7/streaming/SegmentControllerImpl.d.ts +17 -6
- package/dist/types/ts3.7/streaming/SegmentReference.d.ts +1 -1
- package/dist/types/ts3.7/streaming/StreamingEventMap.d.ts +43 -2
- package/dist/types/ts3.7/streaming/abr/QualitySelector.d.ts +1 -1
- package/dist/types/ts3.7/streaming/abr/QualitySelectorImpl.d.ts +46 -3
- package/dist/types/ts3.7/streaming/buffering/BufferingController.d.ts +40 -13
- package/dist/types/ts3.7/streaming/buffering/MediaSourceController.d.ts +52 -21
- 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 +5 -2
- 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 +25 -7
- package/dist/types/ts3.7/streaming/util/segment.d.ts +1 -1
- package/dist/types/ts3.7/text/SidecarTextTrackController.d.ts +91 -0
- package/dist/types/ts3.7/text/SidecarTextTrackLoader.d.ts +60 -0
- package/dist/types/ts3.7/text/TextTrack.d.ts +129 -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/parseWebVtt.d.ts +46 -0
- package/dist/types/ts3.7/text/pickPreferredTextTrack.d.ts +14 -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/Track.d.ts +50 -7
- package/dist/types/ts3.7/track/TrackBase.d.ts +21 -29
- package/dist/types/ts3.7/track/TrackController.d.ts +104 -39
- package/dist/types/ts3.7/track/TrackFactory.d.ts +23 -3
- package/dist/types/ts3.7/track/createVinylTrackFactories.d.ts +5 -5
- package/dist/types/ts3.7/track/dash/DashManifestController.d.ts +1 -36
- package/dist/types/ts3.7/track/dash/DashTrack.d.ts +6 -7
- 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 +50 -23
- 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/createSegmentControllerFactory.d.ts +0 -5
- 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 +13 -2
- package/dist/types/ts3.7/track/hls/HlsManifestController.d.ts +1 -22
- package/dist/types/{current/track/hls/HlsManifestProvider.d.ts → ts3.7/track/hls/HlsManifestData.d.ts} +4 -6
- package/dist/types/ts3.7/track/hls/HlsTrack.d.ts +5 -6
- package/dist/types/ts3.7/track/hls/buildHlsMediaTimeline.d.ts +10 -3
- package/dist/types/ts3.7/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
- package/dist/types/ts3.7/track/hls/createHlsContentTypesValue.d.ts +1 -1
- package/dist/types/ts3.7/track/hls/createHlsFactories.d.ts +40 -13
- package/dist/types/ts3.7/track/hls/createHlsManifestProvider.d.ts +6 -0
- package/dist/types/ts3.7/track/hls/createUrlHlsManifestProvider.d.ts +4 -4
- package/dist/types/ts3.7/track/hls/index.d.ts +1 -1
- 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 +66 -8
- package/dist/types/ts3.7/track/source/FixedPlaybackQuality.d.ts +1 -1
- package/dist/types/ts3.7/track/source/SourceObjectTrack.d.ts +5 -5
- package/dist/types/ts3.7/track/source/SourceTrack.d.ts +5 -5
- package/dist/types/ts3.7/track/source/SourceTrackBase.d.ts +8 -6
- 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/mediaSource.d.ts +5 -0
- package/dist/types/ts3.7/vinyl/ReadonlyPlaybackStreamingState.d.ts +9 -2
- package/dist/types/ts3.7/vinyl/VinylDeps.d.ts +6 -1
- package/dist/types/ts3.7/vinyl/VinylOptions.d.ts +68 -4
- package/dist/types/ts3.7/vinyl/VinylPlayer.d.ts +51 -6
- package/dist/types/ts3.7/vinyl/createVinylFactories.d.ts +64 -23
- 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 +31 -6
- package/dist/types/ts4.1/drm/DrmControllerImpl.d.ts +15 -6
- 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/drm/util/unpackPlayReadyChallenge.d.ts +5 -0
- package/dist/types/ts4.1/global/environment.d.ts +6 -2
- package/dist/types/ts4.1/index.d.ts +151 -126
- 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 -1
- package/dist/types/ts4.1/playback/PlaybackSource.d.ts +1 -1
- package/dist/types/ts4.1/playback/ReadonlyPlaybackController.d.ts +6 -0
- 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 +12 -5
- 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/ManifestController.d.ts +16 -1
- package/dist/types/ts4.1/streaming/ManifestControllerImpl.d.ts +40 -0
- package/dist/types/ts4.1/streaming/MediaQualityMetadata.d.ts +21 -2
- package/dist/types/ts4.1/streaming/MediaTimeline.d.ts +12 -5
- package/dist/types/ts4.1/streaming/SegmentController.d.ts +7 -7
- package/dist/types/ts4.1/streaming/SegmentControllerImpl.d.ts +17 -6
- package/dist/types/ts4.1/streaming/SegmentReference.d.ts +1 -1
- package/dist/types/ts4.1/streaming/StreamingEventMap.d.ts +43 -2
- package/dist/types/ts4.1/streaming/abr/QualitySelector.d.ts +1 -1
- package/dist/types/ts4.1/streaming/abr/QualitySelectorImpl.d.ts +46 -3
- package/dist/types/ts4.1/streaming/buffering/BufferingController.d.ts +40 -13
- package/dist/types/ts4.1/streaming/buffering/MediaSourceController.d.ts +52 -21
- 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 +5 -2
- 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 +25 -7
- package/dist/types/ts4.1/streaming/util/segment.d.ts +1 -1
- package/dist/types/ts4.1/text/SidecarTextTrackController.d.ts +92 -0
- package/dist/types/ts4.1/text/SidecarTextTrackLoader.d.ts +60 -0
- package/dist/types/ts4.1/text/TextTrack.d.ts +129 -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/parseWebVtt.d.ts +46 -0
- package/dist/types/ts4.1/text/pickPreferredTextTrack.d.ts +14 -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/Track.d.ts +50 -7
- package/dist/types/ts4.1/track/TrackBase.d.ts +21 -29
- package/dist/types/ts4.1/track/TrackController.d.ts +104 -39
- package/dist/types/ts4.1/track/TrackFactory.d.ts +23 -3
- package/dist/types/ts4.1/track/createVinylTrackFactories.d.ts +5 -5
- package/dist/types/ts4.1/track/dash/DashManifestController.d.ts +1 -36
- package/dist/types/ts4.1/track/dash/DashTrack.d.ts +6 -7
- 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 +50 -23
- 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/createSegmentControllerFactory.d.ts +0 -5
- 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 +13 -2
- package/dist/types/ts4.1/track/hls/HlsManifestController.d.ts +1 -22
- package/dist/types/ts4.1/track/hls/{HlsManifestProvider.d.ts → HlsManifestData.d.ts} +4 -6
- package/dist/types/ts4.1/track/hls/HlsTrack.d.ts +5 -6
- package/dist/types/ts4.1/track/hls/buildHlsMediaTimeline.d.ts +10 -3
- package/dist/types/ts4.1/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
- package/dist/types/ts4.1/track/hls/createHlsContentTypesValue.d.ts +1 -1
- package/dist/types/ts4.1/track/hls/createHlsFactories.d.ts +41 -13
- package/dist/types/ts4.1/track/hls/createHlsManifestProvider.d.ts +6 -0
- package/dist/types/ts4.1/track/hls/createUrlHlsManifestProvider.d.ts +4 -4
- package/dist/types/ts4.1/track/hls/index.d.ts +1 -1
- 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 +67 -9
- package/dist/types/ts4.1/track/source/FixedPlaybackQuality.d.ts +1 -1
- package/dist/types/ts4.1/track/source/SourceObjectTrack.d.ts +6 -6
- package/dist/types/ts4.1/track/source/SourceTrack.d.ts +6 -6
- package/dist/types/ts4.1/track/source/SourceTrackBase.d.ts +9 -7
- 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/mediaSource.d.ts +5 -0
- package/dist/types/ts4.1/vinyl/ReadonlyPlaybackStreamingState.d.ts +9 -2
- package/dist/types/ts4.1/vinyl/VinylDeps.d.ts +6 -1
- package/dist/types/ts4.1/vinyl/VinylOptions.d.ts +68 -4
- package/dist/types/ts4.1/vinyl/VinylPlayer.d.ts +51 -6
- package/dist/types/ts4.1/vinyl/createVinylFactories.d.ts +65 -23
- 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 +31 -6
- package/dist/types/ts4.7/drm/DrmControllerImpl.d.ts +15 -6
- 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/drm/util/unpackPlayReadyChallenge.d.ts +5 -0
- package/dist/types/ts4.7/global/environment.d.ts +6 -2
- package/dist/types/ts4.7/index.d.ts +151 -126
- 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 -1
- package/dist/types/ts4.7/playback/PlaybackSource.d.ts +1 -1
- package/dist/types/ts4.7/playback/ReadonlyPlaybackController.d.ts +6 -0
- 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 +12 -5
- 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/ManifestController.d.ts +16 -1
- package/dist/types/ts4.7/streaming/ManifestControllerImpl.d.ts +43 -0
- package/dist/types/ts4.7/streaming/MediaQualityMetadata.d.ts +21 -2
- package/dist/types/ts4.7/streaming/MediaTimeline.d.ts +12 -5
- package/dist/types/ts4.7/streaming/SegmentController.d.ts +7 -7
- package/dist/types/ts4.7/streaming/SegmentControllerImpl.d.ts +17 -6
- package/dist/types/ts4.7/streaming/SegmentReference.d.ts +1 -1
- package/dist/types/ts4.7/streaming/StreamingEventMap.d.ts +43 -2
- package/dist/types/ts4.7/streaming/abr/QualitySelector.d.ts +1 -1
- package/dist/types/ts4.7/streaming/abr/QualitySelectorImpl.d.ts +46 -3
- package/dist/types/ts4.7/streaming/buffering/BufferingController.d.ts +40 -13
- package/dist/types/ts4.7/streaming/buffering/MediaSourceController.d.ts +52 -21
- 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 +5 -2
- 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 +25 -7
- package/dist/types/ts4.7/streaming/util/segment.d.ts +1 -1
- package/dist/types/ts4.7/text/SidecarTextTrackController.d.ts +91 -0
- package/dist/types/ts4.7/text/SidecarTextTrackLoader.d.ts +60 -0
- package/dist/types/ts4.7/text/TextTrack.d.ts +129 -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/parseWebVtt.d.ts +46 -0
- package/dist/types/ts4.7/text/pickPreferredTextTrack.d.ts +14 -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/Track.d.ts +50 -7
- package/dist/types/ts4.7/track/TrackBase.d.ts +30 -29
- package/dist/types/ts4.7/track/TrackController.d.ts +104 -39
- package/dist/types/ts4.7/track/TrackFactory.d.ts +24 -4
- package/dist/types/ts4.7/track/createVinylTrackFactories.d.ts +5 -5
- package/dist/types/ts4.7/track/dash/DashManifestController.d.ts +1 -40
- package/dist/types/ts4.7/track/dash/DashTrack.d.ts +6 -7
- 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 +50 -23
- 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/createSegmentControllerFactory.d.ts +0 -5
- 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 +13 -2
- package/dist/types/ts4.7/track/hls/HlsManifestController.d.ts +1 -25
- package/dist/types/ts4.7/track/hls/{HlsManifestProvider.d.ts → HlsManifestData.d.ts} +4 -6
- package/dist/types/ts4.7/track/hls/HlsTrack.d.ts +5 -6
- package/dist/types/ts4.7/track/hls/buildHlsMediaTimeline.d.ts +10 -3
- package/dist/types/ts4.7/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
- package/dist/types/ts4.7/track/hls/createHlsContentTypesValue.d.ts +1 -1
- package/dist/types/ts4.7/track/hls/createHlsFactories.d.ts +40 -13
- package/dist/types/ts4.7/track/hls/createHlsManifestProvider.d.ts +6 -0
- package/dist/types/ts4.7/track/hls/createUrlHlsManifestProvider.d.ts +4 -4
- package/dist/types/ts4.7/track/hls/index.d.ts +1 -1
- 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 +67 -9
- package/dist/types/ts4.7/track/source/FixedPlaybackQuality.d.ts +1 -1
- package/dist/types/ts4.7/track/source/SourceObjectTrack.d.ts +5 -5
- package/dist/types/ts4.7/track/source/SourceTrack.d.ts +5 -5
- package/dist/types/ts4.7/track/source/SourceTrackBase.d.ts +8 -6
- 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/mediaSource.d.ts +5 -0
- package/dist/types/ts4.7/vinyl/ReadonlyPlaybackStreamingState.d.ts +9 -2
- package/dist/types/ts4.7/vinyl/VinylDeps.d.ts +6 -1
- package/dist/types/ts4.7/vinyl/VinylOptions.d.ts +68 -4
- package/dist/types/ts4.7/vinyl/VinylPlayer.d.ts +89 -6
- package/dist/types/ts4.7/vinyl/createVinylFactories.d.ts +64 -23
- 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 +205 -4
- package/dist/unit/types/current/index.d.ts +117 -98
- package/dist/unit/types/current/index.d.ts.map +1 -1
- package/dist/unit/types/current/index.js +117 -98
- package/dist/unit/types/current/playback/PlaybackControllerImpl.test.js +92 -3
- package/dist/unit/types/current/streaming/ContentStream.test.js +11 -0
- 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 +8 -1
- package/dist/unit/types/current/streaming/MseTrack.test.js +482 -14
- package/dist/unit/types/current/streaming/SegmentControllerImpl.test.js +69 -33
- package/dist/unit/types/current/streaming/StreamingEventMap.test.js +2 -2
- package/dist/unit/types/current/streaming/abr/QualitySelectorImpl.test.js +183 -0
- package/dist/unit/types/current/streaming/buffering/BufferingController.test.js +123 -61
- package/dist/unit/types/current/streaming/buffering/MediaSourceController.test.js +133 -26
- package/dist/unit/types/current/streaming/buffering/SourceBufferController.test.js +4 -0
- 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 +150 -2
- 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 +11 -0
- package/dist/unit/types/current/streaming/mediaTimelineLanguageFilter.test.js +99 -3
- 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 +587 -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 +336 -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/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 +212 -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 +67 -0
- package/dist/unit/types/current/track/AutoResetController.test.js +134 -22
- package/dist/unit/types/current/track/TrackBase.test.js +50 -5
- package/dist/unit/types/current/track/TrackController.test.js +712 -109
- package/dist/unit/types/current/track/TrackFactory.test.js +13 -25
- package/dist/unit/types/current/track/dash/createDashContentStreamFactories.test.js +6 -1
- package/dist/unit/types/current/track/dash/createDashFactories.test.js +63 -2
- package/dist/unit/types/current/track/dash/createSegmentControllerFactory.test.js +6 -1
- package/dist/unit/types/current/track/dash/util/mpd.test.js +53 -1
- package/dist/unit/types/current/track/hls/HlsManifestController.test.js +4 -4
- package/dist/unit/types/current/track/hls/HlsMediaQualityMetadataResolver.test.js +4 -2
- package/dist/unit/types/current/track/hls/buildHlsMediaTimeline.test.js +276 -22
- package/dist/unit/types/current/track/hls/createHlsContentStreamFactories.test.js +6 -1
- package/dist/unit/types/current/track/hls/createHlsFactories.test.js +182 -4
- package/dist/unit/types/current/track/hls/createUrlHlsManifestProvider.test.js +19 -0
- 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/track/source/SourceTrack.test.js +5 -0
- package/dist/unit/types/current/track/source/SourceTrackBase.test.js +24 -3
- 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/mediaSource.test.js +6 -0
- package/dist/unit/types/current/vinyl/VinylPlayer.test.js +212 -75
- 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 +263 -0
- package/dist/vinylTestUtil/index.js +2375 -2208
- package/dist/vinylTestUtil/index.js.map +4 -4
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.d.ts +14 -0
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.js +49 -30
- package/dist/vinylTestUtil/types/current/index.d.ts +53 -51
- package/dist/vinylTestUtil/types/current/index.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/index.js +53 -51
- 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/MockDashManifestController.d.ts +8 -1
- package/dist/vinylTestUtil/types/current/mock/dash/MockDashManifestController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/dash/MockDashManifestController.js +15 -0
- package/dist/vinylTestUtil/types/current/mock/dash/mockDashManifest.d.ts +24 -24
- 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/drm/MockDrmController.d.ts +2 -2
- package/dist/vinylTestUtil/types/current/mock/drm/MockDrmController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/hls/MockHlsManifestController.d.ts +7 -1
- package/dist/vinylTestUtil/types/current/mock/hls/MockHlsManifestController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/hls/MockHlsManifestController.js +12 -0
- package/dist/vinylTestUtil/types/current/mock/hls/mockHlsManifest.d.ts +3 -3
- package/dist/vinylTestUtil/types/current/mock/hls/mockHlsManifest.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/hls/mockHlsManifest.js +1 -0
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts +14 -6
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.js +24 -8
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.d.ts +2 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.js +1 -0
- 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/MockBufferingController.d.ts +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.js +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts +2 -2
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.js +2 -2
- 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/MockTrack.d.ts +13 -4
- package/dist/vinylTestUtil/types/current/mock/track/MockTrack.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/track/MockTrack.js +11 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackController.d.ts +3 -2
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackController.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackController.js +2 -1
- package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.d.ts +11 -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 +19 -8
- package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.d.ts +9 -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 +17 -8
- package/dist/vinylTestUtil/types/current/player/createVinylSuite.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/player/createVinylSuite.js +19 -8
- package/dist/vinylTestUtil/types/current/tsconfig.tsbuildinfo +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/eventPromises.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/eventPromises.js +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.js +6 -3
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlays.js +5 -5
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.d.ts.map +1 -1
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.js +12 -9
- package/dist/vinylTestUtil/types/ts3.7/assets/vinylTestAssets.d.ts +14 -0
- package/dist/vinylTestUtil/types/ts3.7/index.d.ts +53 -51
- package/dist/vinylTestUtil/types/ts3.7/mock/ad/MockAdController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dash/MockDashManifestController.d.ts +8 -1
- package/dist/vinylTestUtil/types/ts3.7/mock/dash/mockDashManifest.d.ts +24 -24
- 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/drm/MockDrmController.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts3.7/mock/hls/MockHlsManifestController.d.ts +7 -1
- package/dist/vinylTestUtil/types/ts3.7/mock/hls/mockHlsManifest.d.ts +3 -3
- package/dist/vinylTestUtil/types/ts3.7/mock/player/MockVinylPlayerDependencies.d.ts +14 -6
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/MockContentStream.d.ts +2 -1
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/MockSegmentController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockBufferingController.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockMediaSourceController.d.ts +2 -2
- 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/MockTrack.d.ts +13 -4
- package/dist/vinylTestUtil/types/ts3.7/mock/track/MockTrackController.d.ts +3 -2
- package/dist/vinylTestUtil/types/ts3.7/mock/track/dash/createMockDashDependencies.d.ts +11 -5
- package/dist/vinylTestUtil/types/ts3.7/mock/track/hls/createMockHlsDependencies.d.ts +9 -5
- package/dist/vinylTestUtil/types/ts4.1/assets/vinylTestAssets.d.ts +14 -0
- package/dist/vinylTestUtil/types/ts4.1/index.d.ts +53 -51
- package/dist/vinylTestUtil/types/ts4.1/mock/ad/MockAdController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dash/MockDashManifestController.d.ts +8 -1
- package/dist/vinylTestUtil/types/ts4.1/mock/dash/mockDashManifest.d.ts +24 -24
- 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/drm/MockDrmController.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts4.1/mock/hls/MockHlsManifestController.d.ts +7 -1
- package/dist/vinylTestUtil/types/ts4.1/mock/hls/mockHlsManifest.d.ts +3 -3
- package/dist/vinylTestUtil/types/ts4.1/mock/player/MockVinylPlayerDependencies.d.ts +14 -6
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/MockContentStream.d.ts +2 -1
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/MockSegmentController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockBufferingController.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockMediaSourceController.d.ts +2 -2
- 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/MockTrack.d.ts +13 -4
- package/dist/vinylTestUtil/types/ts4.1/mock/track/MockTrackController.d.ts +3 -2
- package/dist/vinylTestUtil/types/ts4.1/mock/track/dash/createMockDashDependencies.d.ts +11 -5
- package/dist/vinylTestUtil/types/ts4.1/mock/track/hls/createMockHlsDependencies.d.ts +9 -5
- package/dist/vinylTestUtil/types/ts4.7/assets/vinylTestAssets.d.ts +14 -0
- package/dist/vinylTestUtil/types/ts4.7/index.d.ts +53 -51
- package/dist/vinylTestUtil/types/ts4.7/mock/ad/MockAdController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dash/MockDashManifestController.d.ts +8 -1
- package/dist/vinylTestUtil/types/ts4.7/mock/dash/mockDashManifest.d.ts +24 -24
- 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/drm/MockDrmController.d.ts +2 -2
- package/dist/vinylTestUtil/types/ts4.7/mock/hls/MockHlsManifestController.d.ts +7 -1
- package/dist/vinylTestUtil/types/ts4.7/mock/hls/mockHlsManifest.d.ts +3 -3
- package/dist/vinylTestUtil/types/ts4.7/mock/player/MockVinylPlayerDependencies.d.ts +14 -6
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/MockContentStream.d.ts +2 -1
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/MockSegmentController.d.ts +0 -1
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockBufferingController.d.ts +1 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockMediaSourceController.d.ts +2 -2
- 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/MockTrack.d.ts +13 -4
- package/dist/vinylTestUtil/types/ts4.7/mock/track/MockTrackController.d.ts +3 -2
- package/dist/vinylTestUtil/types/ts4.7/mock/track/dash/createMockDashDependencies.d.ts +11 -5
- package/dist/vinylTestUtil/types/ts4.7/mock/track/hls/createMockHlsDependencies.d.ts +9 -5
- package/docs/ADS.md +264 -0
- package/docs/USAGE.md +175 -9
- package/package.json +19 -21
- package/dist/types/current/track/hls/HlsManifestProvider.d.ts.map +0 -1
- package/dist/unit/types/current/track/dash/DashManifestController.test.d.ts +0 -2
- package/dist/unit/types/current/track/dash/DashManifestController.test.d.ts.map +0 -1
- package/dist/unit/types/current/track/dash/DashManifestController.test.js +0 -186
- /package/dist/types/current/{track/hls/HlsManifestProvider.js → ad/AdBreakInfo.js} +0 -0
|
@@ -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 {
|
|
@@ -2,14 +2,9 @@ import type { ReadonlyPlaybackController } from '../../playback/ReadonlyPlayback
|
|
|
2
2
|
import type { SegmentControllerImplOptions } from '../../streaming/SegmentControllerImpl';
|
|
3
3
|
import { SegmentControllerImpl } from '../../streaming/SegmentControllerImpl';
|
|
4
4
|
import type { ContentType } from '../../streaming/MediaQualityMetadata';
|
|
5
|
-
import type { SegmentController } from '../../streaming/SegmentController';
|
|
6
5
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
7
6
|
import type { MediaTimeline } from '../../streaming/MediaTimeline';
|
|
8
7
|
import type { QualitySelector } from '../../streaming/abr/QualitySelector';
|
|
9
|
-
export type SegmentControllerFactory = (deps: {
|
|
10
|
-
readonly mediaTimelineTransformed: ObservableValue<Promise<MediaTimeline>>;
|
|
11
|
-
readonly qualitySelector: QualitySelector;
|
|
12
|
-
}) => SegmentController;
|
|
13
8
|
export interface SegmentControllerFactoryDeps {
|
|
14
9
|
readonly playbackController: ReadonlyPlaybackController;
|
|
15
10
|
}
|
|
@@ -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.
|
|
@@ -72,9 +72,20 @@ export declare function getPeriodAtTime(manifest: DashManifest, time: number): P
|
|
|
72
72
|
* Flattens representations across all adaptation sets for the given Period.
|
|
73
73
|
*/
|
|
74
74
|
export declare function flattenRepresentations(period: PeriodType): RepresentationType[];
|
|
75
|
+
/**
|
|
76
|
+
* Flattens the representations across all adaptation sets for the given Period
|
|
77
|
+
* that the MSE media pipeline can play, i.e. `audio` and `video`.
|
|
78
|
+
*
|
|
79
|
+
* Text adaptation sets (e.g. `contentType="text"` WebVTT sidecar subtitles) are
|
|
80
|
+
* excluded: they are surfaced through the sidecar text-track pipeline
|
|
81
|
+
* (`discoverDashTextTracks`), not buffered through MSE, so including them here
|
|
82
|
+
* would create an unplayable text SourceBuffer and stall playback.
|
|
83
|
+
*/
|
|
84
|
+
export declare function flattenMediaRepresentations(period: PeriodType): RepresentationType[];
|
|
75
85
|
/**
|
|
76
86
|
* Calculates the manifest duration, either from the mediaPresentationDuration or the last period end time.
|
|
77
|
-
*
|
|
87
|
+
* Returns `Infinity` for live (dynamic) presentations.
|
|
88
|
+
* Throws if duration cannot be determined.
|
|
78
89
|
*/
|
|
79
|
-
export declare function calculateDuration(manifest: DashManifest): number
|
|
90
|
+
export declare function calculateDuration(manifest: DashManifest): number;
|
|
80
91
|
//# sourceMappingURL=mpd.d.ts.map
|
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
import type { ManifestController } from '../../streaming/ManifestController';
|
|
2
|
-
import type { HlsManifestData
|
|
2
|
+
import type { HlsManifestData } from './HlsManifestData';
|
|
3
3
|
export type HlsManifestController = ManifestController<Promise<HlsManifestData>>;
|
|
4
|
-
export declare class HlsManifestControllerImpl implements HlsManifestController {
|
|
5
|
-
private readonly manifestProvider;
|
|
6
|
-
get [Symbol.toStringTag](): string;
|
|
7
|
-
get logPrefix(): string;
|
|
8
|
-
private readonly _data;
|
|
9
|
-
private _error;
|
|
10
|
-
private readonly abortSlot;
|
|
11
|
-
private readonly disposer;
|
|
12
|
-
constructor(manifestProvider: HlsManifestProvider);
|
|
13
|
-
get error(): (Error | null);
|
|
14
|
-
refresh(): void;
|
|
15
|
-
reset(): void;
|
|
16
|
-
get value(): Promise<HlsManifestData>;
|
|
17
|
-
get changeId(): number;
|
|
18
|
-
getValue(): Promise<HlsManifestData>;
|
|
19
|
-
onData(callback: (value: Promise<HlsManifestData>, previous?: Promise<HlsManifestData>) => void): () => void;
|
|
20
|
-
map<U>(fn: (value: Promise<HlsManifestData>) => U): import("@amazon/vinyl-observable").MutableValue<U>;
|
|
21
|
-
pick<K extends keyof NonNullable<Promise<HlsManifestData>>>(key: K): import("@amazon/vinyl-observable").MutableValue<Promise<HlsManifestData>[K]>;
|
|
22
|
-
get disposed(): boolean;
|
|
23
|
-
dispose(): void;
|
|
24
|
-
}
|
|
25
4
|
//# sourceMappingURL=HlsManifestController.d.ts.map
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { MainPlaylist, MediaPlaylist } from '@amazon/vinyl-hls-parser';
|
|
3
|
-
export type HlsManifestProvider = (abort?: ReadonlyAbort) => Promise<HlsManifestData>;
|
|
1
|
+
import type { HlsMainPlaylist, HlsMediaPlaylist } from '@amazon/vinyl-hls-parser';
|
|
4
2
|
export interface HlsManifestData {
|
|
5
3
|
/**
|
|
6
4
|
* The main HLS playlist manifest.
|
|
7
5
|
* Use getMediaPlaylist to resolve bitrate manifests.
|
|
8
6
|
*/
|
|
9
|
-
readonly mainPlaylist:
|
|
7
|
+
readonly mainPlaylist: HlsMainPlaylist;
|
|
10
8
|
/**
|
|
11
9
|
* The URL to be used for relative requests. Guaranteed to be absolute.
|
|
12
10
|
*
|
|
@@ -16,6 +14,6 @@ export interface HlsManifestData {
|
|
|
16
14
|
/**
|
|
17
15
|
* Lazily fetches and caches a media playlist by variant URI.
|
|
18
16
|
*/
|
|
19
|
-
readonly getMediaPlaylist: (uri: string) => Promise<
|
|
17
|
+
readonly getMediaPlaylist: (uri: string) => Promise<HlsMediaPlaylist>;
|
|
20
18
|
}
|
|
21
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=HlsManifestData.d.ts.map
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import type { Maybe, RequestInitOptions } from '@amazon/vinyl-util';
|
|
2
|
-
import type {
|
|
3
|
-
import type { TrackBaseOptions } from '../TrackBase';
|
|
4
|
-
import type { HlsManifestProvider } from './HlsManifestProvider';
|
|
2
|
+
import type { TrackConfigOptions, TrackFactory, TrackLoadOptions } from '../TrackFactory';
|
|
5
3
|
import type { HlsManifestController } from './HlsManifestController';
|
|
6
|
-
import type { HlsManifestData } from './
|
|
4
|
+
import type { HlsManifestData } from './HlsManifestData';
|
|
7
5
|
import type { HlsMediaQualityMetadataResolver } from './HlsMediaQualityMetadataResolver';
|
|
8
6
|
import type { MseTrackDeps } from '../mse/MseTrack';
|
|
9
7
|
import type { Factories } from '@amazon/vinyl-di';
|
|
10
8
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
11
9
|
import type { MediaTimeline } from '../../streaming/MediaTimeline';
|
|
10
|
+
import type { ManifestProvider } from '../../streaming/ManifestController';
|
|
12
11
|
export interface HlsTrackLoadOptions extends TrackLoadOptions {
|
|
13
12
|
readonly type: 'hls';
|
|
14
|
-
readonly manifestProvider?: Maybe<
|
|
13
|
+
readonly manifestProvider?: Maybe<ManifestProvider<HlsManifestData>>;
|
|
15
14
|
readonly requestInit?: Maybe<RequestInitOptions>;
|
|
16
15
|
readonly segmentRequestInit?: Maybe<RequestInitOptions>;
|
|
17
|
-
readonly config?: Maybe<
|
|
16
|
+
readonly config?: Maybe<TrackConfigOptions>;
|
|
18
17
|
}
|
|
19
18
|
export interface HlsTrackDeps extends MseTrackDeps {
|
|
20
19
|
readonly manifestController: HlsManifestController;
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import type { HlsManifestData } from '
|
|
2
|
-
import type { HlsMediaQualityMetadataResolver } from '
|
|
1
|
+
import type { HlsManifestData } from './HlsManifestData';
|
|
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
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Builds a MediaTimeline from an HLS manifest.
|
|
10
10
|
* HLS has a single implicit period spanning the full duration.
|
|
11
|
+
*
|
|
12
|
+
* Audio is modeled per source: a variant that carries muxed audio (no separate
|
|
13
|
+
* AUDIO rendition group) contributes an audio quality on its own playlist, while
|
|
14
|
+
* a variant with a demuxed audio group contributes video only — one audio
|
|
15
|
+
* quality is created per AUDIO rendition in the group, each carrying that
|
|
16
|
+
* rendition's language and playlist. Modeling every language as its own audio
|
|
17
|
+
* quality is what lets the timeline's language filter select among them.
|
|
11
18
|
*/
|
|
12
19
|
export declare function buildHlsMediaTimeline(deps: BuildHlsMediaTimelineDeps, data: HlsManifestData): MediaTimeline;
|
|
13
20
|
//# sourceMappingURL=buildHlsMediaTimeline.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
2
|
-
import type { HlsManifestData } from '
|
|
2
|
+
import type { HlsManifestData } from './HlsManifestData';
|
|
3
3
|
export interface HlsManifestTransformerDeps {
|
|
4
4
|
readonly manifestController: ObservableValue<Promise<HlsManifestData>>;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ContentTypesValue } from '../../streaming/ContentTypesValue';
|
|
2
2
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
3
|
-
import type { HlsManifestData } from './
|
|
3
|
+
import type { HlsManifestData } from './HlsManifestData';
|
|
4
4
|
export interface HlsContentTypesValueDeps {
|
|
5
5
|
readonly manifestTransformed: ObservableValue<Promise<HlsManifestData>>;
|
|
6
6
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { HlsTrackLoadOptions } from './HlsTrack';
|
|
2
2
|
import type { Maybe, RequestInterceptor } from '@amazon/vinyl-util';
|
|
3
|
+
import type { AdController } from '../../ad/AdController';
|
|
3
4
|
import { createMediaSource } from '../../util/media/mediaSource';
|
|
4
5
|
import type { MediaSourceControllerImplDeps } from '../../streaming/buffering/MediaSourceController';
|
|
5
6
|
import { MediaSourceControllerImpl } from '../../streaming/buffering/MediaSourceController';
|
|
6
|
-
import { HlsManifestControllerImpl } from './HlsManifestController';
|
|
7
7
|
import type { ContentStreamingOptions } from '../../streaming/ContentStreamingOptions';
|
|
8
8
|
import { createHlsContentTypesValue } from './createHlsContentTypesValue';
|
|
9
|
+
import { createAllowedContentTypesValue } from '../../streaming/createAllowedContentTypesValue';
|
|
9
10
|
import { createContentStreamFactory } from '../../streaming/ContentStream';
|
|
10
11
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
11
12
|
import type { PlaybackController } from '../../playback/PlaybackController';
|
|
@@ -13,31 +14,42 @@ import type { DrmKeySystemResolver } from '../../drm/DrmKeySystemResolver';
|
|
|
13
14
|
import type { DrmController } from '../../drm/DrmController';
|
|
14
15
|
import type { Capabilities } from '../../client/Capabilities';
|
|
15
16
|
import type { PlaybackSource } from '../../playback/PlaybackSource';
|
|
16
|
-
import type { QualitySelectorImplOptions } from '../../streaming/abr/QualitySelectorImpl';
|
|
17
17
|
import { QualitySelectorImpl } from '../../streaming/abr/QualitySelectorImpl';
|
|
18
18
|
import type { VinylOptions } from '../../vinyl/VinylOptions';
|
|
19
19
|
import { createDefaultHlsManifestTransformer } from './createDefaultHlsManifestTransformer';
|
|
20
20
|
import type { BuildHlsMediaTimelineDeps } from './buildHlsMediaTimeline';
|
|
21
21
|
import { createDefaultMediaTimelineTransformer } from '../../streaming/createDefaultMediaTimelineTransformer';
|
|
22
|
-
import type { HlsManifestData } from './
|
|
22
|
+
import type { HlsManifestData } from './HlsManifestData';
|
|
23
|
+
import { SidecarTextTrackController } from '../../text/SidecarTextTrackController';
|
|
24
|
+
import type { ManifestControllerImplDeps } from '../../streaming/ManifestControllerImpl';
|
|
25
|
+
import { ManifestControllerImpl } from '../../streaming/ManifestControllerImpl';
|
|
23
26
|
export interface HlsFactoryDeps {
|
|
24
|
-
readonly options: ObservableValue<
|
|
25
|
-
readonly abr: QualitySelectorImplOptions;
|
|
26
|
-
readonly preferredAudioLanguage: string | null;
|
|
27
|
-
}>;
|
|
27
|
+
readonly options: ObservableValue<Pick<VinylOptions, 'abr' | 'preferredAudioLanguage' | 'allowedContentTypes' | 'preferDescriptiveAudio' | 'preferredTextLanguage' | 'textCueStyle'>>;
|
|
28
28
|
readonly playbackController: PlaybackController;
|
|
29
29
|
readonly playbackSource: PlaybackSource;
|
|
30
30
|
readonly drmKeySystemResolver: DrmKeySystemResolver;
|
|
31
31
|
readonly requestInterceptor: RequestInterceptor;
|
|
32
32
|
readonly drmController: DrmController;
|
|
33
33
|
readonly capabilities: Capabilities;
|
|
34
|
+
/**
|
|
35
|
+
* The HTML media element. Required to attach sidecar text tracks via
|
|
36
|
+
* `media.addTextTrack`.
|
|
37
|
+
*/
|
|
38
|
+
readonly media: HTMLMediaElement;
|
|
39
|
+
/**
|
|
40
|
+
* The player-level ad controller. MseTrack sets discovered ad breaks on it
|
|
41
|
+
* when the media timeline resolves.
|
|
42
|
+
*/
|
|
43
|
+
readonly adController: AdController;
|
|
34
44
|
}
|
|
35
45
|
export type HlsInitOptions = {
|
|
36
46
|
readonly streaming?: Maybe<ContentStreamingOptions>;
|
|
37
47
|
};
|
|
38
48
|
export declare function createHlsFactories(options: Maybe<HlsInitOptions>): (deps: HlsFactoryDeps) => (loadOptions: HlsTrackLoadOptions) => {
|
|
39
|
-
|
|
40
|
-
|
|
49
|
+
baseContentTypesValue: typeof createHlsContentTypesValue;
|
|
50
|
+
contentTypesValue: typeof createAllowedContentTypesValue;
|
|
51
|
+
manifestProvider: () => import("./createHlsManifestProvider").HlsManifestProvider;
|
|
52
|
+
manifestController: (deps: ManifestControllerImplDeps<HlsManifestData>) => ManifestControllerImpl<HlsManifestData>;
|
|
41
53
|
manifestTransformed: typeof createDefaultHlsManifestTransformer;
|
|
42
54
|
mediaQualityMetadataResolver: () => import("./HlsMediaQualityMetadataResolver").HlsMediaQualityMetadataResolver;
|
|
43
55
|
mediaSourceFactory: () => typeof createMediaSource;
|
|
@@ -56,19 +68,35 @@ export declare function createHlsFactories(options: Maybe<HlsInitOptions>): (dep
|
|
|
56
68
|
qualitySelector: (deps: {
|
|
57
69
|
options: ObservableValue<Pick<VinylOptions, "abr">>;
|
|
58
70
|
}) => QualitySelectorImpl;
|
|
71
|
+
preferredAudioLanguage: (deps: {
|
|
72
|
+
options: ObservableValue<Pick<VinylOptions, "preferredAudioLanguage">>;
|
|
73
|
+
}) => ObservableValue<string | readonly string[] | null>;
|
|
74
|
+
allowedContentTypes: (deps: {
|
|
75
|
+
options: ObservableValue<Pick<VinylOptions, "allowedContentTypes">>;
|
|
76
|
+
}) => ObservableValue<readonly import("../..").RestrictableContentType[] | null>;
|
|
77
|
+
preferDescriptiveAudio: (deps: {
|
|
78
|
+
options: ObservableValue<Pick<VinylOptions, "preferDescriptiveAudio">>;
|
|
79
|
+
}) => ObservableValue<boolean>;
|
|
80
|
+
abr: (deps: {
|
|
81
|
+
options: ObservableValue<Pick<VinylOptions, "abr">>;
|
|
82
|
+
}) => ObservableValue<import("../..").QualitySelectorImplOptions>;
|
|
59
83
|
mediaTimeline: (deps: BuildHlsMediaTimelineDeps & {
|
|
60
84
|
readonly manifestTransformed: ObservableValue<Promise<HlsManifestData>>;
|
|
61
85
|
}) => ObservableValue<Promise<import("../..").MediaTimeline>>;
|
|
62
86
|
mediaTimelineTransformed: typeof createDefaultMediaTimelineTransformer;
|
|
63
|
-
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
|
|
87
|
+
textTrackController: (deps: {
|
|
88
|
+
readonly media: HTMLMediaElement;
|
|
89
|
+
readonly manifestTransformed: ObservableValue<Promise<HlsManifestData>>;
|
|
90
|
+
readonly options: ObservableValue<Pick<VinylOptions, "preferredTextLanguage" | "textCueStyle">>;
|
|
91
|
+
}) => SidecarTextTrackController;
|
|
92
|
+
options: import("@amazon/vinyl-di").Factory<ObservableValue<Pick<VinylOptions, "abr" | "preferredAudioLanguage" | "preferredTextLanguage" | "preferDescriptiveAudio" | "allowedContentTypes" | "textCueStyle">>>;
|
|
67
93
|
playbackController: import("@amazon/vinyl-di").Factory<PlaybackController>;
|
|
68
94
|
playbackSource: import("@amazon/vinyl-di").Factory<PlaybackSource>;
|
|
69
95
|
drmKeySystemResolver: import("@amazon/vinyl-di").Factory<DrmKeySystemResolver>;
|
|
70
96
|
requestInterceptor: import("@amazon/vinyl-di").Factory<RequestInterceptor>;
|
|
71
97
|
drmController: import("@amazon/vinyl-di").Factory<DrmController>;
|
|
72
98
|
capabilities: import("@amazon/vinyl-di").Factory<Capabilities>;
|
|
99
|
+
media: import("@amazon/vinyl-di").Factory<HTMLMediaElement>;
|
|
100
|
+
adController: import("@amazon/vinyl-di").Factory<AdController>;
|
|
73
101
|
};
|
|
74
102
|
//# sourceMappingURL=createHlsFactories.d.ts.map
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { HlsMainPlaylist, HlsMediaPlaylist } from '@amazon/vinyl-hls-parser';
|
|
2
2
|
import type { Maybe, ReadonlyAbort, RequestInitOptions } from '@amazon/vinyl-util';
|
|
3
|
-
import type { HlsManifestProvider } from './
|
|
3
|
+
import type { HlsManifestProvider } from './createHlsManifestProvider';
|
|
4
4
|
export declare function createUrlHlsManifestProvider(url: string, requestInit?: RequestInitOptions): HlsManifestProvider;
|
|
5
5
|
export interface FetchMediaPlaylistOptions {
|
|
6
6
|
/** The variant URI to resolve against the base URL. */
|
|
@@ -8,7 +8,7 @@ export interface FetchMediaPlaylistOptions {
|
|
|
8
8
|
/** The base URL for resolving relative URIs. */
|
|
9
9
|
readonly baseUrl: string;
|
|
10
10
|
/** Variable definitions from the main playlist. */
|
|
11
|
-
readonly defines:
|
|
11
|
+
readonly defines: HlsMainPlaylist['defines'];
|
|
12
12
|
/** Optional request configuration. */
|
|
13
13
|
readonly requestInit?: Maybe<RequestInitOptions>;
|
|
14
14
|
/** Optional abort signal. */
|
|
@@ -17,5 +17,5 @@ export interface FetchMediaPlaylistOptions {
|
|
|
17
17
|
/**
|
|
18
18
|
* Fetches and parses an HLS media playlist from a variant URI.
|
|
19
19
|
*/
|
|
20
|
-
export declare function fetchMediaPlaylist(options: FetchMediaPlaylistOptions): Promise<
|
|
20
|
+
export declare function fetchMediaPlaylist(options: FetchMediaPlaylistOptions): Promise<HlsMediaPlaylist>;
|
|
21
21
|
//# sourceMappingURL=createUrlHlsManifestProvider.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
|
|
2
|
-
import { TrackBase } from '
|
|
3
|
-
import type { ReadonlyRanges, ReadonlySet } from '@amazon/vinyl-util';
|
|
4
|
-
import type { TrackPreloadOptions, TrackTypeId, TrackUri } from '
|
|
1
|
+
import type { TrackBaseDeps } from '../TrackBase';
|
|
2
|
+
import { TrackBase } from '../TrackBase';
|
|
3
|
+
import type { Maybe, ReadonlyRanges, ReadonlySet } from '@amazon/vinyl-util';
|
|
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';
|
|
@@ -11,6 +11,19 @@ import type { ContentTypesValue } from '../../streaming/ContentTypesValue';
|
|
|
11
11
|
import type { ManifestController } from '../../streaming/ManifestController';
|
|
12
12
|
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
13
13
|
import type { MediaTimeline } from '../../streaming/MediaTimeline';
|
|
14
|
+
import type { TextTrackController } from '../../text/TextTrack';
|
|
15
|
+
import type { TrackConfigOptions } from '../TrackFactory';
|
|
16
|
+
import type { TrackAds } from '../../ad/AdBreakInfo';
|
|
17
|
+
import type { VinylOptions } from '../../vinyl/VinylOptions';
|
|
18
|
+
/**
|
|
19
|
+
* How long to wait after all streams have data before checking whether a seek
|
|
20
|
+
* is still stuck, in seconds.
|
|
21
|
+
*/
|
|
22
|
+
export declare const SEEKING_STALL_TIME_CHECK = 0.1;
|
|
23
|
+
/**
|
|
24
|
+
* How far to nudge the playhead, in seconds, to recover a stuck seek.
|
|
25
|
+
*/
|
|
26
|
+
export declare const PLAYHEAD_NUDGE = 0.05;
|
|
14
27
|
export type MseTrackDeps = TrackBaseDeps & {
|
|
15
28
|
readonly contentTypesValue: ContentTypesValue;
|
|
16
29
|
readonly contentStreamFactory: (contentType: ContentType) => ContentStream;
|
|
@@ -19,6 +32,21 @@ export type MseTrackDeps = TrackBaseDeps & {
|
|
|
19
32
|
readonly playbackSource: PlaybackSource;
|
|
20
33
|
readonly mediaTimeline: ObservableValue<Promise<MediaTimeline>>;
|
|
21
34
|
readonly mediaTimelineTransformed: ObservableValue<Promise<MediaTimeline>>;
|
|
35
|
+
/**
|
|
36
|
+
* Optional sidecar text track controller for this track. When provided,
|
|
37
|
+
* the controller is exposed via {@link MseTrack.textTrackController} and
|
|
38
|
+
* disposed when the track itself is disposed.
|
|
39
|
+
*/
|
|
40
|
+
readonly textTrackController?: TextTrackController | null;
|
|
41
|
+
/**
|
|
42
|
+
* Player options that re-select this track's audio/streams. A change (not
|
|
43
|
+
* the initial value) is applied to this track immediately so it takes
|
|
44
|
+
* effect without waiting for the buffered media to drain.
|
|
45
|
+
*/
|
|
46
|
+
readonly preferredAudioLanguage: ObservableValue<VinylOptions['preferredAudioLanguage']>;
|
|
47
|
+
readonly allowedContentTypes: ObservableValue<VinylOptions['allowedContentTypes']>;
|
|
48
|
+
readonly preferDescriptiveAudio: ObservableValue<VinylOptions['preferDescriptiveAudio']>;
|
|
49
|
+
readonly abr: ObservableValue<VinylOptions['abr']>;
|
|
22
50
|
};
|
|
23
51
|
/**
|
|
24
52
|
* An MseTrack uses media source extensions for streaming.
|
|
@@ -26,10 +54,11 @@ export type MseTrackDeps = TrackBaseDeps & {
|
|
|
26
54
|
export declare class MseTrack extends TrackBase {
|
|
27
55
|
get [Symbol.toStringTag](): string;
|
|
28
56
|
protected readonly deps: MseTrackDeps;
|
|
57
|
+
get textTrackController(): (TextTrackController | null);
|
|
29
58
|
private readonly streams;
|
|
59
|
+
private stallNudgeTimer;
|
|
30
60
|
private readonly disposeAbort;
|
|
31
61
|
private lastPreloadOptions;
|
|
32
|
-
private activateOptions;
|
|
33
62
|
private readonly allFetchedRanges;
|
|
34
63
|
private readonly _fetchedRanges;
|
|
35
64
|
private _contentTypes;
|
|
@@ -38,23 +67,44 @@ export declare class MseTrack extends TrackBase {
|
|
|
38
67
|
private timeUpdateSub;
|
|
39
68
|
private _cachedPeriod;
|
|
40
69
|
constructor(uri: TrackUri, type: TrackTypeId, dependencyFactories: Factories<MseTrackDeps>);
|
|
70
|
+
/**
|
|
71
|
+
* Clears this track's buffers and rebuilds its streams so a changed
|
|
72
|
+
* audio/language/content-type selection applies immediately.
|
|
73
|
+
* {@link reset} with `hard` safely no-ops the rebuild for an inactive
|
|
74
|
+
* (cached) track.
|
|
75
|
+
*/
|
|
76
|
+
private reloadStreams;
|
|
77
|
+
/**
|
|
78
|
+
* Re-dispatches a sub-controller's load span stamped with this track's uri,
|
|
79
|
+
* so the span attributes to the track that owns it at the source.
|
|
80
|
+
*/
|
|
81
|
+
private dispatchLoadSpan;
|
|
41
82
|
/**
|
|
42
83
|
* Updates the cached qualities list from the transformed timeline for the current period.
|
|
43
84
|
*/
|
|
44
85
|
private updateQualities;
|
|
86
|
+
getAds(): Promise<TrackAds>;
|
|
45
87
|
/**
|
|
46
88
|
* Updates the cached unfiltered qualities list from the raw timeline for the current period.
|
|
47
89
|
*/
|
|
48
90
|
private updateQualitiesUnfiltered;
|
|
91
|
+
private updateSeekRanges;
|
|
92
|
+
/**
|
|
93
|
+
* Invokes a callback when the given timeline promise resolves and was not
|
|
94
|
+
* interrupted by that timeline changing or the track being disposed.
|
|
95
|
+
*
|
|
96
|
+
* Pass `mediaTimelineTransformed` for the playable (filtered) view or
|
|
97
|
+
* `mediaTimeline` for the raw, unfiltered view.
|
|
98
|
+
*/
|
|
99
|
+
private withTimeline;
|
|
49
100
|
/**
|
|
50
101
|
* Creates and adds a content stream for the given content type.
|
|
51
102
|
*
|
|
52
103
|
* @param contentType
|
|
53
104
|
*/
|
|
54
105
|
protected createStream(contentType: ContentType): void;
|
|
55
|
-
preload(trackOptions: TrackPreloadOptions, loadOptions:
|
|
106
|
+
preload(trackOptions: TrackPreloadOptions, loadOptions: Maybe<TrackConfigOptions>): void;
|
|
56
107
|
get contentTypes(): ReadonlySet<ContentType>;
|
|
57
|
-
set contentTypes(value: ReadonlySet<ContentType>);
|
|
58
108
|
get qualities(): (readonly MediaQualityMetadata[] | null);
|
|
59
109
|
get qualitiesUnfiltered(): (readonly MediaQualityMetadata[] | null);
|
|
60
110
|
get fetchedRanges(): ReadonlyRanges;
|
|
@@ -68,8 +118,8 @@ export declare class MseTrack extends TrackBase {
|
|
|
68
118
|
* Resets the track to recover from error states.
|
|
69
119
|
* Resets both the segment controller and buffering controller to clear failed segments and error conditions.
|
|
70
120
|
*/
|
|
71
|
-
reset(): void;
|
|
72
|
-
onActivated(loadOptions:
|
|
121
|
+
reset(hard?: boolean): void;
|
|
122
|
+
onActivated(loadOptions: Maybe<TrackConfigOptions>): void;
|
|
73
123
|
onDeactivated(): void;
|
|
74
124
|
getStreamingQuality(contentType: ContentType): MediaQualityMetadata | null;
|
|
75
125
|
getBufferingQuality(contentType: ContentType): MediaQualityMetadata | null;
|
|
@@ -81,6 +131,14 @@ export declare class MseTrack extends TrackBase {
|
|
|
81
131
|
private getStream;
|
|
82
132
|
private clearStreams;
|
|
83
133
|
get bufferingEnded(): boolean;
|
|
134
|
+
/**
|
|
135
|
+
* A seek only completes once every stream has data at the target, but on
|
|
136
|
+
* some platforms the element can stay stuck `seeking` even after that. Once
|
|
137
|
+
* all streams hold data, if we're still seeking a moment later, nudge the
|
|
138
|
+
* playhead to prod the element into completing the seek.
|
|
139
|
+
*/
|
|
140
|
+
private checkStalledSeek;
|
|
141
|
+
private setContentTypes;
|
|
84
142
|
dispose(): void;
|
|
85
143
|
}
|
|
86
144
|
//# sourceMappingURL=MseTrack.d.ts.map
|
|
@@ -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 {
|
|
7
|
-
import { SourceTrackBase } from '
|
|
6
|
+
import type { SourceTrackConfigOptions } from './SourceTrackBase';
|
|
7
|
+
import { SourceTrackBase } from './SourceTrackBase';
|
|
8
8
|
/**
|
|
9
9
|
* Dependencies for a SourceObjectTrack.
|
|
10
10
|
*/
|
|
@@ -21,7 +21,7 @@ export interface SourceObjectTrackLoadOptions extends TrackLoadOptions {
|
|
|
21
21
|
* Configuration options for the SourceObjectTrack.
|
|
22
22
|
* Will be provided on preload and activate.
|
|
23
23
|
*/
|
|
24
|
-
readonly config?: Maybe<
|
|
24
|
+
readonly config?: Maybe<SourceTrackConfigOptions>;
|
|
25
25
|
}
|
|
26
26
|
export declare function createSourceObjectTrackFactory(deps: SourceObjectTrackDeps): TrackFactory<SourceObjectTrackLoadOptions>;
|
|
27
27
|
export declare class SourceObjectTrack extends SourceTrackBase<MediaStream> {
|
|
@@ -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 {
|
|
6
|
-
import { SourceTrackBase } from '
|
|
5
|
+
import type { SourceTrackConfigOptions } from './SourceTrackBase';
|
|
6
|
+
import { SourceTrackBase } from './SourceTrackBase';
|
|
7
7
|
import type { PlaybackSource } from '../../playback/PlaybackSource';
|
|
8
8
|
/**
|
|
9
9
|
* Dependencies for a SourceTrack.
|
|
@@ -22,7 +22,7 @@ export interface SourceTrackLoadOptions extends TrackLoadOptions {
|
|
|
22
22
|
* Configuration options for the SourceTrack.
|
|
23
23
|
* Will be provided on preload and activate.
|
|
24
24
|
*/
|
|
25
|
-
readonly config?: Maybe<
|
|
25
|
+
readonly config?: Maybe<SourceTrackConfigOptions>;
|
|
26
26
|
}
|
|
27
27
|
export declare function createSourceTrackFactory(deps: SourceTrackDeps): TrackFactory<SourceTrackLoadOptions>;
|
|
28
28
|
export declare class SourceTrack extends SourceTrackBase<string> {
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import type { TrackBaseDeps
|
|
2
|
-
import { TrackBase } from '
|
|
3
|
-
import type { TrackEventMap, TrackPreloadOptions, TrackTypeId, TrackUri } from '
|
|
1
|
+
import type { TrackBaseDeps } 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
|
+
import type { TrackConfigOptions } from '../TrackFactory';
|
|
8
|
+
export interface SourceTrackConfigOptions extends TrackConfigOptions {
|
|
8
9
|
/**
|
|
9
10
|
* Quality metadata.
|
|
10
11
|
* May be used to configure DRM (for native HLS), codec, or other track metadata.
|
|
11
12
|
*/
|
|
12
13
|
readonly qualityMetadata?: Maybe<Partial<MediaQualityMetadata>>;
|
|
13
14
|
}
|
|
14
|
-
export declare const sourceTrackBaseOptionsValidator: ObjectSchema<
|
|
15
|
-
export declare abstract class SourceTrackBase<SrcType, EventMap extends TrackEventMap = TrackEventMap,
|
|
15
|
+
export declare const sourceTrackBaseOptionsValidator: ObjectSchema<SourceTrackConfigOptions>;
|
|
16
|
+
export declare abstract class SourceTrackBase<SrcType, EventMap extends TrackEventMap = TrackEventMap, TrackConfigOptions extends SourceTrackConfigOptions = SourceTrackConfigOptions> extends TrackBase<EventMap, TrackConfigOptions> {
|
|
16
17
|
readonly src: Promise<SrcType>;
|
|
17
18
|
protected readonly deps: TrackBaseDeps;
|
|
18
19
|
private readonly fixedPlaybackQuality;
|
|
19
20
|
private _resolvedSrc;
|
|
21
|
+
private activeSub;
|
|
20
22
|
protected constructor(uri: TrackUri, type: TrackTypeId, src: Promise<SrcType>, deps: TrackBaseDeps);
|
|
21
|
-
preload(trackOptions: TrackPreloadOptions, loadOptions:
|
|
23
|
+
preload(trackOptions: TrackPreloadOptions, loadOptions: Maybe<TrackConfigOptions>): void;
|
|
22
24
|
get contentTypes(): ReadonlySet<ContentType>;
|
|
23
25
|
get qualities(): (readonly MediaQualityMetadata[] | null);
|
|
24
26
|
get qualitiesUnfiltered(): (readonly MediaQualityMetadata[] | null);
|