@amazon/vinyl 1.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/README.md +25 -0
- package/dist/index.cjs +8103 -0
- package/dist/index.cjs.map +7 -0
- package/dist/index.js +8415 -0
- package/dist/index.js.map +7 -0
- package/dist/test/benchmark.css +71 -0
- package/dist/test/benchmark.es5.js +626 -0
- package/dist/test/benchmark.html +67 -0
- package/dist/test/benchmark.js +5256 -0
- package/dist/test/benchmark.js.map +7 -0
- package/dist/test/favicon.png +0 -0
- package/dist/test/index.html +61 -0
- package/dist/test/integ.es5.js +1602 -0
- package/dist/test/integ.js +42493 -0
- package/dist/test/integ.js.map +7 -0
- package/dist/test/jasmine.css +304 -0
- package/dist/test/jasmineHtml.es5.js +670 -0
- package/dist/test/jasmineHtml.js +10851 -0
- package/dist/test/jasmineHtml.js.map +7 -0
- package/dist/test/styles.css +42 -0
- package/dist/types/current/client/Capabilities.d.ts +73 -0
- package/dist/types/current/client/Capabilities.d.ts.map +1 -0
- package/dist/types/current/client/Capabilities.js +19 -0
- package/dist/types/current/client/CapabilitiesImpl.d.ts +27 -0
- package/dist/types/current/client/CapabilitiesImpl.d.ts.map +1 -0
- package/dist/types/current/client/CapabilitiesImpl.js +60 -0
- package/dist/types/current/client/Client.d.ts +11 -0
- package/dist/types/current/client/Client.d.ts.map +1 -0
- package/dist/types/current/client/Client.js +5 -0
- package/dist/types/current/drm/CencEncryptionScheme.d.ts +37 -0
- package/dist/types/current/drm/CencEncryptionScheme.d.ts.map +1 -0
- package/dist/types/current/drm/CencEncryptionScheme.js +39 -0
- package/dist/types/current/drm/DrmController.d.ts +103 -0
- package/dist/types/current/drm/DrmController.d.ts.map +1 -0
- package/dist/types/current/drm/DrmController.js +5 -0
- package/dist/types/current/drm/DrmControllerImpl.d.ts +112 -0
- package/dist/types/current/drm/DrmControllerImpl.d.ts.map +1 -0
- package/dist/types/current/drm/DrmControllerImpl.js +469 -0
- package/dist/types/current/drm/DrmKeySystem.d.ts +61 -0
- package/dist/types/current/drm/DrmKeySystem.d.ts.map +1 -0
- package/dist/types/current/drm/DrmKeySystem.js +77 -0
- package/dist/types/current/drm/DrmKeySystemResolver.d.ts +12 -0
- package/dist/types/current/drm/DrmKeySystemResolver.d.ts.map +1 -0
- package/dist/types/current/drm/DrmKeySystemResolver.js +21 -0
- package/dist/types/current/drm/DrmOptions.d.ts +92 -0
- package/dist/types/current/drm/DrmOptions.d.ts.map +1 -0
- package/dist/types/current/drm/DrmOptions.js +38 -0
- package/dist/types/current/drm/commonEme/CommonEme.d.ts +150 -0
- package/dist/types/current/drm/commonEme/CommonEme.d.ts.map +1 -0
- package/dist/types/current/drm/commonEme/CommonEme.js +46 -0
- package/dist/types/current/drm/commonEme/CommonEmeFactory.d.ts +28 -0
- package/dist/types/current/drm/commonEme/CommonEmeFactory.d.ts.map +1 -0
- package/dist/types/current/drm/commonEme/CommonEmeFactory.js +49 -0
- package/dist/types/current/drm/commonEme/EncryptedInitData.d.ts +9 -0
- package/dist/types/current/drm/commonEme/EncryptedInitData.d.ts.map +1 -0
- package/dist/types/current/drm/commonEme/EncryptedInitData.js +5 -0
- package/dist/types/current/drm/commonEme/MsCommonEme.d.ts +68 -0
- package/dist/types/current/drm/commonEme/MsCommonEme.d.ts.map +1 -0
- package/dist/types/current/drm/commonEme/MsCommonEme.js +143 -0
- package/dist/types/current/drm/commonEme/StandardCommonEme.d.ts +54 -0
- package/dist/types/current/drm/commonEme/StandardCommonEme.d.ts.map +1 -0
- package/dist/types/current/drm/commonEme/StandardCommonEme.js +126 -0
- package/dist/types/current/drm/commonEme/WebKitCommonEme.d.ts +63 -0
- package/dist/types/current/drm/commonEme/WebKitCommonEme.d.ts.map +1 -0
- package/dist/types/current/drm/commonEme/WebKitCommonEme.js +137 -0
- package/dist/types/current/drm/commonEme/createDrmErrorHandler.d.ts +3 -0
- package/dist/types/current/drm/commonEme/createDrmErrorHandler.d.ts.map +1 -0
- package/dist/types/current/drm/commonEme/createDrmErrorHandler.js +11 -0
- package/dist/types/current/drm/dom/HTMLMediaElement.d.ts +8 -0
- package/dist/types/current/drm/dom/HTMLMediaElement.d.ts.map +1 -0
- package/dist/types/current/drm/dom/HTMLMediaElement.js +5 -0
- package/dist/types/current/drm/dom/MSMediaKeys.d.ts +46 -0
- package/dist/types/current/drm/dom/MSMediaKeys.d.ts.map +1 -0
- package/dist/types/current/drm/dom/MSMediaKeys.js +5 -0
- package/dist/types/current/drm/dom/WebKitMediaKeys.d.ts +50 -0
- package/dist/types/current/drm/dom/WebKitMediaKeys.d.ts.map +1 -0
- package/dist/types/current/drm/dom/WebKitMediaKeys.js +5 -0
- package/dist/types/current/drm/error/DrmError.d.ts +16 -0
- package/dist/types/current/drm/error/DrmError.d.ts.map +1 -0
- package/dist/types/current/drm/error/DrmError.js +30 -0
- package/dist/types/current/drm/licenseProvider/LicenseProvider.d.ts +38 -0
- package/dist/types/current/drm/licenseProvider/LicenseProvider.d.ts.map +1 -0
- package/dist/types/current/drm/licenseProvider/LicenseProvider.js +10 -0
- package/dist/types/current/drm/licenseProvider/defaultLicenseProvider.d.ts +15 -0
- package/dist/types/current/drm/licenseProvider/defaultLicenseProvider.d.ts.map +1 -0
- package/dist/types/current/drm/licenseProvider/defaultLicenseProvider.js +28 -0
- package/dist/types/current/drm/util/createFairPlaySessionInitData.d.ts +11 -0
- package/dist/types/current/drm/util/createFairPlaySessionInitData.d.ts.map +1 -0
- package/dist/types/current/drm/util/createFairPlaySessionInitData.js +38 -0
- package/dist/types/current/drm/util/extractContentId.d.ts +8 -0
- package/dist/types/current/drm/util/extractContentId.d.ts.map +1 -0
- package/dist/types/current/drm/util/extractContentId.js +21 -0
- package/dist/types/current/drm/util/unpackPlayReadyChallenge.d.ts +46 -0
- package/dist/types/current/drm/util/unpackPlayReadyChallenge.d.ts.map +1 -0
- package/dist/types/current/drm/util/unpackPlayReadyChallenge.js +77 -0
- package/dist/types/current/event/BasicErrorEvent.d.ts +12 -0
- package/dist/types/current/event/BasicErrorEvent.d.ts.map +1 -0
- package/dist/types/current/event/BasicErrorEvent.js +5 -0
- package/dist/types/current/event/ChangeEvent.d.ts +12 -0
- package/dist/types/current/event/ChangeEvent.d.ts.map +1 -0
- package/dist/types/current/event/ChangeEvent.js +21 -0
- package/dist/types/current/global/PlayerRegistry.d.ts +52 -0
- package/dist/types/current/global/PlayerRegistry.d.ts.map +1 -0
- package/dist/types/current/global/PlayerRegistry.js +51 -0
- package/dist/types/current/global/configureVinylGlobal.d.ts +43 -0
- package/dist/types/current/global/configureVinylGlobal.d.ts.map +1 -0
- package/dist/types/current/global/configureVinylGlobal.js +58 -0
- package/dist/types/current/global/environment.d.ts +6 -0
- package/dist/types/current/global/environment.d.ts.map +1 -0
- package/dist/types/current/global/environment.js +12 -0
- package/dist/types/current/global/globalRef.d.ts +32 -0
- package/dist/types/current/global/globalRef.d.ts.map +1 -0
- package/dist/types/current/global/globalRef.js +50 -0
- package/dist/types/current/global/initializeVinylGlobal.d.ts +2 -0
- package/dist/types/current/global/initializeVinylGlobal.d.ts.map +1 -0
- package/dist/types/current/global/initializeVinylGlobal.js +10 -0
- package/dist/types/current/index.d.ts +132 -0
- package/dist/types/current/index.d.ts.map +1 -0
- package/dist/types/current/index.js +131 -0
- package/dist/types/current/patch/media/HtmlMediaElementPatch.d.ts +3 -0
- package/dist/types/current/patch/media/HtmlMediaElementPatch.d.ts.map +1 -0
- package/dist/types/current/patch/media/HtmlMediaElementPatch.js +5 -0
- package/dist/types/current/patch/media/MediaElementPatchOptions.d.ts +19 -0
- package/dist/types/current/patch/media/MediaElementPatchOptions.d.ts.map +1 -0
- package/dist/types/current/patch/media/MediaElementPatchOptions.js +16 -0
- package/dist/types/current/patch/media/patchMediaElement.d.ts +9 -0
- package/dist/types/current/patch/media/patchMediaElement.d.ts.map +1 -0
- package/dist/types/current/patch/media/patchMediaElement.js +15 -0
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts +17 -0
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts.map +1 -0
- package/dist/types/current/patch/media/patches/createPreventStallsPatch.js +55 -0
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +26 -0
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts.map +1 -0
- package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.js +218 -0
- package/dist/types/current/playback/PlaybackController.d.ts +56 -0
- package/dist/types/current/playback/PlaybackController.d.ts.map +1 -0
- package/dist/types/current/playback/PlaybackController.js +8 -0
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts +181 -0
- package/dist/types/current/playback/PlaybackControllerImpl.d.ts.map +1 -0
- package/dist/types/current/playback/PlaybackControllerImpl.js +495 -0
- package/dist/types/current/playback/PlaybackSource.d.ts +34 -0
- package/dist/types/current/playback/PlaybackSource.d.ts.map +1 -0
- package/dist/types/current/playback/PlaybackSource.js +5 -0
- package/dist/types/current/playback/PlaybackSourceImpl.d.ts +19 -0
- package/dist/types/current/playback/PlaybackSourceImpl.d.ts.map +1 -0
- package/dist/types/current/playback/PlaybackSourceImpl.js +43 -0
- package/dist/types/current/playback/ReadonlyPlaybackController.d.ts +421 -0
- package/dist/types/current/playback/ReadonlyPlaybackController.d.ts.map +1 -0
- package/dist/types/current/playback/ReadonlyPlaybackController.js +140 -0
- package/dist/types/current/playback/error/InvalidSeekError.d.ts +16 -0
- package/dist/types/current/playback/error/InvalidSeekError.d.ts.map +1 -0
- package/dist/types/current/playback/error/InvalidSeekError.js +33 -0
- package/dist/types/current/playback/error/ReportableMediaError.d.ts +16 -0
- package/dist/types/current/playback/error/ReportableMediaError.d.ts.map +1 -0
- package/dist/types/current/playback/error/ReportableMediaError.js +38 -0
- package/dist/types/current/playback/logging/mediaErrorToJson.d.ts +7 -0
- package/dist/types/current/playback/logging/mediaErrorToJson.d.ts.map +1 -0
- package/dist/types/current/playback/logging/mediaErrorToJson.js +40 -0
- package/dist/types/current/playback/logging/playbackStateLoggingHandler.d.ts +15 -0
- package/dist/types/current/playback/logging/playbackStateLoggingHandler.d.ts.map +1 -0
- package/dist/types/current/playback/logging/playbackStateLoggingHandler.js +78 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationController.d.ts +25 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationController.d.ts.map +1 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationController.js +5 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationControllerImpl.d.ts +44 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationControllerImpl.d.ts.map +1 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationControllerImpl.js +95 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationControllerImplOptions.d.ts +28 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationControllerImplOptions.d.ts.map +1 -0
- package/dist/types/current/playback/loudness/LoudnessNormalizationControllerImplOptions.js +15 -0
- package/dist/types/current/playback/nextHasMetadata.d.ts +4 -0
- package/dist/types/current/playback/nextHasMetadata.d.ts.map +1 -0
- package/dist/types/current/playback/nextHasMetadata.js +10 -0
- package/dist/types/current/streaming/ContentStream.d.ts +116 -0
- package/dist/types/current/streaming/ContentStream.d.ts.map +1 -0
- package/dist/types/current/streaming/ContentStream.js +94 -0
- package/dist/types/current/streaming/ContentStreamingOptions.d.ts +13 -0
- package/dist/types/current/streaming/ContentStreamingOptions.d.ts.map +1 -0
- package/dist/types/current/streaming/ContentStreamingOptions.js +5 -0
- package/dist/types/current/streaming/ContentTypesValue.d.ts +8 -0
- package/dist/types/current/streaming/ContentTypesValue.d.ts.map +1 -0
- package/dist/types/current/streaming/ContentTypesValue.js +5 -0
- package/dist/types/current/streaming/DescriptorRecord.d.ts +31 -0
- package/dist/types/current/streaming/DescriptorRecord.d.ts.map +1 -0
- package/dist/types/current/streaming/DescriptorRecord.js +26 -0
- package/dist/types/current/streaming/DrmInitDataType.d.ts +6 -0
- package/dist/types/current/streaming/DrmInitDataType.d.ts.map +1 -0
- package/dist/types/current/streaming/DrmInitDataType.js +5 -0
- package/dist/types/current/streaming/ManifestController.d.ts +13 -0
- package/dist/types/current/streaming/ManifestController.d.ts.map +1 -0
- package/dist/types/current/streaming/ManifestController.js +5 -0
- package/dist/types/current/streaming/MediaQualityMetadata.d.ts +141 -0
- package/dist/types/current/streaming/MediaQualityMetadata.d.ts.map +1 -0
- package/dist/types/current/streaming/MediaQualityMetadata.js +73 -0
- package/dist/types/current/streaming/MediaTimeline.d.ts +45 -0
- package/dist/types/current/streaming/MediaTimeline.d.ts.map +1 -0
- package/dist/types/current/streaming/MediaTimeline.js +17 -0
- package/dist/types/current/streaming/SegmentController.d.ts +117 -0
- package/dist/types/current/streaming/SegmentController.d.ts.map +1 -0
- package/dist/types/current/streaming/SegmentController.js +20 -0
- package/dist/types/current/streaming/SegmentControllerImpl.d.ts +170 -0
- package/dist/types/current/streaming/SegmentControllerImpl.d.ts.map +1 -0
- package/dist/types/current/streaming/SegmentControllerImpl.js +494 -0
- package/dist/types/current/streaming/SegmentDataSlot.d.ts +58 -0
- package/dist/types/current/streaming/SegmentDataSlot.d.ts.map +1 -0
- package/dist/types/current/streaming/SegmentDataSlot.js +97 -0
- package/dist/types/current/streaming/SegmentPrefetch.d.ts +62 -0
- package/dist/types/current/streaming/SegmentPrefetch.d.ts.map +1 -0
- package/dist/types/current/streaming/SegmentPrefetch.js +62 -0
- package/dist/types/current/streaming/SegmentReference.d.ts +48 -0
- package/dist/types/current/streaming/SegmentReference.d.ts.map +1 -0
- package/dist/types/current/streaming/SegmentReference.js +5 -0
- package/dist/types/current/streaming/StreamingEventMap.d.ts +57 -0
- package/dist/types/current/streaming/StreamingEventMap.d.ts.map +1 -0
- package/dist/types/current/streaming/StreamingEventMap.js +20 -0
- package/dist/types/current/streaming/abr/QualitySelector.d.ts +33 -0
- package/dist/types/current/streaming/abr/QualitySelector.d.ts.map +1 -0
- package/dist/types/current/streaming/abr/QualitySelector.js +5 -0
- package/dist/types/current/streaming/abr/QualitySelectorImpl.d.ts +100 -0
- package/dist/types/current/streaming/abr/QualitySelectorImpl.d.ts.map +1 -0
- package/dist/types/current/streaming/abr/QualitySelectorImpl.js +147 -0
- package/dist/types/current/streaming/buffering/BufferingController.d.ts +253 -0
- package/dist/types/current/streaming/buffering/BufferingController.d.ts.map +1 -0
- package/dist/types/current/streaming/buffering/BufferingController.js +482 -0
- package/dist/types/current/streaming/buffering/MediaSourceController.d.ts +103 -0
- package/dist/types/current/streaming/buffering/MediaSourceController.d.ts.map +1 -0
- package/dist/types/current/streaming/buffering/MediaSourceController.js +116 -0
- package/dist/types/current/streaming/buffering/SourceBufferController.d.ts +91 -0
- package/dist/types/current/streaming/buffering/SourceBufferController.d.ts.map +1 -0
- package/dist/types/current/streaming/buffering/SourceBufferController.js +150 -0
- package/dist/types/current/streaming/buffering/error/SourceBufferError.d.ts +9 -0
- package/dist/types/current/streaming/buffering/error/SourceBufferError.d.ts.map +1 -0
- package/dist/types/current/streaming/buffering/error/SourceBufferError.js +18 -0
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts +18 -0
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts.map +1 -0
- package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.js +30 -0
- package/dist/types/current/streaming/mediaTimelineFilter.d.ts +18 -0
- package/dist/types/current/streaming/mediaTimelineFilter.d.ts.map +1 -0
- package/dist/types/current/streaming/mediaTimelineFilter.js +48 -0
- package/dist/types/current/streaming/mediaTimelineLanguageFilter.d.ts +14 -0
- package/dist/types/current/streaming/mediaTimelineLanguageFilter.d.ts.map +1 -0
- package/dist/types/current/streaming/mediaTimelineLanguageFilter.js +36 -0
- package/dist/types/current/streaming/util/segment.d.ts +28 -0
- package/dist/types/current/streaming/util/segment.d.ts.map +1 -0
- package/dist/types/current/streaming/util/segment.js +39 -0
- package/dist/types/current/track/AutoResetController.d.ts +83 -0
- package/dist/types/current/track/AutoResetController.d.ts.map +1 -0
- package/dist/types/current/track/AutoResetController.js +91 -0
- package/dist/types/current/track/Track.d.ts +153 -0
- package/dist/types/current/track/Track.d.ts.map +1 -0
- package/dist/types/current/track/Track.js +5 -0
- package/dist/types/current/track/TrackBase.d.ts +109 -0
- package/dist/types/current/track/TrackBase.d.ts.map +1 -0
- package/dist/types/current/track/TrackBase.js +127 -0
- package/dist/types/current/track/TrackController.d.ts +244 -0
- package/dist/types/current/track/TrackController.d.ts.map +1 -0
- package/dist/types/current/track/TrackController.js +312 -0
- package/dist/types/current/track/TrackFactory.d.ts +50 -0
- package/dist/types/current/track/TrackFactory.d.ts.map +1 -0
- package/dist/types/current/track/TrackFactory.js +31 -0
- package/dist/types/current/track/createSegmentDataProvider.d.ts +18 -0
- package/dist/types/current/track/createSegmentDataProvider.d.ts.map +1 -0
- package/dist/types/current/track/createSegmentDataProvider.js +57 -0
- package/dist/types/current/track/createVinylTrackFactories.d.ts +19 -0
- package/dist/types/current/track/createVinylTrackFactories.d.ts.map +1 -0
- package/dist/types/current/track/createVinylTrackFactories.js +20 -0
- package/dist/types/current/track/dash/DashManifestController.d.ts +43 -0
- package/dist/types/current/track/dash/DashManifestController.d.ts.map +1 -0
- package/dist/types/current/track/dash/DashManifestController.js +83 -0
- package/dist/types/current/track/dash/DashManifestProvider.d.ts +19 -0
- package/dist/types/current/track/dash/DashManifestProvider.d.ts.map +1 -0
- package/dist/types/current/track/dash/DashManifestProvider.js +5 -0
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.d.ts +43 -0
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.d.ts.map +1 -0
- package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.js +184 -0
- package/dist/types/current/track/dash/DashTrack.d.ts +46 -0
- package/dist/types/current/track/dash/DashTrack.d.ts.map +1 -0
- package/dist/types/current/track/dash/DashTrack.js +29 -0
- package/dist/types/current/track/dash/buildDashMediaTimeline.d.ts +9 -0
- package/dist/types/current/track/dash/buildDashMediaTimeline.d.ts.map +1 -0
- package/dist/types/current/track/dash/buildDashMediaTimeline.js +32 -0
- package/dist/types/current/track/dash/createDashContentStreamFactories.d.ts +33 -0
- package/dist/types/current/track/dash/createDashContentStreamFactories.d.ts.map +1 -0
- package/dist/types/current/track/dash/createDashContentStreamFactories.js +22 -0
- package/dist/types/current/track/dash/createDashContentTypesValue.d.ts +14 -0
- package/dist/types/current/track/dash/createDashContentTypesValue.d.ts.map +1 -0
- package/dist/types/current/track/dash/createDashContentTypesValue.js +33 -0
- package/dist/types/current/track/dash/createDashFactories.d.ts +84 -0
- package/dist/types/current/track/dash/createDashFactories.d.ts.map +1 -0
- package/dist/types/current/track/dash/createDashFactories.js +51 -0
- package/dist/types/current/track/dash/createDashManifestProvider.d.ts +12 -0
- package/dist/types/current/track/dash/createDashManifestProvider.d.ts.map +1 -0
- package/dist/types/current/track/dash/createDashManifestProvider.js +18 -0
- package/dist/types/current/track/dash/createDefaultDashManifestTransformer.d.ts +21 -0
- package/dist/types/current/track/dash/createDefaultDashManifestTransformer.d.ts.map +1 -0
- package/dist/types/current/track/dash/createDefaultDashManifestTransformer.js +30 -0
- package/dist/types/current/track/dash/createSegmentControllerFactory.d.ts +19 -0
- package/dist/types/current/track/dash/createSegmentControllerFactory.d.ts.map +1 -0
- package/dist/types/current/track/dash/createSegmentControllerFactory.js +13 -0
- package/dist/types/current/track/dash/manifestTransformUtils.d.ts +30 -0
- package/dist/types/current/track/dash/manifestTransformUtils.d.ts.map +1 -0
- package/dist/types/current/track/dash/manifestTransformUtils.js +85 -0
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +27 -0
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.d.ts.map +1 -0
- package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.js +333 -0
- package/dist/types/current/track/dash/urlDashManifestProvider.d.ts +17 -0
- package/dist/types/current/track/dash/urlDashManifestProvider.d.ts.map +1 -0
- package/dist/types/current/track/dash/urlDashManifestProvider.js +38 -0
- package/dist/types/current/track/dash/util/mimeType.d.ts +12 -0
- package/dist/types/current/track/dash/util/mimeType.d.ts.map +1 -0
- package/dist/types/current/track/dash/util/mimeType.js +45 -0
- package/dist/types/current/track/dash/util/mpd.d.ts +72 -0
- package/dist/types/current/track/dash/util/mpd.d.ts.map +1 -0
- package/dist/types/current/track/dash/util/mpd.js +134 -0
- package/dist/types/current/track/dash/util/uriResolution.d.ts +88 -0
- package/dist/types/current/track/dash/util/uriResolution.d.ts.map +1 -0
- package/dist/types/current/track/dash/util/uriResolution.js +76 -0
- package/dist/types/current/track/filters/keySystemFilter.d.ts +10 -0
- package/dist/types/current/track/filters/keySystemFilter.d.ts.map +1 -0
- package/dist/types/current/track/filters/keySystemFilter.js +16 -0
- package/dist/types/current/track/filters/languageFilter.d.ts +29 -0
- package/dist/types/current/track/filters/languageFilter.d.ts.map +1 -0
- package/dist/types/current/track/filters/languageFilter.js +270 -0
- package/dist/types/current/track/filters/resourceTypeFilter.d.ts +10 -0
- package/dist/types/current/track/filters/resourceTypeFilter.d.ts.map +1 -0
- package/dist/types/current/track/filters/resourceTypeFilter.js +16 -0
- package/dist/types/current/track/filters/sampleRateFilter.d.ts +13 -0
- package/dist/types/current/track/filters/sampleRateFilter.d.ts.map +1 -0
- package/dist/types/current/track/filters/sampleRateFilter.js +40 -0
- package/dist/types/current/track/hls/HlsManifestController.d.ts +28 -0
- package/dist/types/current/track/hls/HlsManifestController.d.ts.map +1 -0
- package/dist/types/current/track/hls/HlsManifestController.js +72 -0
- package/dist/types/current/track/hls/HlsManifestProvider.d.ts +21 -0
- package/dist/types/current/track/hls/HlsManifestProvider.d.ts.map +1 -0
- package/dist/types/current/track/hls/HlsManifestProvider.js +5 -0
- package/dist/types/current/track/hls/HlsMediaQualityMetadataResolver.d.ts +5 -0
- package/dist/types/current/track/hls/HlsMediaQualityMetadataResolver.d.ts.map +1 -0
- package/dist/types/current/track/hls/HlsMediaQualityMetadataResolver.js +44 -0
- package/dist/types/current/track/hls/HlsTrack.d.ts +30 -0
- package/dist/types/current/track/hls/HlsTrack.d.ts.map +1 -0
- package/dist/types/current/track/hls/HlsTrack.js +29 -0
- package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts +13 -0
- package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts.map +1 -0
- package/dist/types/current/track/hls/buildHlsMediaTimeline.js +129 -0
- package/dist/types/current/track/hls/createDefaultHlsManifestTransformer.d.ts +11 -0
- package/dist/types/current/track/hls/createDefaultHlsManifestTransformer.d.ts.map +1 -0
- package/dist/types/current/track/hls/createDefaultHlsManifestTransformer.js +21 -0
- package/dist/types/current/track/hls/createHlsContentStreamFactories.d.ts +27 -0
- package/dist/types/current/track/hls/createHlsContentStreamFactories.d.ts.map +1 -0
- package/dist/types/current/track/hls/createHlsContentStreamFactories.js +19 -0
- package/dist/types/current/track/hls/createHlsContentTypesValue.d.ts +15 -0
- package/dist/types/current/track/hls/createHlsContentTypesValue.d.ts.map +1 -0
- package/dist/types/current/track/hls/createHlsContentTypesValue.js +40 -0
- package/dist/types/current/track/hls/createHlsFactories.d.ts +73 -0
- package/dist/types/current/track/hls/createHlsFactories.d.ts.map +1 -0
- package/dist/types/current/track/hls/createHlsFactories.js +45 -0
- package/dist/types/current/track/hls/createUrlHlsManifestProvider.d.ts +21 -0
- package/dist/types/current/track/hls/createUrlHlsManifestProvider.d.ts.map +1 -0
- package/dist/types/current/track/hls/createUrlHlsManifestProvider.js +40 -0
- package/dist/types/current/track/hls/index.d.ts +10 -0
- package/dist/types/current/track/hls/index.d.ts.map +1 -0
- package/dist/types/current/track/hls/index.js +12 -0
- package/dist/types/current/track/hls/util/hlsByteRangeToMediaRange.d.ts +5 -0
- package/dist/types/current/track/hls/util/hlsByteRangeToMediaRange.d.ts.map +1 -0
- package/dist/types/current/track/hls/util/hlsByteRangeToMediaRange.js +8 -0
- package/dist/types/current/track/hls/util/hlsSegmentTime.d.ts +10 -0
- package/dist/types/current/track/hls/util/hlsSegmentTime.d.ts.map +1 -0
- package/dist/types/current/track/hls/util/hlsSegmentTime.js +35 -0
- package/dist/types/current/track/mse/MseTrack.d.ts +85 -0
- package/dist/types/current/track/mse/MseTrack.d.ts.map +1 -0
- package/dist/types/current/track/mse/MseTrack.js +281 -0
- package/dist/types/current/track/mse/codec.d.ts +16 -0
- package/dist/types/current/track/mse/codec.d.ts.map +1 -0
- package/dist/types/current/track/mse/codec.js +65 -0
- package/dist/types/current/track/source/FixedPlaybackQuality.d.ts +38 -0
- package/dist/types/current/track/source/FixedPlaybackQuality.d.ts.map +1 -0
- package/dist/types/current/track/source/FixedPlaybackQuality.js +115 -0
- package/dist/types/current/track/source/SourceObjectTrack.d.ts +33 -0
- package/dist/types/current/track/source/SourceObjectTrack.d.ts.map +1 -0
- package/dist/types/current/track/source/SourceObjectTrack.js +41 -0
- package/dist/types/current/track/source/SourceTrack.d.ts +34 -0
- package/dist/types/current/track/source/SourceTrack.d.ts.map +1 -0
- package/dist/types/current/track/source/SourceTrack.js +44 -0
- package/dist/types/current/track/source/SourceTrackBase.d.ts +33 -0
- package/dist/types/current/track/source/SourceTrackBase.d.ts.map +1 -0
- package/dist/types/current/track/source/SourceTrackBase.js +83 -0
- package/dist/types/current/tsconfig.tsbuildinfo +1 -0
- package/dist/types/current/util/media/getAudioContext.d.ts +22 -0
- package/dist/types/current/util/media/getAudioContext.d.ts.map +1 -0
- package/dist/types/current/util/media/getAudioContext.js +31 -0
- package/dist/types/current/util/media/mediaSource.d.ts +40 -0
- package/dist/types/current/util/media/mediaSource.d.ts.map +1 -0
- package/dist/types/current/util/media/mediaSource.js +91 -0
- package/dist/types/current/util/media/sourceBuffer.d.ts +9 -0
- package/dist/types/current/util/media/sourceBuffer.d.ts.map +1 -0
- package/dist/types/current/util/media/sourceBuffer.js +41 -0
- package/dist/types/current/vinyl/ReadonlyPlaybackStreamingState.d.ts +34 -0
- package/dist/types/current/vinyl/ReadonlyPlaybackStreamingState.d.ts.map +1 -0
- package/dist/types/current/vinyl/ReadonlyPlaybackStreamingState.js +5 -0
- package/dist/types/current/vinyl/VinylDeps.d.ts +41 -0
- package/dist/types/current/vinyl/VinylDeps.d.ts.map +1 -0
- package/dist/types/current/vinyl/VinylDeps.js +5 -0
- package/dist/types/current/vinyl/VinylOptions.d.ts +19 -0
- package/dist/types/current/vinyl/VinylOptions.d.ts.map +1 -0
- package/dist/types/current/vinyl/VinylOptions.js +17 -0
- package/dist/types/current/vinyl/VinylPatchOptions.d.ts +10 -0
- package/dist/types/current/vinyl/VinylPatchOptions.d.ts.map +1 -0
- package/dist/types/current/vinyl/VinylPatchOptions.js +11 -0
- package/dist/types/current/vinyl/VinylPlayer.d.ts +197 -0
- package/dist/types/current/vinyl/VinylPlayer.d.ts.map +1 -0
- package/dist/types/current/vinyl/VinylPlayer.js +455 -0
- package/dist/types/current/vinyl/createVinylFactories.d.ts +177 -0
- package/dist/types/current/vinyl/createVinylFactories.d.ts.map +1 -0
- package/dist/types/current/vinyl/createVinylFactories.js +57 -0
- package/dist/types/current/vinyl/playerConfigFactory.d.ts +5 -0
- package/dist/types/current/vinyl/playerConfigFactory.d.ts.map +1 -0
- package/dist/types/current/vinyl/playerConfigFactory.js +15 -0
- package/dist/types/ts3.7/client/Capabilities.d.ts +73 -0
- package/dist/types/ts3.7/client/CapabilitiesImpl.d.ts +27 -0
- package/dist/types/ts3.7/client/Client.d.ts +11 -0
- package/dist/types/ts3.7/drm/CencEncryptionScheme.d.ts +37 -0
- package/dist/types/ts3.7/drm/DrmController.d.ts +103 -0
- package/dist/types/ts3.7/drm/DrmControllerImpl.d.ts +109 -0
- package/dist/types/ts3.7/drm/DrmKeySystem.d.ts +61 -0
- package/dist/types/ts3.7/drm/DrmKeySystemResolver.d.ts +12 -0
- package/dist/types/ts3.7/drm/DrmOptions.d.ts +92 -0
- package/dist/types/ts3.7/drm/commonEme/CommonEme.d.ts +150 -0
- package/dist/types/ts3.7/drm/commonEme/CommonEmeFactory.d.ts +28 -0
- package/dist/types/ts3.7/drm/commonEme/EncryptedInitData.d.ts +9 -0
- package/dist/types/ts3.7/drm/commonEme/MsCommonEme.d.ts +68 -0
- package/dist/types/ts3.7/drm/commonEme/StandardCommonEme.d.ts +54 -0
- package/dist/types/ts3.7/drm/commonEme/WebKitCommonEme.d.ts +63 -0
- package/dist/types/ts3.7/drm/commonEme/createDrmErrorHandler.d.ts +3 -0
- package/dist/types/ts3.7/drm/dom/HTMLMediaElement.d.ts +8 -0
- package/dist/types/ts3.7/drm/dom/MSMediaKeys.d.ts +46 -0
- package/dist/types/ts3.7/drm/dom/WebKitMediaKeys.d.ts +50 -0
- package/dist/types/ts3.7/drm/error/DrmError.d.ts +16 -0
- package/dist/types/ts3.7/drm/licenseProvider/LicenseProvider.d.ts +38 -0
- package/dist/types/ts3.7/drm/licenseProvider/defaultLicenseProvider.d.ts +15 -0
- package/dist/types/ts3.7/drm/util/createFairPlaySessionInitData.d.ts +11 -0
- package/dist/types/ts3.7/drm/util/extractContentId.d.ts +8 -0
- package/dist/types/ts3.7/drm/util/unpackPlayReadyChallenge.d.ts +46 -0
- package/dist/types/ts3.7/event/BasicErrorEvent.d.ts +12 -0
- package/dist/types/ts3.7/event/ChangeEvent.d.ts +12 -0
- package/dist/types/ts3.7/global/PlayerRegistry.d.ts +52 -0
- package/dist/types/ts3.7/global/configureVinylGlobal.d.ts +43 -0
- package/dist/types/ts3.7/global/environment.d.ts +6 -0
- package/dist/types/ts3.7/global/globalRef.d.ts +26 -0
- package/dist/types/ts3.7/global/initializeVinylGlobal.d.ts +2 -0
- package/dist/types/ts3.7/index.d.ts +132 -0
- package/dist/types/ts3.7/patch/media/HtmlMediaElementPatch.d.ts +3 -0
- package/dist/types/ts3.7/patch/media/MediaElementPatchOptions.d.ts +19 -0
- package/dist/types/ts3.7/patch/media/patchMediaElement.d.ts +9 -0
- package/dist/types/ts3.7/patch/media/patches/createPreventStallsPatch.d.ts +17 -0
- package/dist/types/ts3.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +26 -0
- package/dist/types/ts3.7/playback/PlaybackController.d.ts +56 -0
- package/dist/types/ts3.7/playback/PlaybackControllerImpl.d.ts +178 -0
- package/dist/types/ts3.7/playback/PlaybackSource.d.ts +34 -0
- package/dist/types/ts3.7/playback/PlaybackSourceImpl.d.ts +19 -0
- package/dist/types/ts3.7/playback/ReadonlyPlaybackController.d.ts +462 -0
- package/dist/types/ts3.7/playback/error/InvalidSeekError.d.ts +16 -0
- package/dist/types/ts3.7/playback/error/ReportableMediaError.d.ts +16 -0
- package/dist/types/ts3.7/playback/logging/mediaErrorToJson.d.ts +7 -0
- package/dist/types/ts3.7/playback/logging/playbackStateLoggingHandler.d.ts +15 -0
- package/dist/types/ts3.7/playback/loudness/LoudnessNormalizationController.d.ts +25 -0
- package/dist/types/ts3.7/playback/loudness/LoudnessNormalizationControllerImpl.d.ts +41 -0
- package/dist/types/ts3.7/playback/loudness/LoudnessNormalizationControllerImplOptions.d.ts +28 -0
- package/dist/types/ts3.7/playback/nextHasMetadata.d.ts +4 -0
- package/dist/types/ts3.7/streaming/ContentStream.d.ts +116 -0
- package/dist/types/ts3.7/streaming/ContentStreamingOptions.d.ts +13 -0
- package/dist/types/ts3.7/streaming/ContentTypesValue.d.ts +8 -0
- package/dist/types/ts3.7/streaming/DescriptorRecord.d.ts +31 -0
- package/dist/types/ts3.7/streaming/DrmInitDataType.d.ts +6 -0
- package/dist/types/ts3.7/streaming/ManifestController.d.ts +13 -0
- package/dist/types/ts3.7/streaming/MediaQualityMetadata.d.ts +145 -0
- package/dist/types/ts3.7/streaming/MediaTimeline.d.ts +45 -0
- package/dist/types/ts3.7/streaming/SegmentController.d.ts +117 -0
- package/dist/types/ts3.7/streaming/SegmentControllerImpl.d.ts +167 -0
- package/dist/types/ts3.7/streaming/SegmentDataSlot.d.ts +55 -0
- package/dist/types/ts3.7/streaming/SegmentPrefetch.d.ts +62 -0
- package/dist/types/ts3.7/streaming/SegmentReference.d.ts +48 -0
- package/dist/types/ts3.7/streaming/StreamingEventMap.d.ts +68 -0
- package/dist/types/ts3.7/streaming/abr/QualitySelector.d.ts +33 -0
- package/dist/types/ts3.7/streaming/abr/QualitySelectorImpl.d.ts +100 -0
- package/dist/types/ts3.7/streaming/buffering/BufferingController.d.ts +239 -0
- package/dist/types/ts3.7/streaming/buffering/MediaSourceController.d.ts +103 -0
- package/dist/types/ts3.7/streaming/buffering/SourceBufferController.d.ts +91 -0
- package/dist/types/ts3.7/streaming/buffering/error/SourceBufferError.d.ts +9 -0
- package/dist/types/ts3.7/streaming/createDefaultMediaTimelineTransformer.d.ts +18 -0
- package/dist/types/ts3.7/streaming/mediaTimelineFilter.d.ts +18 -0
- package/dist/types/ts3.7/streaming/mediaTimelineLanguageFilter.d.ts +14 -0
- package/dist/types/ts3.7/streaming/util/segment.d.ts +28 -0
- package/dist/types/ts3.7/track/AutoResetController.d.ts +83 -0
- package/dist/types/ts3.7/track/Track.d.ts +153 -0
- package/dist/types/ts3.7/track/TrackBase.d.ts +109 -0
- package/dist/types/ts3.7/track/TrackController.d.ts +242 -0
- package/dist/types/ts3.7/track/TrackFactory.d.ts +50 -0
- package/dist/types/ts3.7/track/createSegmentDataProvider.d.ts +18 -0
- package/dist/types/ts3.7/track/createVinylTrackFactories.d.ts +19 -0
- package/dist/types/ts3.7/track/dash/DashManifestController.d.ts +39 -0
- package/dist/types/ts3.7/track/dash/DashManifestProvider.d.ts +19 -0
- package/dist/types/ts3.7/track/dash/DashMediaQualityMetadataResolver.d.ts +43 -0
- package/dist/types/ts3.7/track/dash/DashTrack.d.ts +46 -0
- package/dist/types/ts3.7/track/dash/buildDashMediaTimeline.d.ts +9 -0
- package/dist/types/ts3.7/track/dash/createDashContentStreamFactories.d.ts +33 -0
- package/dist/types/ts3.7/track/dash/createDashContentTypesValue.d.ts +14 -0
- package/dist/types/ts3.7/track/dash/createDashFactories.d.ts +84 -0
- package/dist/types/ts3.7/track/dash/createDashManifestProvider.d.ts +12 -0
- package/dist/types/ts3.7/track/dash/createDefaultDashManifestTransformer.d.ts +21 -0
- package/dist/types/ts3.7/track/dash/createSegmentControllerFactory.d.ts +19 -0
- package/dist/types/ts3.7/track/dash/manifestTransformUtils.d.ts +30 -0
- package/dist/types/ts3.7/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +27 -0
- package/dist/types/ts3.7/track/dash/urlDashManifestProvider.d.ts +17 -0
- package/dist/types/ts3.7/track/dash/util/mimeType.d.ts +12 -0
- package/dist/types/ts3.7/track/dash/util/mpd.d.ts +80 -0
- package/dist/types/ts3.7/track/dash/util/uriResolution.d.ts +88 -0
- package/dist/types/ts3.7/track/filters/keySystemFilter.d.ts +10 -0
- package/dist/types/ts3.7/track/filters/languageFilter.d.ts +29 -0
- package/dist/types/ts3.7/track/filters/resourceTypeFilter.d.ts +10 -0
- package/dist/types/ts3.7/track/filters/sampleRateFilter.d.ts +13 -0
- package/dist/types/ts3.7/track/hls/HlsManifestController.d.ts +25 -0
- package/dist/types/ts3.7/track/hls/HlsManifestProvider.d.ts +21 -0
- package/dist/types/ts3.7/track/hls/HlsMediaQualityMetadataResolver.d.ts +5 -0
- package/dist/types/ts3.7/track/hls/HlsTrack.d.ts +30 -0
- package/dist/types/ts3.7/track/hls/buildHlsMediaTimeline.d.ts +13 -0
- package/dist/types/ts3.7/track/hls/createDefaultHlsManifestTransformer.d.ts +11 -0
- package/dist/types/ts3.7/track/hls/createHlsContentStreamFactories.d.ts +27 -0
- package/dist/types/ts3.7/track/hls/createHlsContentTypesValue.d.ts +15 -0
- package/dist/types/ts3.7/track/hls/createHlsFactories.d.ts +73 -0
- package/dist/types/ts3.7/track/hls/createUrlHlsManifestProvider.d.ts +21 -0
- package/dist/types/ts3.7/track/hls/index.d.ts +10 -0
- package/dist/types/ts3.7/track/hls/util/hlsByteRangeToMediaRange.d.ts +5 -0
- package/dist/types/ts3.7/track/hls/util/hlsSegmentTime.d.ts +10 -0
- package/dist/types/ts3.7/track/mse/MseTrack.d.ts +85 -0
- package/dist/types/ts3.7/track/mse/codec.d.ts +16 -0
- package/dist/types/ts3.7/track/source/FixedPlaybackQuality.d.ts +38 -0
- package/dist/types/ts3.7/track/source/SourceObjectTrack.d.ts +33 -0
- package/dist/types/ts3.7/track/source/SourceTrack.d.ts +34 -0
- package/dist/types/ts3.7/track/source/SourceTrackBase.d.ts +33 -0
- package/dist/types/ts3.7/util/media/getAudioContext.d.ts +22 -0
- package/dist/types/ts3.7/util/media/mediaSource.d.ts +40 -0
- package/dist/types/ts3.7/util/media/sourceBuffer.d.ts +9 -0
- package/dist/types/ts3.7/vinyl/ReadonlyPlaybackStreamingState.d.ts +34 -0
- package/dist/types/ts3.7/vinyl/VinylDeps.d.ts +41 -0
- package/dist/types/ts3.7/vinyl/VinylOptions.d.ts +19 -0
- package/dist/types/ts3.7/vinyl/VinylPatchOptions.d.ts +10 -0
- package/dist/types/ts3.7/vinyl/VinylPlayer.d.ts +149 -0
- package/dist/types/ts3.7/vinyl/createVinylFactories.d.ts +177 -0
- package/dist/types/ts3.7/vinyl/playerConfigFactory.d.ts +5 -0
- package/dist/types/ts4.1/client/Capabilities.d.ts +73 -0
- package/dist/types/ts4.1/client/CapabilitiesImpl.d.ts +27 -0
- package/dist/types/ts4.1/client/Client.d.ts +11 -0
- package/dist/types/ts4.1/drm/CencEncryptionScheme.d.ts +37 -0
- package/dist/types/ts4.1/drm/DrmController.d.ts +103 -0
- package/dist/types/ts4.1/drm/DrmControllerImpl.d.ts +110 -0
- package/dist/types/ts4.1/drm/DrmKeySystem.d.ts +61 -0
- package/dist/types/ts4.1/drm/DrmKeySystemResolver.d.ts +12 -0
- package/dist/types/ts4.1/drm/DrmOptions.d.ts +92 -0
- package/dist/types/ts4.1/drm/commonEme/CommonEme.d.ts +150 -0
- package/dist/types/ts4.1/drm/commonEme/CommonEmeFactory.d.ts +28 -0
- package/dist/types/ts4.1/drm/commonEme/EncryptedInitData.d.ts +9 -0
- package/dist/types/ts4.1/drm/commonEme/MsCommonEme.d.ts +70 -0
- package/dist/types/ts4.1/drm/commonEme/StandardCommonEme.d.ts +55 -0
- package/dist/types/ts4.1/drm/commonEme/WebKitCommonEme.d.ts +64 -0
- package/dist/types/ts4.1/drm/commonEme/createDrmErrorHandler.d.ts +3 -0
- package/dist/types/ts4.1/drm/dom/HTMLMediaElement.d.ts +8 -0
- package/dist/types/ts4.1/drm/dom/MSMediaKeys.d.ts +46 -0
- package/dist/types/ts4.1/drm/dom/WebKitMediaKeys.d.ts +50 -0
- package/dist/types/ts4.1/drm/error/DrmError.d.ts +16 -0
- package/dist/types/ts4.1/drm/licenseProvider/LicenseProvider.d.ts +38 -0
- package/dist/types/ts4.1/drm/licenseProvider/defaultLicenseProvider.d.ts +15 -0
- package/dist/types/ts4.1/drm/util/createFairPlaySessionInitData.d.ts +11 -0
- package/dist/types/ts4.1/drm/util/extractContentId.d.ts +8 -0
- package/dist/types/ts4.1/drm/util/unpackPlayReadyChallenge.d.ts +46 -0
- package/dist/types/ts4.1/event/BasicErrorEvent.d.ts +12 -0
- package/dist/types/ts4.1/event/ChangeEvent.d.ts +12 -0
- package/dist/types/ts4.1/global/PlayerRegistry.d.ts +52 -0
- package/dist/types/ts4.1/global/configureVinylGlobal.d.ts +44 -0
- package/dist/types/ts4.1/global/environment.d.ts +6 -0
- package/dist/types/ts4.1/global/globalRef.d.ts +26 -0
- package/dist/types/ts4.1/global/initializeVinylGlobal.d.ts +2 -0
- package/dist/types/ts4.1/index.d.ts +132 -0
- package/dist/types/ts4.1/patch/media/HtmlMediaElementPatch.d.ts +3 -0
- package/dist/types/ts4.1/patch/media/MediaElementPatchOptions.d.ts +19 -0
- package/dist/types/ts4.1/patch/media/patchMediaElement.d.ts +9 -0
- package/dist/types/ts4.1/patch/media/patches/createPreventStallsPatch.d.ts +17 -0
- package/dist/types/ts4.1/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +26 -0
- package/dist/types/ts4.1/playback/PlaybackController.d.ts +56 -0
- package/dist/types/ts4.1/playback/PlaybackControllerImpl.d.ts +180 -0
- package/dist/types/ts4.1/playback/PlaybackSource.d.ts +34 -0
- package/dist/types/ts4.1/playback/PlaybackSourceImpl.d.ts +19 -0
- package/dist/types/ts4.1/playback/ReadonlyPlaybackController.d.ts +462 -0
- package/dist/types/ts4.1/playback/error/InvalidSeekError.d.ts +17 -0
- package/dist/types/ts4.1/playback/error/ReportableMediaError.d.ts +17 -0
- package/dist/types/ts4.1/playback/logging/mediaErrorToJson.d.ts +7 -0
- package/dist/types/ts4.1/playback/logging/playbackStateLoggingHandler.d.ts +15 -0
- package/dist/types/ts4.1/playback/loudness/LoudnessNormalizationController.d.ts +25 -0
- package/dist/types/ts4.1/playback/loudness/LoudnessNormalizationControllerImpl.d.ts +41 -0
- package/dist/types/ts4.1/playback/loudness/LoudnessNormalizationControllerImplOptions.d.ts +28 -0
- package/dist/types/ts4.1/playback/nextHasMetadata.d.ts +4 -0
- package/dist/types/ts4.1/streaming/ContentStream.d.ts +117 -0
- package/dist/types/ts4.1/streaming/ContentStreamingOptions.d.ts +13 -0
- package/dist/types/ts4.1/streaming/ContentTypesValue.d.ts +8 -0
- package/dist/types/ts4.1/streaming/DescriptorRecord.d.ts +31 -0
- package/dist/types/ts4.1/streaming/DrmInitDataType.d.ts +6 -0
- package/dist/types/ts4.1/streaming/ManifestController.d.ts +13 -0
- package/dist/types/ts4.1/streaming/MediaQualityMetadata.d.ts +145 -0
- package/dist/types/ts4.1/streaming/MediaTimeline.d.ts +45 -0
- package/dist/types/ts4.1/streaming/SegmentController.d.ts +117 -0
- package/dist/types/ts4.1/streaming/SegmentControllerImpl.d.ts +168 -0
- package/dist/types/ts4.1/streaming/SegmentDataSlot.d.ts +55 -0
- package/dist/types/ts4.1/streaming/SegmentPrefetch.d.ts +62 -0
- package/dist/types/ts4.1/streaming/SegmentReference.d.ts +48 -0
- package/dist/types/ts4.1/streaming/StreamingEventMap.d.ts +68 -0
- package/dist/types/ts4.1/streaming/abr/QualitySelector.d.ts +33 -0
- package/dist/types/ts4.1/streaming/abr/QualitySelectorImpl.d.ts +100 -0
- package/dist/types/ts4.1/streaming/buffering/BufferingController.d.ts +240 -0
- package/dist/types/ts4.1/streaming/buffering/MediaSourceController.d.ts +104 -0
- package/dist/types/ts4.1/streaming/buffering/SourceBufferController.d.ts +91 -0
- package/dist/types/ts4.1/streaming/buffering/error/SourceBufferError.d.ts +9 -0
- package/dist/types/ts4.1/streaming/createDefaultMediaTimelineTransformer.d.ts +18 -0
- package/dist/types/ts4.1/streaming/mediaTimelineFilter.d.ts +18 -0
- package/dist/types/ts4.1/streaming/mediaTimelineLanguageFilter.d.ts +14 -0
- package/dist/types/ts4.1/streaming/util/segment.d.ts +28 -0
- package/dist/types/ts4.1/track/AutoResetController.d.ts +84 -0
- package/dist/types/ts4.1/track/Track.d.ts +153 -0
- package/dist/types/ts4.1/track/TrackBase.d.ts +110 -0
- package/dist/types/ts4.1/track/TrackController.d.ts +243 -0
- package/dist/types/ts4.1/track/TrackFactory.d.ts +50 -0
- package/dist/types/ts4.1/track/createSegmentDataProvider.d.ts +18 -0
- package/dist/types/ts4.1/track/createVinylTrackFactories.d.ts +19 -0
- package/dist/types/ts4.1/track/dash/DashManifestController.d.ts +39 -0
- package/dist/types/ts4.1/track/dash/DashManifestProvider.d.ts +19 -0
- package/dist/types/ts4.1/track/dash/DashMediaQualityMetadataResolver.d.ts +43 -0
- package/dist/types/ts4.1/track/dash/DashTrack.d.ts +46 -0
- package/dist/types/ts4.1/track/dash/buildDashMediaTimeline.d.ts +9 -0
- package/dist/types/ts4.1/track/dash/createDashContentStreamFactories.d.ts +36 -0
- package/dist/types/ts4.1/track/dash/createDashContentTypesValue.d.ts +14 -0
- package/dist/types/ts4.1/track/dash/createDashFactories.d.ts +86 -0
- package/dist/types/ts4.1/track/dash/createDashManifestProvider.d.ts +12 -0
- package/dist/types/ts4.1/track/dash/createDefaultDashManifestTransformer.d.ts +21 -0
- package/dist/types/ts4.1/track/dash/createSegmentControllerFactory.d.ts +20 -0
- package/dist/types/ts4.1/track/dash/manifestTransformUtils.d.ts +30 -0
- package/dist/types/ts4.1/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +27 -0
- package/dist/types/ts4.1/track/dash/urlDashManifestProvider.d.ts +17 -0
- package/dist/types/ts4.1/track/dash/util/mimeType.d.ts +12 -0
- package/dist/types/ts4.1/track/dash/util/mpd.d.ts +80 -0
- package/dist/types/ts4.1/track/dash/util/uriResolution.d.ts +88 -0
- package/dist/types/ts4.1/track/filters/keySystemFilter.d.ts +10 -0
- package/dist/types/ts4.1/track/filters/languageFilter.d.ts +29 -0
- package/dist/types/ts4.1/track/filters/resourceTypeFilter.d.ts +10 -0
- package/dist/types/ts4.1/track/filters/sampleRateFilter.d.ts +13 -0
- package/dist/types/ts4.1/track/hls/HlsManifestController.d.ts +25 -0
- package/dist/types/ts4.1/track/hls/HlsManifestProvider.d.ts +21 -0
- package/dist/types/ts4.1/track/hls/HlsMediaQualityMetadataResolver.d.ts +5 -0
- package/dist/types/ts4.1/track/hls/HlsTrack.d.ts +30 -0
- package/dist/types/ts4.1/track/hls/buildHlsMediaTimeline.d.ts +13 -0
- package/dist/types/ts4.1/track/hls/createDefaultHlsManifestTransformer.d.ts +11 -0
- package/dist/types/ts4.1/track/hls/createHlsContentStreamFactories.d.ts +30 -0
- package/dist/types/ts4.1/track/hls/createHlsContentTypesValue.d.ts +15 -0
- package/dist/types/ts4.1/track/hls/createHlsFactories.d.ts +74 -0
- package/dist/types/ts4.1/track/hls/createUrlHlsManifestProvider.d.ts +21 -0
- package/dist/types/ts4.1/track/hls/index.d.ts +10 -0
- package/dist/types/ts4.1/track/hls/util/hlsByteRangeToMediaRange.d.ts +5 -0
- package/dist/types/ts4.1/track/hls/util/hlsSegmentTime.d.ts +10 -0
- package/dist/types/ts4.1/track/mse/MseTrack.d.ts +86 -0
- package/dist/types/ts4.1/track/mse/codec.d.ts +16 -0
- package/dist/types/ts4.1/track/source/FixedPlaybackQuality.d.ts +39 -0
- package/dist/types/ts4.1/track/source/SourceObjectTrack.d.ts +34 -0
- package/dist/types/ts4.1/track/source/SourceTrack.d.ts +35 -0
- package/dist/types/ts4.1/track/source/SourceTrackBase.d.ts +34 -0
- package/dist/types/ts4.1/util/media/getAudioContext.d.ts +22 -0
- package/dist/types/ts4.1/util/media/mediaSource.d.ts +40 -0
- package/dist/types/ts4.1/util/media/sourceBuffer.d.ts +9 -0
- package/dist/types/ts4.1/vinyl/ReadonlyPlaybackStreamingState.d.ts +34 -0
- package/dist/types/ts4.1/vinyl/VinylDeps.d.ts +41 -0
- package/dist/types/ts4.1/vinyl/VinylOptions.d.ts +19 -0
- package/dist/types/ts4.1/vinyl/VinylPatchOptions.d.ts +10 -0
- package/dist/types/ts4.1/vinyl/VinylPlayer.d.ts +150 -0
- package/dist/types/ts4.1/vinyl/createVinylFactories.d.ts +179 -0
- package/dist/types/ts4.1/vinyl/playerConfigFactory.d.ts +5 -0
- package/dist/types/ts4.7/client/Capabilities.d.ts +73 -0
- package/dist/types/ts4.7/client/CapabilitiesImpl.d.ts +27 -0
- package/dist/types/ts4.7/client/Client.d.ts +11 -0
- package/dist/types/ts4.7/drm/CencEncryptionScheme.d.ts +37 -0
- package/dist/types/ts4.7/drm/DrmController.d.ts +103 -0
- package/dist/types/ts4.7/drm/DrmControllerImpl.d.ts +112 -0
- package/dist/types/ts4.7/drm/DrmKeySystem.d.ts +61 -0
- package/dist/types/ts4.7/drm/DrmKeySystemResolver.d.ts +12 -0
- package/dist/types/ts4.7/drm/DrmOptions.d.ts +92 -0
- package/dist/types/ts4.7/drm/commonEme/CommonEme.d.ts +150 -0
- package/dist/types/ts4.7/drm/commonEme/CommonEmeFactory.d.ts +28 -0
- package/dist/types/ts4.7/drm/commonEme/EncryptedInitData.d.ts +9 -0
- package/dist/types/ts4.7/drm/commonEme/MsCommonEme.d.ts +68 -0
- package/dist/types/ts4.7/drm/commonEme/StandardCommonEme.d.ts +54 -0
- package/dist/types/ts4.7/drm/commonEme/WebKitCommonEme.d.ts +63 -0
- package/dist/types/ts4.7/drm/commonEme/createDrmErrorHandler.d.ts +3 -0
- package/dist/types/ts4.7/drm/dom/HTMLMediaElement.d.ts +8 -0
- package/dist/types/ts4.7/drm/dom/MSMediaKeys.d.ts +46 -0
- package/dist/types/ts4.7/drm/dom/WebKitMediaKeys.d.ts +50 -0
- package/dist/types/ts4.7/drm/error/DrmError.d.ts +16 -0
- package/dist/types/ts4.7/drm/licenseProvider/LicenseProvider.d.ts +38 -0
- package/dist/types/ts4.7/drm/licenseProvider/defaultLicenseProvider.d.ts +15 -0
- package/dist/types/ts4.7/drm/util/createFairPlaySessionInitData.d.ts +11 -0
- package/dist/types/ts4.7/drm/util/extractContentId.d.ts +8 -0
- package/dist/types/ts4.7/drm/util/unpackPlayReadyChallenge.d.ts +46 -0
- package/dist/types/ts4.7/event/BasicErrorEvent.d.ts +12 -0
- package/dist/types/ts4.7/event/ChangeEvent.d.ts +12 -0
- package/dist/types/ts4.7/global/PlayerRegistry.d.ts +52 -0
- package/dist/types/ts4.7/global/configureVinylGlobal.d.ts +43 -0
- package/dist/types/ts4.7/global/environment.d.ts +6 -0
- package/dist/types/ts4.7/global/globalRef.d.ts +32 -0
- package/dist/types/ts4.7/global/initializeVinylGlobal.d.ts +2 -0
- package/dist/types/ts4.7/index.d.ts +132 -0
- package/dist/types/ts4.7/patch/media/HtmlMediaElementPatch.d.ts +3 -0
- package/dist/types/ts4.7/patch/media/MediaElementPatchOptions.d.ts +19 -0
- package/dist/types/ts4.7/patch/media/patchMediaElement.d.ts +9 -0
- package/dist/types/ts4.7/patch/media/patches/createPreventStallsPatch.d.ts +17 -0
- package/dist/types/ts4.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +26 -0
- package/dist/types/ts4.7/playback/PlaybackController.d.ts +56 -0
- package/dist/types/ts4.7/playback/PlaybackControllerImpl.d.ts +181 -0
- package/dist/types/ts4.7/playback/PlaybackSource.d.ts +34 -0
- package/dist/types/ts4.7/playback/PlaybackSourceImpl.d.ts +19 -0
- package/dist/types/ts4.7/playback/ReadonlyPlaybackController.d.ts +462 -0
- package/dist/types/ts4.7/playback/error/InvalidSeekError.d.ts +16 -0
- package/dist/types/ts4.7/playback/error/ReportableMediaError.d.ts +16 -0
- package/dist/types/ts4.7/playback/logging/mediaErrorToJson.d.ts +7 -0
- package/dist/types/ts4.7/playback/logging/playbackStateLoggingHandler.d.ts +15 -0
- package/dist/types/ts4.7/playback/loudness/LoudnessNormalizationController.d.ts +25 -0
- package/dist/types/ts4.7/playback/loudness/LoudnessNormalizationControllerImpl.d.ts +44 -0
- package/dist/types/ts4.7/playback/loudness/LoudnessNormalizationControllerImplOptions.d.ts +28 -0
- package/dist/types/ts4.7/playback/nextHasMetadata.d.ts +4 -0
- package/dist/types/ts4.7/streaming/ContentStream.d.ts +116 -0
- package/dist/types/ts4.7/streaming/ContentStreamingOptions.d.ts +13 -0
- package/dist/types/ts4.7/streaming/ContentTypesValue.d.ts +8 -0
- package/dist/types/ts4.7/streaming/DescriptorRecord.d.ts +31 -0
- package/dist/types/ts4.7/streaming/DrmInitDataType.d.ts +6 -0
- package/dist/types/ts4.7/streaming/ManifestController.d.ts +13 -0
- package/dist/types/ts4.7/streaming/MediaQualityMetadata.d.ts +145 -0
- package/dist/types/ts4.7/streaming/MediaTimeline.d.ts +45 -0
- package/dist/types/ts4.7/streaming/SegmentController.d.ts +117 -0
- package/dist/types/ts4.7/streaming/SegmentControllerImpl.d.ts +170 -0
- package/dist/types/ts4.7/streaming/SegmentDataSlot.d.ts +58 -0
- package/dist/types/ts4.7/streaming/SegmentPrefetch.d.ts +62 -0
- package/dist/types/ts4.7/streaming/SegmentReference.d.ts +48 -0
- package/dist/types/ts4.7/streaming/StreamingEventMap.d.ts +68 -0
- package/dist/types/ts4.7/streaming/abr/QualitySelector.d.ts +33 -0
- package/dist/types/ts4.7/streaming/abr/QualitySelectorImpl.d.ts +100 -0
- package/dist/types/ts4.7/streaming/buffering/BufferingController.d.ts +253 -0
- package/dist/types/ts4.7/streaming/buffering/MediaSourceController.d.ts +103 -0
- package/dist/types/ts4.7/streaming/buffering/SourceBufferController.d.ts +91 -0
- package/dist/types/ts4.7/streaming/buffering/error/SourceBufferError.d.ts +9 -0
- package/dist/types/ts4.7/streaming/createDefaultMediaTimelineTransformer.d.ts +18 -0
- package/dist/types/ts4.7/streaming/mediaTimelineFilter.d.ts +18 -0
- package/dist/types/ts4.7/streaming/mediaTimelineLanguageFilter.d.ts +14 -0
- package/dist/types/ts4.7/streaming/util/segment.d.ts +28 -0
- package/dist/types/ts4.7/track/AutoResetController.d.ts +83 -0
- package/dist/types/ts4.7/track/Track.d.ts +153 -0
- package/dist/types/ts4.7/track/TrackBase.d.ts +109 -0
- package/dist/types/ts4.7/track/TrackController.d.ts +249 -0
- package/dist/types/ts4.7/track/TrackFactory.d.ts +50 -0
- package/dist/types/ts4.7/track/createSegmentDataProvider.d.ts +18 -0
- package/dist/types/ts4.7/track/createVinylTrackFactories.d.ts +19 -0
- package/dist/types/ts4.7/track/dash/DashManifestController.d.ts +43 -0
- package/dist/types/ts4.7/track/dash/DashManifestProvider.d.ts +19 -0
- package/dist/types/ts4.7/track/dash/DashMediaQualityMetadataResolver.d.ts +43 -0
- package/dist/types/ts4.7/track/dash/DashTrack.d.ts +46 -0
- package/dist/types/ts4.7/track/dash/buildDashMediaTimeline.d.ts +9 -0
- package/dist/types/ts4.7/track/dash/createDashContentStreamFactories.d.ts +33 -0
- package/dist/types/ts4.7/track/dash/createDashContentTypesValue.d.ts +14 -0
- package/dist/types/ts4.7/track/dash/createDashFactories.d.ts +84 -0
- package/dist/types/ts4.7/track/dash/createDashManifestProvider.d.ts +12 -0
- package/dist/types/ts4.7/track/dash/createDefaultDashManifestTransformer.d.ts +21 -0
- package/dist/types/ts4.7/track/dash/createSegmentControllerFactory.d.ts +19 -0
- package/dist/types/ts4.7/track/dash/manifestTransformUtils.d.ts +30 -0
- package/dist/types/ts4.7/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +27 -0
- package/dist/types/ts4.7/track/dash/urlDashManifestProvider.d.ts +17 -0
- package/dist/types/ts4.7/track/dash/util/mimeType.d.ts +12 -0
- package/dist/types/ts4.7/track/dash/util/mpd.d.ts +80 -0
- package/dist/types/ts4.7/track/dash/util/uriResolution.d.ts +88 -0
- package/dist/types/ts4.7/track/filters/keySystemFilter.d.ts +10 -0
- package/dist/types/ts4.7/track/filters/languageFilter.d.ts +29 -0
- package/dist/types/ts4.7/track/filters/resourceTypeFilter.d.ts +10 -0
- package/dist/types/ts4.7/track/filters/sampleRateFilter.d.ts +13 -0
- package/dist/types/ts4.7/track/hls/HlsManifestController.d.ts +28 -0
- package/dist/types/ts4.7/track/hls/HlsManifestProvider.d.ts +21 -0
- package/dist/types/ts4.7/track/hls/HlsMediaQualityMetadataResolver.d.ts +5 -0
- package/dist/types/ts4.7/track/hls/HlsTrack.d.ts +30 -0
- package/dist/types/ts4.7/track/hls/buildHlsMediaTimeline.d.ts +13 -0
- package/dist/types/ts4.7/track/hls/createDefaultHlsManifestTransformer.d.ts +11 -0
- package/dist/types/ts4.7/track/hls/createHlsContentStreamFactories.d.ts +27 -0
- package/dist/types/ts4.7/track/hls/createHlsContentTypesValue.d.ts +15 -0
- package/dist/types/ts4.7/track/hls/createHlsFactories.d.ts +73 -0
- package/dist/types/ts4.7/track/hls/createUrlHlsManifestProvider.d.ts +21 -0
- package/dist/types/ts4.7/track/hls/index.d.ts +10 -0
- package/dist/types/ts4.7/track/hls/util/hlsByteRangeToMediaRange.d.ts +5 -0
- package/dist/types/ts4.7/track/hls/util/hlsSegmentTime.d.ts +10 -0
- package/dist/types/ts4.7/track/mse/MseTrack.d.ts +85 -0
- package/dist/types/ts4.7/track/mse/codec.d.ts +16 -0
- package/dist/types/ts4.7/track/source/FixedPlaybackQuality.d.ts +38 -0
- package/dist/types/ts4.7/track/source/SourceObjectTrack.d.ts +33 -0
- package/dist/types/ts4.7/track/source/SourceTrack.d.ts +34 -0
- package/dist/types/ts4.7/track/source/SourceTrackBase.d.ts +33 -0
- package/dist/types/ts4.7/util/media/getAudioContext.d.ts +22 -0
- package/dist/types/ts4.7/util/media/mediaSource.d.ts +40 -0
- package/dist/types/ts4.7/util/media/sourceBuffer.d.ts +9 -0
- package/dist/types/ts4.7/vinyl/ReadonlyPlaybackStreamingState.d.ts +34 -0
- package/dist/types/ts4.7/vinyl/VinylDeps.d.ts +41 -0
- package/dist/types/ts4.7/vinyl/VinylOptions.d.ts +19 -0
- package/dist/types/ts4.7/vinyl/VinylPatchOptions.d.ts +10 -0
- package/dist/types/ts4.7/vinyl/VinylPlayer.d.ts +197 -0
- package/dist/types/ts4.7/vinyl/createVinylFactories.d.ts +177 -0
- package/dist/types/ts4.7/vinyl/playerConfigFactory.d.ts +5 -0
- package/dist/unit/types/current/client/CapabilitiesImpl.test.d.ts +2 -0
- package/dist/unit/types/current/client/CapabilitiesImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/client/CapabilitiesImpl.test.js +137 -0
- package/dist/unit/types/current/client/userAgent/userAgentExpectations.d.ts +102 -0
- package/dist/unit/types/current/client/userAgent/userAgentExpectations.d.ts.map +1 -0
- package/dist/unit/types/current/client/userAgent/userAgentExpectations.js +732 -0
- package/dist/unit/types/current/drm/CencEncryptionScheme.test.d.ts +2 -0
- package/dist/unit/types/current/drm/CencEncryptionScheme.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/CencEncryptionScheme.test.js +30 -0
- package/dist/unit/types/current/drm/CommonEmeFactory.test.d.ts +2 -0
- package/dist/unit/types/current/drm/CommonEmeFactory.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/CommonEmeFactory.test.js +65 -0
- package/dist/unit/types/current/drm/DrmControllerImpl.test.d.ts +2 -0
- package/dist/unit/types/current/drm/DrmControllerImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/DrmControllerImpl.test.js +1318 -0
- package/dist/unit/types/current/drm/DrmKeySystem.test.d.ts +2 -0
- package/dist/unit/types/current/drm/DrmKeySystem.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/DrmKeySystem.test.js +23 -0
- package/dist/unit/types/current/drm/DrmKeySystemResolver.test.d.ts +2 -0
- package/dist/unit/types/current/drm/DrmKeySystemResolver.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/DrmKeySystemResolver.test.js +13 -0
- package/dist/unit/types/current/drm/commonEme/CommonEme.test.d.ts +2 -0
- package/dist/unit/types/current/drm/commonEme/CommonEme.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/commonEme/CommonEme.test.js +26 -0
- package/dist/unit/types/current/drm/commonEme/MsCommonEme.test.d.ts +2 -0
- package/dist/unit/types/current/drm/commonEme/MsCommonEme.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/commonEme/MsCommonEme.test.js +249 -0
- package/dist/unit/types/current/drm/commonEme/StandardCommonEme.test.d.ts +2 -0
- package/dist/unit/types/current/drm/commonEme/StandardCommonEme.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/commonEme/StandardCommonEme.test.js +227 -0
- package/dist/unit/types/current/drm/commonEme/WebKitCommonEme.test.d.ts +2 -0
- package/dist/unit/types/current/drm/commonEme/WebKitCommonEme.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/commonEme/WebKitCommonEme.test.js +297 -0
- package/dist/unit/types/current/drm/commonEme/createDrmErrorHandler.test.d.ts +2 -0
- package/dist/unit/types/current/drm/commonEme/createDrmErrorHandler.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/commonEme/createDrmErrorHandler.test.js +23 -0
- package/dist/unit/types/current/drm/error/DrmError.test.d.ts +2 -0
- package/dist/unit/types/current/drm/error/DrmError.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/error/DrmError.test.js +34 -0
- package/dist/unit/types/current/drm/licenseProvider/defaultLicenseProvider.test.d.ts +2 -0
- package/dist/unit/types/current/drm/licenseProvider/defaultLicenseProvider.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/licenseProvider/defaultLicenseProvider.test.js +42 -0
- package/dist/unit/types/current/drm/util/createFairPlaySessionInitData.test.d.ts +2 -0
- package/dist/unit/types/current/drm/util/createFairPlaySessionInitData.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/util/createFairPlaySessionInitData.test.js +16 -0
- package/dist/unit/types/current/drm/util/extractContentId.test.d.ts +2 -0
- package/dist/unit/types/current/drm/util/extractContentId.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/util/extractContentId.test.js +27 -0
- package/dist/unit/types/current/drm/util/unpackPlayReadyChallenge.test.d.ts +2 -0
- package/dist/unit/types/current/drm/util/unpackPlayReadyChallenge.test.d.ts.map +1 -0
- package/dist/unit/types/current/drm/util/unpackPlayReadyChallenge.test.js +104 -0
- package/dist/unit/types/current/event/ChangeEvent.test.d.ts +2 -0
- package/dist/unit/types/current/event/ChangeEvent.test.d.ts.map +1 -0
- package/dist/unit/types/current/event/ChangeEvent.test.js +21 -0
- package/dist/unit/types/current/global/PlayerRegistry.test.d.ts +2 -0
- package/dist/unit/types/current/global/PlayerRegistry.test.d.ts.map +1 -0
- package/dist/unit/types/current/global/PlayerRegistry.test.js +61 -0
- package/dist/unit/types/current/global/configureVinylGlobal.test.d.ts +2 -0
- package/dist/unit/types/current/global/configureVinylGlobal.test.d.ts.map +1 -0
- package/dist/unit/types/current/global/configureVinylGlobal.test.js +155 -0
- package/dist/unit/types/current/global/environment.test.d.ts +2 -0
- package/dist/unit/types/current/global/environment.test.d.ts.map +1 -0
- package/dist/unit/types/current/global/environment.test.js +20 -0
- package/dist/unit/types/current/global/globalRef.test.d.ts +2 -0
- package/dist/unit/types/current/global/globalRef.test.d.ts.map +1 -0
- package/dist/unit/types/current/global/globalRef.test.js +43 -0
- package/dist/unit/types/current/index.d.ts +105 -0
- package/dist/unit/types/current/index.d.ts.map +1 -0
- package/dist/unit/types/current/index.js +104 -0
- package/dist/unit/types/current/patch/media/MediaElementPatchOptions.test.d.ts +2 -0
- package/dist/unit/types/current/patch/media/MediaElementPatchOptions.test.d.ts.map +1 -0
- package/dist/unit/types/current/patch/media/MediaElementPatchOptions.test.js +17 -0
- package/dist/unit/types/current/patch/media/patchMediaElement.test.d.ts +2 -0
- package/dist/unit/types/current/patch/media/patchMediaElement.test.d.ts.map +1 -0
- package/dist/unit/types/current/patch/media/patchMediaElement.test.js +36 -0
- package/dist/unit/types/current/patch/media/patches/createPreventStallsPatch.test.d.ts +2 -0
- package/dist/unit/types/current/patch/media/patches/createPreventStallsPatch.test.d.ts.map +1 -0
- package/dist/unit/types/current/patch/media/patches/createPreventStallsPatch.test.js +93 -0
- package/dist/unit/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.test.d.ts +2 -0
- package/dist/unit/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.test.d.ts.map +1 -0
- package/dist/unit/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.test.js +423 -0
- package/dist/unit/types/current/playback/PlaybackControllerImpl.test.d.ts +2 -0
- package/dist/unit/types/current/playback/PlaybackControllerImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/PlaybackControllerImpl.test.js +908 -0
- package/dist/unit/types/current/playback/PlaybackSourceImpl.test.d.ts +2 -0
- package/dist/unit/types/current/playback/PlaybackSourceImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/PlaybackSourceImpl.test.js +43 -0
- package/dist/unit/types/current/playback/ReadonlyPlaybackController.test.d.ts +2 -0
- package/dist/unit/types/current/playback/ReadonlyPlaybackController.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/ReadonlyPlaybackController.test.js +10 -0
- package/dist/unit/types/current/playback/error/InvalidSeekError.test.d.ts +2 -0
- package/dist/unit/types/current/playback/error/InvalidSeekError.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/error/InvalidSeekError.test.js +38 -0
- package/dist/unit/types/current/playback/error/ReportableMediaError.test.d.ts +2 -0
- package/dist/unit/types/current/playback/error/ReportableMediaError.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/error/ReportableMediaError.test.js +64 -0
- package/dist/unit/types/current/playback/logging/mediaErrorToJson.test.d.ts +2 -0
- package/dist/unit/types/current/playback/logging/mediaErrorToJson.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/logging/mediaErrorToJson.test.js +46 -0
- package/dist/unit/types/current/playback/logging/playbackStateLoggingHandler.test.d.ts +2 -0
- package/dist/unit/types/current/playback/logging/playbackStateLoggingHandler.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/logging/playbackStateLoggingHandler.test.js +83 -0
- package/dist/unit/types/current/playback/nextEventHasMetadata.test.d.ts +2 -0
- package/dist/unit/types/current/playback/nextEventHasMetadata.test.d.ts.map +1 -0
- package/dist/unit/types/current/playback/nextEventHasMetadata.test.js +32 -0
- package/dist/unit/types/current/setup.d.ts +2 -0
- package/dist/unit/types/current/setup.d.ts.map +1 -0
- package/dist/unit/types/current/setup.js +27 -0
- package/dist/unit/types/current/streaming/ContentStream.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/ContentStream.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/ContentStream.test.js +213 -0
- package/dist/unit/types/current/streaming/DescriptorRecord.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/DescriptorRecord.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/DescriptorRecord.test.js +37 -0
- package/dist/unit/types/current/streaming/MediaQualityMetadata.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/MediaQualityMetadata.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/MediaQualityMetadata.test.js +39 -0
- package/dist/unit/types/current/streaming/MediaTimeline.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/MediaTimeline.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/MediaTimeline.test.js +48 -0
- package/dist/unit/types/current/streaming/MseTrack.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/MseTrack.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/MseTrack.test.js +606 -0
- package/dist/unit/types/current/streaming/SegmentControllerImpl.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/SegmentControllerImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/SegmentControllerImpl.test.js +718 -0
- package/dist/unit/types/current/streaming/SegmentDataSlot.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/SegmentDataSlot.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/SegmentDataSlot.test.js +75 -0
- package/dist/unit/types/current/streaming/SegmentPrefetch.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/SegmentPrefetch.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/SegmentPrefetch.test.js +145 -0
- package/dist/unit/types/current/streaming/StreamingEventMap.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/StreamingEventMap.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/StreamingEventMap.test.js +10 -0
- package/dist/unit/types/current/streaming/abr/QualitySelectorImpl.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/abr/QualitySelectorImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/abr/QualitySelectorImpl.test.js +588 -0
- package/dist/unit/types/current/streaming/buffering/BufferingController.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/buffering/BufferingController.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/buffering/BufferingController.test.js +786 -0
- package/dist/unit/types/current/streaming/buffering/MediaSourceController.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/buffering/MediaSourceController.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/buffering/MediaSourceController.test.js +161 -0
- package/dist/unit/types/current/streaming/buffering/SourceBufferController.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/buffering/SourceBufferController.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/buffering/SourceBufferController.test.js +369 -0
- package/dist/unit/types/current/streaming/buffering/error/SourceBufferError.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/buffering/error/SourceBufferError.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/buffering/error/SourceBufferError.test.js +17 -0
- package/dist/unit/types/current/streaming/createDefaultMediaTimelineTransformer.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/createDefaultMediaTimelineTransformer.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/createDefaultMediaTimelineTransformer.test.js +204 -0
- package/dist/unit/types/current/streaming/loudness/LoudnessNormalizationControllerImpl.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/loudness/LoudnessNormalizationControllerImpl.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/loudness/LoudnessNormalizationControllerImpl.test.js +108 -0
- package/dist/unit/types/current/streaming/mediaTimelineFilter.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/mediaTimelineFilter.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/mediaTimelineFilter.test.js +82 -0
- package/dist/unit/types/current/streaming/mediaTimelineLanguageFilter.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/mediaTimelineLanguageFilter.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/mediaTimelineLanguageFilter.test.js +171 -0
- package/dist/unit/types/current/streaming/util/segment.test.d.ts +2 -0
- package/dist/unit/types/current/streaming/util/segment.test.d.ts.map +1 -0
- package/dist/unit/types/current/streaming/util/segment.test.js +92 -0
- package/dist/unit/types/current/track/AutoResetController.test.d.ts +2 -0
- package/dist/unit/types/current/track/AutoResetController.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/AutoResetController.test.js +266 -0
- package/dist/unit/types/current/track/TrackBase.test.d.ts +2 -0
- package/dist/unit/types/current/track/TrackBase.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/TrackBase.test.js +205 -0
- package/dist/unit/types/current/track/TrackController.test.d.ts +2 -0
- package/dist/unit/types/current/track/TrackController.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/TrackController.test.js +821 -0
- package/dist/unit/types/current/track/TrackFactory.test.d.ts +2 -0
- package/dist/unit/types/current/track/TrackFactory.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/TrackFactory.test.js +85 -0
- package/dist/unit/types/current/track/createSegmentDataProvider.test.d.ts +2 -0
- package/dist/unit/types/current/track/createSegmentDataProvider.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/createSegmentDataProvider.test.js +273 -0
- package/dist/unit/types/current/track/createVinylTrackFactories.test.d.ts +2 -0
- package/dist/unit/types/current/track/createVinylTrackFactories.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/createVinylTrackFactories.test.js +17 -0
- package/dist/unit/types/current/track/dash/DashManifestController.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/DashManifestController.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/DashManifestController.test.js +186 -0
- package/dist/unit/types/current/track/dash/DashMediaQualityMetadataResolver.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/DashMediaQualityMetadataResolver.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/DashMediaQualityMetadataResolver.test.js +596 -0
- package/dist/unit/types/current/track/dash/DashTrack.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/DashTrack.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/DashTrack.test.js +51 -0
- package/dist/unit/types/current/track/dash/buildDashMediaTimeline.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/buildDashMediaTimeline.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/buildDashMediaTimeline.test.js +81 -0
- package/dist/unit/types/current/track/dash/createDashContentStreamFactories.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/createDashContentStreamFactories.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/createDashContentStreamFactories.test.js +68 -0
- package/dist/unit/types/current/track/dash/createDashContentTypesValue.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/createDashContentTypesValue.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/createDashContentTypesValue.test.js +119 -0
- package/dist/unit/types/current/track/dash/createDashFactories.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/createDashFactories.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/createDashFactories.test.js +78 -0
- package/dist/unit/types/current/track/dash/createDashManifestProvider.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/createDashManifestProvider.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/createDashManifestProvider.test.js +31 -0
- package/dist/unit/types/current/track/dash/createDefaultDashManifestTransformer.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/createDefaultDashManifestTransformer.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/createDefaultDashManifestTransformer.test.js +76 -0
- package/dist/unit/types/current/track/dash/createSegmentControllerFactory.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/createSegmentControllerFactory.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/createSegmentControllerFactory.test.js +21 -0
- package/dist/unit/types/current/track/dash/manifestTransformUtils.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/manifestTransformUtils.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/manifestTransformUtils.test.js +111 -0
- package/dist/unit/types/current/track/dash/timeline/DashRepresentationSegmentProvider.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/timeline/DashRepresentationSegmentProvider.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/timeline/DashRepresentationSegmentProvider.test.js +789 -0
- package/dist/unit/types/current/track/dash/urlDashManifestProvider.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/urlDashManifestProvider.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/urlDashManifestProvider.test.js +102 -0
- package/dist/unit/types/current/track/dash/util/mimeType.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/util/mimeType.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/util/mimeType.test.js +174 -0
- package/dist/unit/types/current/track/dash/util/mpd.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/util/mpd.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/util/mpd.test.js +312 -0
- package/dist/unit/types/current/track/dash/util/uriResolution.test.d.ts +2 -0
- package/dist/unit/types/current/track/dash/util/uriResolution.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/dash/util/uriResolution.test.js +140 -0
- package/dist/unit/types/current/track/filters/keySystemFilter.test.d.ts +2 -0
- package/dist/unit/types/current/track/filters/keySystemFilter.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/filters/keySystemFilter.test.js +48 -0
- package/dist/unit/types/current/track/filters/languageFilter.test.d.ts +2 -0
- package/dist/unit/types/current/track/filters/languageFilter.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/filters/languageFilter.test.js +104 -0
- package/dist/unit/types/current/track/filters/resourceTypeFilter.test.d.ts +2 -0
- package/dist/unit/types/current/track/filters/resourceTypeFilter.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/filters/resourceTypeFilter.test.js +42 -0
- package/dist/unit/types/current/track/filters/sampleRateFilter.test.d.ts +2 -0
- package/dist/unit/types/current/track/filters/sampleRateFilter.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/filters/sampleRateFilter.test.js +102 -0
- package/dist/unit/types/current/track/hls/HlsManifestController.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/HlsManifestController.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/HlsManifestController.test.js +165 -0
- package/dist/unit/types/current/track/hls/HlsMediaQualityMetadataResolver.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/HlsMediaQualityMetadataResolver.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/HlsMediaQualityMetadataResolver.test.js +139 -0
- package/dist/unit/types/current/track/hls/HlsTrack.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/HlsTrack.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/HlsTrack.test.js +51 -0
- package/dist/unit/types/current/track/hls/buildHlsMediaTimeline.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/buildHlsMediaTimeline.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/buildHlsMediaTimeline.test.js +297 -0
- package/dist/unit/types/current/track/hls/createDefaultHlsManifestTransformer.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/createDefaultHlsManifestTransformer.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/createDefaultHlsManifestTransformer.test.js +69 -0
- package/dist/unit/types/current/track/hls/createHlsContentStreamFactories.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/createHlsContentStreamFactories.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/createHlsContentStreamFactories.test.js +57 -0
- package/dist/unit/types/current/track/hls/createHlsContentTypesValue.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/createHlsContentTypesValue.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/createHlsContentTypesValue.test.js +176 -0
- package/dist/unit/types/current/track/hls/createHlsFactories.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/createHlsFactories.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/createHlsFactories.test.js +76 -0
- package/dist/unit/types/current/track/hls/createUrlHlsManifestProvider.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/createUrlHlsManifestProvider.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/createUrlHlsManifestProvider.test.js +116 -0
- package/dist/unit/types/current/track/hls/util/hlsByteRangeToMediaRange.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/util/hlsByteRangeToMediaRange.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/util/hlsByteRangeToMediaRange.test.js +22 -0
- package/dist/unit/types/current/track/hls/util/hlsSegmentTime.test.d.ts +2 -0
- package/dist/unit/types/current/track/hls/util/hlsSegmentTime.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/hls/util/hlsSegmentTime.test.js +56 -0
- package/dist/unit/types/current/track/mse/codec.test.d.ts +2 -0
- package/dist/unit/types/current/track/mse/codec.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/mse/codec.test.js +100 -0
- package/dist/unit/types/current/track/source/FixedPlaybackQuality.test.d.ts +2 -0
- package/dist/unit/types/current/track/source/FixedPlaybackQuality.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/source/FixedPlaybackQuality.test.js +365 -0
- package/dist/unit/types/current/track/source/SourceObjectTrack.test.d.ts +2 -0
- package/dist/unit/types/current/track/source/SourceObjectTrack.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/source/SourceObjectTrack.test.js +103 -0
- package/dist/unit/types/current/track/source/SourceTrack.test.d.ts +2 -0
- package/dist/unit/types/current/track/source/SourceTrack.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/source/SourceTrack.test.js +116 -0
- package/dist/unit/types/current/track/source/SourceTrackBase.test.d.ts +2 -0
- package/dist/unit/types/current/track/source/SourceTrackBase.test.d.ts.map +1 -0
- package/dist/unit/types/current/track/source/SourceTrackBase.test.js +243 -0
- package/dist/unit/types/current/tsconfig.tsbuildinfo +1 -0
- package/dist/unit/types/current/util/media/getAudioContext.test.d.ts +2 -0
- package/dist/unit/types/current/util/media/getAudioContext.test.d.ts.map +1 -0
- package/dist/unit/types/current/util/media/getAudioContext.test.js +48 -0
- package/dist/unit/types/current/util/media/mediaSource.test.d.ts +2 -0
- package/dist/unit/types/current/util/media/mediaSource.test.d.ts.map +1 -0
- package/dist/unit/types/current/util/media/mediaSource.test.js +199 -0
- package/dist/unit/types/current/util/media/sourceBuffer.test.d.ts +2 -0
- package/dist/unit/types/current/util/media/sourceBuffer.test.d.ts.map +1 -0
- package/dist/unit/types/current/util/media/sourceBuffer.test.js +42 -0
- package/dist/unit/types/current/vinyl/VinylPlayer.test.d.ts +2 -0
- package/dist/unit/types/current/vinyl/VinylPlayer.test.d.ts.map +1 -0
- package/dist/unit/types/current/vinyl/VinylPlayer.test.js +764 -0
- package/dist/unit/types/current/vinyl/createVinylFactories.test.d.ts +2 -0
- package/dist/unit/types/current/vinyl/createVinylFactories.test.d.ts.map +1 -0
- package/dist/unit/types/current/vinyl/createVinylFactories.test.js +109 -0
- package/dist/unit/types/current/vinyl/playerConfigFactory.test.d.ts +2 -0
- package/dist/unit/types/current/vinyl/playerConfigFactory.test.d.ts.map +1 -0
- package/dist/unit/types/current/vinyl/playerConfigFactory.test.js +74 -0
- package/dist/unit/types/current/vinylTestUtil/util/playback/createEventSpy.test.d.ts +2 -0
- package/dist/unit/types/current/vinylTestUtil/util/playback/createEventSpy.test.d.ts.map +1 -0
- package/dist/unit/types/current/vinylTestUtil/util/playback/createEventSpy.test.js +69 -0
- package/dist/vinylTestUtil/index.js +2984 -0
- package/dist/vinylTestUtil/index.js.map +7 -0
- package/dist/vinylTestUtil/types/current/assets/dash_personalizedResponse.d.ts +6 -0
- package/dist/vinylTestUtil/types/current/assets/dash_personalizedResponse.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/assets/dash_personalizedResponse.js +831 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentBase.d.ts +5 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentBase.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentBase.js +144 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentList.d.ts +6 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentList.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentList.js +107 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentListMediaRange.d.ts +8 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentListMediaRange.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/assets/dash_segmentListMediaRange.js +472 -0
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.d.ts +64 -0
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/assets/vinylTestAssets.js +58 -0
- package/dist/vinylTestUtil/types/current/index.d.ts +55 -0
- package/dist/vinylTestUtil/types/current/index.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/index.js +54 -0
- package/dist/vinylTestUtil/types/current/media/FrequencyAnalyzer.d.ts +56 -0
- package/dist/vinylTestUtil/types/current/media/FrequencyAnalyzer.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/media/FrequencyAnalyzer.js +157 -0
- package/dist/vinylTestUtil/types/current/media/unlockMediaElement.d.ts +6 -0
- package/dist/vinylTestUtil/types/current/media/unlockMediaElement.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/media/unlockMediaElement.js +20 -0
- package/dist/vinylTestUtil/types/current/mediaSource/ControlledMediaSource.d.ts +28 -0
- package/dist/vinylTestUtil/types/current/mediaSource/ControlledMediaSource.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mediaSource/ControlledMediaSource.js +96 -0
- package/dist/vinylTestUtil/types/current/mock/client/MockCapabilities.d.ts +12 -0
- package/dist/vinylTestUtil/types/current/mock/client/MockCapabilities.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/client/MockCapabilities.js +16 -0
- package/dist/vinylTestUtil/types/current/mock/client/MockClient.d.ts +6 -0
- package/dist/vinylTestUtil/types/current/mock/client/MockClient.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/client/MockClient.js +8 -0
- package/dist/vinylTestUtil/types/current/mock/dash/MockDashManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/current/mock/dash/MockDashManifestController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dash/MockDashManifestController.js +42 -0
- package/dist/vinylTestUtil/types/current/mock/dash/mockDashManifest.d.ts +3129 -0
- package/dist/vinylTestUtil/types/current/mock/dash/mockDashManifest.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dash/mockDashManifest.js +16 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeyError.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeyError.js +19 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeyMessageEvent.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeyMessageEvent.js +12 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeySession.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeySession.js +19 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeys.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeys.js +14 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeyError.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeyError.js +19 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeyMessageEvent.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeyMessageEvent.js +12 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeySession.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeySession.js +19 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeys.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeys.js +14 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/useWebKitMediaKeys.d.ts +5 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/useWebKitMediaKeys.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/dom/webkit/useWebKitMediaKeys.js +18 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonEme.d.ts +6 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonEme.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonEme.js +10 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeySession.d.ts +11 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeySession.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeySession.js +14 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeySystemAccess.d.ts +8 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeySystemAccess.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeySystemAccess.js +13 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeys.d.ts +9 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeys.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockCommonMediaKeys.js +14 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockDrmController.d.ts +13 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockDrmController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/drm/MockDrmController.js +17 -0
- package/dist/vinylTestUtil/types/current/mock/hls/MockHlsManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/current/mock/hls/MockHlsManifestController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/hls/MockHlsManifestController.js +39 -0
- package/dist/vinylTestUtil/types/current/mock/hls/mockHlsManifest.d.ts +6 -0
- package/dist/vinylTestUtil/types/current/mock/hls/mockHlsManifest.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/hls/mockHlsManifest.js +66 -0
- package/dist/vinylTestUtil/types/current/mock/logging/MockHistoryLogHandler.d.ts +9 -0
- package/dist/vinylTestUtil/types/current/mock/logging/MockHistoryLogHandler.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/logging/MockHistoryLogHandler.js +13 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockLoudnessNormalizationController.d.ts +8 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockLoudnessNormalizationController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockLoudnessNormalizationController.js +12 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockPlaybackController.d.ts +34 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockPlaybackController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockPlaybackController.js +38 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockPlaybackSource.d.ts +10 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockPlaybackSource.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/playback/MockPlaybackSource.js +14 -0
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts +38 -0
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.js +34 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.d.ts +18 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/MockContentStream.js +22 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.d.ts +15 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.js +20 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/abr/MockQualitySelector.d.ts +5 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/abr/MockQualitySelector.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/abr/MockQualitySelector.js +9 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.d.ts +14 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockBufferingController.js +18 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts +11 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.js +15 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockSourceBufferController.d.ts +15 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockSourceBufferController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockSourceBufferController.js +19 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.d.ts +7 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.js +11 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrack.d.ts +29 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrack.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrack.js +42 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackController.d.ts +20 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackController.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackController.js +24 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackFactory.d.ts +7 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackFactory.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/MockTrackFactory.js +10 -0
- package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.js +38 -0
- package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.js +38 -0
- package/dist/vinylTestUtil/types/current/player/createVinylSuite.d.ts +41 -0
- package/dist/vinylTestUtil/types/current/player/createVinylSuite.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/player/createVinylSuite.js +75 -0
- package/dist/vinylTestUtil/types/current/player/mediaRef.d.ts +6 -0
- package/dist/vinylTestUtil/types/current/player/mediaRef.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/player/mediaRef.js +24 -0
- package/dist/vinylTestUtil/types/current/tsconfig.tsbuildinfo +1 -0
- package/dist/vinylTestUtil/types/current/ui/requireUserInteraction.d.ts +5 -0
- package/dist/vinylTestUtil/types/current/ui/requireUserInteraction.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/ui/requireUserInteraction.js +25 -0
- package/dist/vinylTestUtil/types/current/util/playback/eventPromises.d.ts +39 -0
- package/dist/vinylTestUtil/types/current/util/playback/eventPromises.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/util/playback/eventPromises.js +81 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.d.ts +3 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.js +68 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlays.d.ts +13 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlays.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlays.js +81 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.d.ts +12 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.js +42 -0
- package/dist/vinylTestUtil/types/current/util/playback/playbackStateExpectations.d.ts +23 -0
- package/dist/vinylTestUtil/types/current/util/playback/playbackStateExpectations.d.ts.map +1 -0
- package/dist/vinylTestUtil/types/current/util/playback/playbackStateExpectations.js +64 -0
- package/dist/vinylTestUtil/types/ts3.7/assets/dash_personalizedResponse.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts3.7/assets/dash_segmentBase.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts3.7/assets/dash_segmentList.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts3.7/assets/dash_segmentListMediaRange.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts3.7/assets/vinylTestAssets.d.ts +64 -0
- package/dist/vinylTestUtil/types/ts3.7/index.d.ts +55 -0
- package/dist/vinylTestUtil/types/ts3.7/media/FrequencyAnalyzer.d.ts +50 -0
- package/dist/vinylTestUtil/types/ts3.7/media/unlockMediaElement.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts3.7/mediaSource/ControlledMediaSource.d.ts +28 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/client/MockCapabilities.d.ts +12 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/client/MockClient.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dash/MockDashManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dash/mockDashManifest.d.ts +3717 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/ms/MockMSMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/ms/MockMSMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/ms/MockMSMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/ms/MockMSMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/webkit/MockWebKitMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/webkit/MockWebKitMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/webkit/MockWebKitMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/dom/webkit/useWebKitMediaKeys.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/drm/MockCommonEme.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/drm/MockCommonMediaKeySession.d.ts +11 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/drm/MockCommonMediaKeySystemAccess.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/drm/MockCommonMediaKeys.d.ts +9 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/drm/MockDrmController.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/hls/MockHlsManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/hls/mockHlsManifest.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/logging/MockHistoryLogHandler.d.ts +9 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/playback/MockLoudnessNormalizationController.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/playback/MockPlaybackController.d.ts +34 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/playback/MockPlaybackSource.d.ts +10 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/player/MockVinylPlayerDependencies.d.ts +38 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/MockContentStream.d.ts +18 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/MockSegmentController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/abr/MockQualitySelector.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockBufferingController.d.ts +14 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockMediaSourceController.d.ts +11 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockSourceBufferController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/track/MockAutoResetController.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/track/MockTrack.d.ts +29 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/track/MockTrackController.d.ts +20 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/track/MockTrackFactory.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/track/dash/createMockDashDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts3.7/mock/track/hls/createMockHlsDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts3.7/player/createVinylSuite.d.ts +41 -0
- package/dist/vinylTestUtil/types/ts3.7/player/mediaRef.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts3.7/ui/requireUserInteraction.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts3.7/util/playback/eventPromises.d.ts +39 -0
- package/dist/vinylTestUtil/types/ts3.7/util/playback/expectTrackCanSeek.d.ts +3 -0
- package/dist/vinylTestUtil/types/ts3.7/util/playback/expectTrackPlays.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts3.7/util/playback/expectTrackPlaysUntil.d.ts +12 -0
- package/dist/vinylTestUtil/types/ts3.7/util/playback/playbackStateExpectations.d.ts +23 -0
- package/dist/vinylTestUtil/types/ts4.1/assets/dash_personalizedResponse.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.1/assets/dash_segmentBase.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.1/assets/dash_segmentList.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.1/assets/dash_segmentListMediaRange.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.1/assets/vinylTestAssets.d.ts +64 -0
- package/dist/vinylTestUtil/types/ts4.1/index.d.ts +55 -0
- package/dist/vinylTestUtil/types/ts4.1/media/FrequencyAnalyzer.d.ts +50 -0
- package/dist/vinylTestUtil/types/ts4.1/media/unlockMediaElement.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.1/mediaSource/ControlledMediaSource.d.ts +28 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/client/MockCapabilities.d.ts +12 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/client/MockClient.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dash/MockDashManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dash/mockDashManifest.d.ts +3717 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/ms/MockMSMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/ms/MockMSMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/ms/MockMSMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/ms/MockMSMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/webkit/MockWebKitMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/webkit/MockWebKitMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/webkit/MockWebKitMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/dom/webkit/useWebKitMediaKeys.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/drm/MockCommonEme.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/drm/MockCommonMediaKeySession.d.ts +11 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/drm/MockCommonMediaKeySystemAccess.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/drm/MockCommonMediaKeys.d.ts +10 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/drm/MockDrmController.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/hls/MockHlsManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/hls/mockHlsManifest.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/logging/MockHistoryLogHandler.d.ts +9 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/playback/MockLoudnessNormalizationController.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/playback/MockPlaybackController.d.ts +34 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/playback/MockPlaybackSource.d.ts +10 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/player/MockVinylPlayerDependencies.d.ts +38 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/MockContentStream.d.ts +18 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/MockSegmentController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/abr/MockQualitySelector.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockBufferingController.d.ts +14 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockMediaSourceController.d.ts +11 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockSourceBufferController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/track/MockAutoResetController.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/track/MockTrack.d.ts +29 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/track/MockTrackController.d.ts +20 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/track/MockTrackFactory.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/track/dash/createMockDashDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.1/mock/track/hls/createMockHlsDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.1/player/createVinylSuite.d.ts +41 -0
- package/dist/vinylTestUtil/types/ts4.1/player/mediaRef.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.1/ui/requireUserInteraction.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.1/util/playback/eventPromises.d.ts +39 -0
- package/dist/vinylTestUtil/types/ts4.1/util/playback/expectTrackCanSeek.d.ts +3 -0
- package/dist/vinylTestUtil/types/ts4.1/util/playback/expectTrackPlays.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.1/util/playback/expectTrackPlaysUntil.d.ts +12 -0
- package/dist/vinylTestUtil/types/ts4.1/util/playback/playbackStateExpectations.d.ts +23 -0
- package/dist/vinylTestUtil/types/ts4.7/assets/dash_personalizedResponse.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.7/assets/dash_segmentBase.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.7/assets/dash_segmentList.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.7/assets/dash_segmentListMediaRange.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.7/assets/vinylTestAssets.d.ts +64 -0
- package/dist/vinylTestUtil/types/ts4.7/index.d.ts +55 -0
- package/dist/vinylTestUtil/types/ts4.7/media/FrequencyAnalyzer.d.ts +56 -0
- package/dist/vinylTestUtil/types/ts4.7/media/unlockMediaElement.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.7/mediaSource/ControlledMediaSource.d.ts +28 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/client/MockCapabilities.d.ts +12 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/client/MockClient.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dash/MockDashManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dash/mockDashManifest.d.ts +3717 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/ms/MockMSMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/ms/MockMSMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/ms/MockMSMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/ms/MockMSMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/webkit/MockWebKitMediaKeyError.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/webkit/MockWebKitMediaKeyMessageEvent.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/webkit/MockWebKitMediaKeys.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/dom/webkit/useWebKitMediaKeys.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/drm/MockCommonEme.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/drm/MockCommonMediaKeySession.d.ts +11 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/drm/MockCommonMediaKeySystemAccess.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/drm/MockCommonMediaKeys.d.ts +9 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/drm/MockDrmController.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/hls/MockHlsManifestController.d.ts +19 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/hls/mockHlsManifest.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/logging/MockHistoryLogHandler.d.ts +9 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/playback/MockLoudnessNormalizationController.d.ts +8 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/playback/MockPlaybackController.d.ts +34 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/playback/MockPlaybackSource.d.ts +10 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/player/MockVinylPlayerDependencies.d.ts +38 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/MockContentStream.d.ts +18 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/MockSegmentController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/abr/MockQualitySelector.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockBufferingController.d.ts +14 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockMediaSourceController.d.ts +11 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockSourceBufferController.d.ts +15 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/track/MockAutoResetController.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/track/MockTrack.d.ts +29 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/track/MockTrackController.d.ts +20 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/track/MockTrackFactory.d.ts +7 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/track/dash/createMockDashDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.7/mock/track/hls/createMockHlsDependencies.d.ts +21 -0
- package/dist/vinylTestUtil/types/ts4.7/player/createVinylSuite.d.ts +41 -0
- package/dist/vinylTestUtil/types/ts4.7/player/mediaRef.d.ts +6 -0
- package/dist/vinylTestUtil/types/ts4.7/ui/requireUserInteraction.d.ts +5 -0
- package/dist/vinylTestUtil/types/ts4.7/util/playback/eventPromises.d.ts +39 -0
- package/dist/vinylTestUtil/types/ts4.7/util/playback/expectTrackCanSeek.d.ts +3 -0
- package/dist/vinylTestUtil/types/ts4.7/util/playback/expectTrackPlays.d.ts +13 -0
- package/dist/vinylTestUtil/types/ts4.7/util/playback/expectTrackPlaysUntil.d.ts +12 -0
- package/dist/vinylTestUtil/types/ts4.7/util/playback/playbackStateExpectations.d.ts +23 -0
- package/docs/ARCHITECTURE.md +175 -0
- package/docs/AUTO_RESET.md +77 -0
- package/docs/DASH_MANIFEST_TRANSFORM_GUIDE.md +236 -0
- package/docs/DRM_CONFIGURATION.md +217 -0
- package/docs/DRM_CONTROLLER.md +149 -0
- package/docs/USAGE.md +399 -0
- package/package.json +109 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { EventHostImpl, type ReadonlyAbort, type ReadonlyRanges } from '@amazon/vinyl-util';
|
|
2
|
+
import type { ReadonlyPlaybackController } from '../playback/ReadonlyPlaybackController';
|
|
3
|
+
import { type PrefetchOptions, type SegmentController, type SegmentControllerEventMap } from '../streaming/SegmentController';
|
|
4
|
+
import type { SegmentReference } from '../streaming/SegmentReference';
|
|
5
|
+
import type { ContentType, MediaQualityMetadata } from '../streaming/MediaQualityMetadata';
|
|
6
|
+
import type { ObservableValue } from '@amazon/vinyl-observable';
|
|
7
|
+
import type { MediaTimeline } from '../streaming/MediaTimeline';
|
|
8
|
+
import type { QualitySelector } from '../streaming/abr/QualitySelector';
|
|
9
|
+
/**
|
|
10
|
+
* The interval to check if additional segments should be prefetched.
|
|
11
|
+
*/
|
|
12
|
+
export declare const PREFETCH_POLL_THROTTLE = 1;
|
|
13
|
+
export interface SegmentControllerImplDeps {
|
|
14
|
+
readonly playbackController: ReadonlyPlaybackController;
|
|
15
|
+
readonly mediaTimelineTransformed: ObservableValue<Promise<MediaTimeline>>;
|
|
16
|
+
readonly qualitySelector: QualitySelector;
|
|
17
|
+
}
|
|
18
|
+
export interface SegmentControllerImplOptions {
|
|
19
|
+
/**
|
|
20
|
+
* The amount of time ahead of the playhead to prefetch when the track is active.
|
|
21
|
+
* Default: 240
|
|
22
|
+
*/
|
|
23
|
+
readonly prefetchActive: number;
|
|
24
|
+
/**
|
|
25
|
+
* The amount of time to prefetch when the track is not active.
|
|
26
|
+
* Default: 20
|
|
27
|
+
*/
|
|
28
|
+
readonly prefetchInactive: number;
|
|
29
|
+
/**
|
|
30
|
+
* The number of seconds behind the playhead to retain segments.
|
|
31
|
+
* Default: 30
|
|
32
|
+
*/
|
|
33
|
+
readonly retainTail: number;
|
|
34
|
+
}
|
|
35
|
+
export declare const defaultSegmentControllerBaseOptions: SegmentControllerImplOptions;
|
|
36
|
+
/**
|
|
37
|
+
* Default SegmentController implementation.
|
|
38
|
+
* Provides segments for a given time.
|
|
39
|
+
* Handles segment prefetching and caching.
|
|
40
|
+
*
|
|
41
|
+
* Uses mediaTimelineTransformed to resolve segments directly from the MediaTimeline.
|
|
42
|
+
*/
|
|
43
|
+
export declare class SegmentControllerImpl extends EventHostImpl<SegmentControllerEventMap> implements SegmentController {
|
|
44
|
+
readonly deps: SegmentControllerImplDeps;
|
|
45
|
+
readonly contentType: ContentType;
|
|
46
|
+
get [Symbol.toStringTag](): string;
|
|
47
|
+
private _active;
|
|
48
|
+
get active(): boolean;
|
|
49
|
+
private readonly _fetchedRanges;
|
|
50
|
+
private _startTime;
|
|
51
|
+
/**
|
|
52
|
+
* A map of decoder id to init segment slots.
|
|
53
|
+
* This allows representations with seamless bitstream switching to share initialization segments without
|
|
54
|
+
* making unnecessary requests or decoder re-initializations.
|
|
55
|
+
*/
|
|
56
|
+
private readonly cachedInitSegments;
|
|
57
|
+
private readonly cachedSegments;
|
|
58
|
+
private readonly disposer;
|
|
59
|
+
readonly options: SegmentControllerImplOptions;
|
|
60
|
+
private prefetchingPriority;
|
|
61
|
+
/**
|
|
62
|
+
* True if the last segment in the prefetch range has been cached.
|
|
63
|
+
*/
|
|
64
|
+
private ended;
|
|
65
|
+
private prefetching;
|
|
66
|
+
private _error;
|
|
67
|
+
private timeUpdateSub;
|
|
68
|
+
private seekingSub;
|
|
69
|
+
private readonly abort;
|
|
70
|
+
/**
|
|
71
|
+
* Cached last period lookup for fast repeated access.
|
|
72
|
+
*/
|
|
73
|
+
private _cachedPeriod;
|
|
74
|
+
constructor(deps: SegmentControllerImplDeps, contentType: ContentType, options?: Partial<SegmentControllerImplOptions>);
|
|
75
|
+
get error(): Error | null;
|
|
76
|
+
getDuration(): Promise<number | null>;
|
|
77
|
+
/**
|
|
78
|
+
* Gets the period at the given time, using a cache for the last returned period.
|
|
79
|
+
*/
|
|
80
|
+
private getPeriodAtTime;
|
|
81
|
+
/**
|
|
82
|
+
* Configures this segment provider and initiates prefetching.
|
|
83
|
+
* This may be called multiple times, for example when re-using a cached track a new track priority and start time
|
|
84
|
+
* can be provided.
|
|
85
|
+
*/
|
|
86
|
+
configure(options: Partial<PrefetchOptions>): void;
|
|
87
|
+
get startTime(): number;
|
|
88
|
+
get trackPrefetchPriority(): number;
|
|
89
|
+
/**
|
|
90
|
+
* Returns the range that should be prefetched.
|
|
91
|
+
*/
|
|
92
|
+
private get prefetchRange();
|
|
93
|
+
/**
|
|
94
|
+
* Returns the range that should be prefetched when inactive.
|
|
95
|
+
* This range will not be removed during sweeps unless `clear` is called.
|
|
96
|
+
*/
|
|
97
|
+
private get prefetchRangeInactive();
|
|
98
|
+
/**
|
|
99
|
+
* Returns the range that should be prefetched while active.
|
|
100
|
+
*/
|
|
101
|
+
private get prefetchRangeActive();
|
|
102
|
+
/**
|
|
103
|
+
* Clears data segments no longer within the current prefetch range.
|
|
104
|
+
* Init segments will not be changed.
|
|
105
|
+
*/
|
|
106
|
+
private sweepCachedSegments;
|
|
107
|
+
/**
|
|
108
|
+
* Gets the next time to prefetch, or null if the prefetch range has been filled.
|
|
109
|
+
*/
|
|
110
|
+
private getNextTimeToPrefetch;
|
|
111
|
+
private pollPrefetch;
|
|
112
|
+
private prefetchErrorHandler;
|
|
113
|
+
get fetchedRanges(): ReadonlyRanges;
|
|
114
|
+
/**
|
|
115
|
+
* Gets the number of seconds currently prefetched.
|
|
116
|
+
*/
|
|
117
|
+
get fetchedTime(): number;
|
|
118
|
+
private _streamingQuality;
|
|
119
|
+
get streamingQuality(): MediaQualityMetadata | null;
|
|
120
|
+
private set streamingQuality(value);
|
|
121
|
+
getSegment(time: number, abort?: ReadonlyAbort): Promise<SegmentReference<ArrayBuffer> | null>;
|
|
122
|
+
private _getSegment;
|
|
123
|
+
/**
|
|
124
|
+
* Gets the minimum buffer time from the timeline.
|
|
125
|
+
* Falls back to a reasonable default.
|
|
126
|
+
*/
|
|
127
|
+
private getMinBufferTime;
|
|
128
|
+
/**
|
|
129
|
+
* Prefetches the segment at the given time. Does not use the background scheduler.
|
|
130
|
+
*
|
|
131
|
+
* @param time
|
|
132
|
+
*/
|
|
133
|
+
private prefetchImmediate;
|
|
134
|
+
/**
|
|
135
|
+
* Gets a streaming segment slot that spans the given time, or null if there is no media at that time.
|
|
136
|
+
* Slots will be cached until they slide out of the retention range or `clear` is called.
|
|
137
|
+
*/
|
|
138
|
+
private getSlotAtTime;
|
|
139
|
+
/**
|
|
140
|
+
* Gets a cached init segment slot for the given decoder id. If a slot is not cached, create one.
|
|
141
|
+
*/
|
|
142
|
+
private getOrCreateInitSlot;
|
|
143
|
+
/**
|
|
144
|
+
* Creates a slot that spans the given time, or returns null if there is no media at that time.
|
|
145
|
+
* Uses the mediaTimelineTransformed to resolve segments directly.
|
|
146
|
+
*/
|
|
147
|
+
private createSlotForTime;
|
|
148
|
+
/**
|
|
149
|
+
* Indicates that this segment provider is providing segments for an active track and should be prioritized
|
|
150
|
+
* accordingly.
|
|
151
|
+
* Time ranges to be prefetched will change to the active prefetch window.
|
|
152
|
+
*/
|
|
153
|
+
activate(): void;
|
|
154
|
+
/**
|
|
155
|
+
* Deactivates the segment provider.
|
|
156
|
+
* This clears cached segments not within the inactive prefetch range.
|
|
157
|
+
* Time ranges to be prefetched will change to the inactive prefetch window.
|
|
158
|
+
*/
|
|
159
|
+
deactivate(): void;
|
|
160
|
+
clear(): void;
|
|
161
|
+
reset(): void;
|
|
162
|
+
/**
|
|
163
|
+
* Resets the slot if it's in an error state.
|
|
164
|
+
* @param slot
|
|
165
|
+
*/
|
|
166
|
+
private resetSlot;
|
|
167
|
+
get disposed(): boolean;
|
|
168
|
+
dispose(): void;
|
|
169
|
+
}
|
|
170
|
+
//# sourceMappingURL=SegmentControllerImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SegmentControllerImpl.d.ts","sourceRoot":"","sources":["../../../../src/streaming/SegmentControllerImpl.ts"],"names":[],"mappings":"AAMA,OAAO,EAKH,aAAa,EAUb,KAAK,aAAa,EAClB,KAAK,cAAc,EAGtB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAA;AACvF,OAAO,EACH,KAAK,eAAe,EAEpB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EACjC,MAAM,+BAA+B,CAAA;AAgBtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,EACR,WAAW,EACX,oBAAoB,EACvB,MAAM,kCAAkC,CAAA;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAK9D,OAAO,KAAK,EAER,eAAe,EAClB,MAAM,iCAAiC,CAAA;AAExC;;GAEG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAA;AAEvC,MAAM,WAAW,yBAAyB;IACtC,QAAQ,CAAC,kBAAkB,EAAE,0BAA0B,CAAA;IAEvD,QAAQ,CAAC,wBAAwB,EAAE,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAA;IAE1E,QAAQ,CAAC,eAAe,EAAE,eAAe,CAAA;CAC5C;AAED,MAAM,WAAW,4BAA4B;IACzC;;;OAGG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;IAE/B;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IAEjC;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAC9B;AAED,eAAO,MAAM,mCAAmC,EAAE,4BAK7C,CAAA;AAEL;;;;;;GAMG;AACH,qBAAa,qBACT,SAAQ,aAAa,CAAC,yBAAyB,CAC/C,YAAW,iBAAiB;IA+CxB,QAAQ,CAAC,IAAI,EAAE,yBAAyB;IACxC,QAAQ,CAAC,WAAW,EAAE,WAAW;IA9CrC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,MAAM,CAEjC;IAED,OAAO,CAAC,OAAO,CAAQ;IACvB,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAmB;IAClD,OAAO,CAAC,UAAU,CAAI;IAEtB;;;;OAIG;IACH,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqC;IACxE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0C;IAEzE,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,QAAQ,CAAC,OAAO,EAAE,4BAA4B,CAAA;IAE9C,OAAO,CAAC,mBAAmB,CACI;IAE/B;;OAEG;IACH,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,WAAW,CAAQ;IAC3B,OAAO,CAAC,MAAM,CAAqB;IAEnC,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,UAAU,CAA2B;IAG7C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IAEpC;;OAEG;IACH,OAAO,CAAC,aAAa,CAA2B;gBAGnC,IAAI,EAAE,yBAAyB,EAC/B,WAAW,EAAE,WAAW,EACjC,OAAO,CAAC,EAAE,OAAO,CAAC,4BAA4B,CAAC;IA2BnD,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,CAExB;IAEK,WAAW,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IAS3C;;OAEG;YACW,eAAe;IAc7B;;;;OAIG;IACH,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC;IAS3C,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,qBAAqB,IAAI,MAAM,CAElC;IAED;;OAEG;IACH,OAAO,KAAK,aAAa,GAIxB;IAED;;;OAGG;IACH,OAAO,KAAK,qBAAqB,GAIhC;IAED;;OAEG;IACH,OAAO,KAAK,mBAAmB,GAI9B;IAED;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAmC3B;;OAEG;IACH,OAAO,CAAC,qBAAqB;IAS7B,OAAO,CAAC,YAAY,CA+CnB;IAED,OAAO,CAAC,oBAAoB,CAO3B;IAED,IAAI,aAAa,IAAI,cAAc,CAElC;IAED;;OAEG;IACH,IAAI,WAAW,IAAI,MAAM,CAOxB;IAED,OAAO,CAAC,iBAAiB,CAAoC;IAE7D,IAAI,gBAAgB,IAAI,oBAAoB,GAAG,IAAI,CAElD;IAED,OAAO,KAAK,gBAAgB,QAS3B;IAED,UAAU,CACN,IAAI,EAAE,MAAM,EACZ,KAAK,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,gBAAgB,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;YAgBlC,WAAW;IAmCzB;;;OAGG;YACW,gBAAgB;IAK9B;;;;OAIG;YACW,iBAAiB;IAM/B;;;OAGG;YACW,aAAa;IAiD3B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;OAGG;YACW,iBAAiB;IAmD/B;;;;OAIG;IACH,QAAQ,IAAI,IAAI;IAiBhB;;;;OAIG;IACH,UAAU,IAAI,IAAI;IAWlB,KAAK,IAAI,IAAI;IAiBb,KAAK,IAAI,IAAI;IAOb;;;OAGG;IACH,OAAO,CAAC,SAAS;IAajB,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,OAAO,IAAI,IAAI;CAQlB"}
|
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { Abort, clone, closeTo, createDisposer, EventHostImpl, getNetworkState, getOrSet, isSilentError, logDebug, logError, noop, rangeIntersects, RangesImpl, throttle, withAbort, } from '@amazon/vinyl-util';
|
|
6
|
+
import { SEGMENT_START_AFFORDANCE, } from '../streaming/SegmentController';
|
|
7
|
+
import { SegmentDataSlot, SegmentStatus, } from '../streaming/SegmentDataSlot';
|
|
8
|
+
import { defaultTrackPriority, enqueueSegmentPrefetch, immediatePrefetchPriority, } from '../streaming/SegmentPrefetch';
|
|
9
|
+
import { getSegmentAtTime, getSegmentInsertionIndexAtTime, } from '../streaming/util/segment';
|
|
10
|
+
import { getMediaPeriodAtTime, } from '../streaming/MediaTimeline';
|
|
11
|
+
/**
|
|
12
|
+
* The interval to check if additional segments should be prefetched.
|
|
13
|
+
*/
|
|
14
|
+
export const PREFETCH_POLL_THROTTLE = 1;
|
|
15
|
+
export const defaultSegmentControllerBaseOptions = {
|
|
16
|
+
prefetchActive: 180,
|
|
17
|
+
prefetchInactive: 20,
|
|
18
|
+
retainTail: 30,
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Default SegmentController implementation.
|
|
22
|
+
* Provides segments for a given time.
|
|
23
|
+
* Handles segment prefetching and caching.
|
|
24
|
+
*
|
|
25
|
+
* Uses mediaTimelineTransformed to resolve segments directly from the MediaTimeline.
|
|
26
|
+
*/
|
|
27
|
+
export class SegmentControllerImpl extends EventHostImpl {
|
|
28
|
+
deps;
|
|
29
|
+
contentType;
|
|
30
|
+
get [Symbol.toStringTag]() {
|
|
31
|
+
return 'SegmentControllerImpl';
|
|
32
|
+
}
|
|
33
|
+
_active = false;
|
|
34
|
+
get active() {
|
|
35
|
+
return this._active;
|
|
36
|
+
}
|
|
37
|
+
_fetchedRanges = new RangesImpl();
|
|
38
|
+
_startTime = 0;
|
|
39
|
+
/**
|
|
40
|
+
* A map of decoder id to init segment slots.
|
|
41
|
+
* This allows representations with seamless bitstream switching to share initialization segments without
|
|
42
|
+
* making unnecessary requests or decoder re-initializations.
|
|
43
|
+
*/
|
|
44
|
+
cachedInitSegments = new Map();
|
|
45
|
+
cachedSegments = [];
|
|
46
|
+
disposer = createDisposer();
|
|
47
|
+
options;
|
|
48
|
+
prefetchingPriority = clone(defaultTrackPriority);
|
|
49
|
+
/**
|
|
50
|
+
* True if the last segment in the prefetch range has been cached.
|
|
51
|
+
*/
|
|
52
|
+
ended = false;
|
|
53
|
+
prefetching = false;
|
|
54
|
+
_error = null;
|
|
55
|
+
timeUpdateSub = null;
|
|
56
|
+
seekingSub = null;
|
|
57
|
+
// When disposed, aborts in-flight operations.
|
|
58
|
+
abort = new Abort();
|
|
59
|
+
/**
|
|
60
|
+
* Cached last period lookup for fast repeated access.
|
|
61
|
+
*/
|
|
62
|
+
_cachedPeriod = null;
|
|
63
|
+
constructor(deps, contentType, options) {
|
|
64
|
+
super();
|
|
65
|
+
this.deps = deps;
|
|
66
|
+
this.contentType = contentType;
|
|
67
|
+
logDebug(this, 'constructed');
|
|
68
|
+
const { add } = this.disposer;
|
|
69
|
+
this.options = {
|
|
70
|
+
...defaultSegmentControllerBaseOptions,
|
|
71
|
+
...options,
|
|
72
|
+
};
|
|
73
|
+
add(deps.mediaTimelineTransformed.onData(() => {
|
|
74
|
+
// If the media timeline changes, re-check ended state.
|
|
75
|
+
this.ended = false;
|
|
76
|
+
this._cachedPeriod = null;
|
|
77
|
+
this.pollPrefetch();
|
|
78
|
+
this.dispatch('change', {});
|
|
79
|
+
}));
|
|
80
|
+
add(getNetworkState().on('online', () => {
|
|
81
|
+
logDebug(this, 'online, resetting prefetch');
|
|
82
|
+
this.reset();
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
85
|
+
get error() {
|
|
86
|
+
return this._error;
|
|
87
|
+
}
|
|
88
|
+
async getDuration() {
|
|
89
|
+
const timeline = await this.deps.mediaTimelineTransformed.value;
|
|
90
|
+
if (timeline.getDuration)
|
|
91
|
+
return timeline.getDuration();
|
|
92
|
+
const periods = timeline.periods;
|
|
93
|
+
if (periods.length === 0)
|
|
94
|
+
return null;
|
|
95
|
+
const last = periods[periods.length - 1];
|
|
96
|
+
return last.endTime === Infinity ? null : last.endTime;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Gets the period at the given time, using a cache for the last returned period.
|
|
100
|
+
*/
|
|
101
|
+
async getPeriodAtTime(time) {
|
|
102
|
+
if (this._cachedPeriod &&
|
|
103
|
+
time >= this._cachedPeriod.startTime &&
|
|
104
|
+
time < this._cachedPeriod.endTime) {
|
|
105
|
+
return this._cachedPeriod;
|
|
106
|
+
}
|
|
107
|
+
const timeline = await this.deps.mediaTimelineTransformed.value;
|
|
108
|
+
const period = getMediaPeriodAtTime(timeline, time);
|
|
109
|
+
if (period)
|
|
110
|
+
this._cachedPeriod = period;
|
|
111
|
+
return period;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Configures this segment provider and initiates prefetching.
|
|
115
|
+
* This may be called multiple times, for example when re-using a cached track a new track priority and start time
|
|
116
|
+
* can be provided.
|
|
117
|
+
*/
|
|
118
|
+
configure(options) {
|
|
119
|
+
if (options.startTime != null)
|
|
120
|
+
this._startTime = options.startTime;
|
|
121
|
+
if (options.trackPrefetchPriority != null)
|
|
122
|
+
this.prefetchingPriority.trackPriority =
|
|
123
|
+
options.trackPrefetchPriority;
|
|
124
|
+
this.ended = false;
|
|
125
|
+
this.pollPrefetch();
|
|
126
|
+
}
|
|
127
|
+
get startTime() {
|
|
128
|
+
return this._startTime;
|
|
129
|
+
}
|
|
130
|
+
get trackPrefetchPriority() {
|
|
131
|
+
return this.prefetchingPriority.trackPriority;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Returns the range that should be prefetched.
|
|
135
|
+
*/
|
|
136
|
+
get prefetchRange() {
|
|
137
|
+
return this.active
|
|
138
|
+
? this.prefetchRangeActive
|
|
139
|
+
: this.prefetchRangeInactive;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Returns the range that should be prefetched when inactive.
|
|
143
|
+
* This range will not be removed during sweeps unless `clear` is called.
|
|
144
|
+
*/
|
|
145
|
+
get prefetchRangeInactive() {
|
|
146
|
+
const prefetchFrom = this.startTime;
|
|
147
|
+
const prefetchTo = prefetchFrom + this.options.prefetchInactive;
|
|
148
|
+
return [prefetchFrom, prefetchTo];
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Returns the range that should be prefetched while active.
|
|
152
|
+
*/
|
|
153
|
+
get prefetchRangeActive() {
|
|
154
|
+
const prefetchFrom = this.deps.playbackController.currentTime;
|
|
155
|
+
const prefetchTo = prefetchFrom + this.options.prefetchActive;
|
|
156
|
+
return [prefetchFrom, prefetchTo];
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Clears data segments no longer within the current prefetch range.
|
|
160
|
+
* Init segments will not be changed.
|
|
161
|
+
*/
|
|
162
|
+
sweepCachedSegments() {
|
|
163
|
+
// The inactive range (typically first couple segments of a track) will not be removed.
|
|
164
|
+
const inactiveRange = this.prefetchRangeInactive;
|
|
165
|
+
// The active range prefetch expanded to include the retain tail will not be removed if the track is active.
|
|
166
|
+
const activeRange = this.active
|
|
167
|
+
? [
|
|
168
|
+
this.prefetchRangeActive[0] - this.options.retainTail,
|
|
169
|
+
this.prefetchRangeActive[1],
|
|
170
|
+
]
|
|
171
|
+
: null;
|
|
172
|
+
let n = this.cachedSegments.length;
|
|
173
|
+
for (let i = 0; i < n; i++) {
|
|
174
|
+
const cachedSegment = this.cachedSegments[i];
|
|
175
|
+
// Check if the cached segment is still within our retain window.
|
|
176
|
+
const { startTime, endTime } = cachedSegment;
|
|
177
|
+
const cachedRange = [startTime, endTime];
|
|
178
|
+
if (!rangeIntersects(inactiveRange, cachedRange) &&
|
|
179
|
+
!(activeRange && rangeIntersects(activeRange, cachedRange))) {
|
|
180
|
+
// No longer need the segment. Does nothing if inactive.
|
|
181
|
+
cachedSegment.data.clear();
|
|
182
|
+
this.cachedSegments.splice(i, 1);
|
|
183
|
+
logDebug(this, 'removing cached segment at: ', cachedSegment.startTime);
|
|
184
|
+
i--;
|
|
185
|
+
n--;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Gets the next time to prefetch, or null if the prefetch range has been filled.
|
|
191
|
+
*/
|
|
192
|
+
getNextTimeToPrefetch() {
|
|
193
|
+
const [prefetchFrom, prefetchTo] = this.prefetchRange;
|
|
194
|
+
// fetchedRanges are directly from the segments, safe to use when getting next segment.
|
|
195
|
+
const currentRange = this.fetchedRanges.getRangeAt(prefetchFrom);
|
|
196
|
+
const nextTime = currentRange == null ? prefetchFrom : currentRange[1];
|
|
197
|
+
if (nextTime >= prefetchTo - Number.EPSILON)
|
|
198
|
+
return null;
|
|
199
|
+
return nextTime;
|
|
200
|
+
}
|
|
201
|
+
pollPrefetch = this.disposer.add(throttle(() => {
|
|
202
|
+
if (this.error)
|
|
203
|
+
return;
|
|
204
|
+
this.sweepCachedSegments();
|
|
205
|
+
if (this.ended || this.prefetching)
|
|
206
|
+
return;
|
|
207
|
+
const nextTime = this.getNextTimeToPrefetch();
|
|
208
|
+
if (nextTime == null)
|
|
209
|
+
return; // Prefetched the full range
|
|
210
|
+
this.prefetching = true;
|
|
211
|
+
// Enqueue the prefetch.
|
|
212
|
+
enqueueSegmentPrefetch(async () => {
|
|
213
|
+
this.abort.throwIfAborted();
|
|
214
|
+
// Quality selection is done at the time of getSegment(), which is called when
|
|
215
|
+
// a slot is created. Defer slot creation until request is about to be made.
|
|
216
|
+
logDebug(this, `Prefetching`, nextTime.toFixed(4));
|
|
217
|
+
const slot = await this.getSlotAtTime(nextTime);
|
|
218
|
+
this.abort.throwIfAborted();
|
|
219
|
+
if (!slot) {
|
|
220
|
+
logDebug(this, 'prefetch ended');
|
|
221
|
+
this.ended = true;
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
await withAbort(Promise.all([
|
|
225
|
+
slot.initData.request(),
|
|
226
|
+
slot.data.request(),
|
|
227
|
+
]), this.abort);
|
|
228
|
+
}, this.contentType, this.prefetchingPriority)
|
|
229
|
+
.catch(this.prefetchErrorHandler)
|
|
230
|
+
.finally(() => {
|
|
231
|
+
this.prefetching = false;
|
|
232
|
+
if (!this.disposed)
|
|
233
|
+
this.pollPrefetch();
|
|
234
|
+
});
|
|
235
|
+
}, PREFETCH_POLL_THROTTLE, {
|
|
236
|
+
leading: true,
|
|
237
|
+
trailing: true,
|
|
238
|
+
}));
|
|
239
|
+
prefetchErrorHandler = (error) => {
|
|
240
|
+
// Only log the error for prefetch failures, it will get reported if/when it is attempted
|
|
241
|
+
// to be buffered.
|
|
242
|
+
if (!isSilentError(error)) {
|
|
243
|
+
logError(this, 'Error prefetching segment', error);
|
|
244
|
+
this._error = error;
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
get fetchedRanges() {
|
|
248
|
+
return this._fetchedRanges;
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Gets the number of seconds currently prefetched.
|
|
252
|
+
*/
|
|
253
|
+
get fetchedTime() {
|
|
254
|
+
const time = this.active
|
|
255
|
+
? this.deps.playbackController.currentTime
|
|
256
|
+
: this._startTime;
|
|
257
|
+
const currentRange = this.fetchedRanges.getRangeAt(time);
|
|
258
|
+
if (!currentRange)
|
|
259
|
+
return 0;
|
|
260
|
+
return currentRange[1] - time;
|
|
261
|
+
}
|
|
262
|
+
_streamingQuality = null;
|
|
263
|
+
get streamingQuality() {
|
|
264
|
+
return this._streamingQuality;
|
|
265
|
+
}
|
|
266
|
+
set streamingQuality(value) {
|
|
267
|
+
const previous = this._streamingQuality;
|
|
268
|
+
if (value?.qualityId === previous?.qualityId)
|
|
269
|
+
return;
|
|
270
|
+
this._streamingQuality = value;
|
|
271
|
+
logDebug(this, 'streamingQualityChange', value);
|
|
272
|
+
this.dispatch('streamingQualityChange', {
|
|
273
|
+
previous,
|
|
274
|
+
current: value,
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
getSegment(time, abort) {
|
|
278
|
+
logDebug(this, `requesting segment at time: ${time.toFixed(4)}`);
|
|
279
|
+
const segmentReferencePromise = withAbort(this._getSegment(Math.max(0, time)), abort);
|
|
280
|
+
// When a segment is actively needed, block the prefetch queue until the active segment promise settles:
|
|
281
|
+
enqueueSegmentPrefetch(() => segmentReferencePromise, this.contentType, immediatePrefetchPriority).catch(noop);
|
|
282
|
+
return segmentReferencePromise;
|
|
283
|
+
}
|
|
284
|
+
async _getSegment(time) {
|
|
285
|
+
const streamingSlot = await this.getSlotAtTime(time);
|
|
286
|
+
if (!streamingSlot)
|
|
287
|
+
return null;
|
|
288
|
+
logDebug(this, `init status: ${streamingSlot.initData.status}, data status: ${streamingSlot.data.status}`);
|
|
289
|
+
// If prefetch failed, try again now that the segment is actively needed:
|
|
290
|
+
this.resetSlot(streamingSlot);
|
|
291
|
+
const initAndDataPromise = Promise.all([
|
|
292
|
+
streamingSlot.initData.request(),
|
|
293
|
+
streamingSlot.data.request(),
|
|
294
|
+
]);
|
|
295
|
+
// If the requested time is close to the start of the next segment, immediately start prefetching the next
|
|
296
|
+
// segment, and not resolving until both are cached.
|
|
297
|
+
let minBufferPrefetch = Promise.resolve();
|
|
298
|
+
const minBufferTime = await this.getMinBufferTime();
|
|
299
|
+
if (streamingSlot.endTime - time < minBufferTime) {
|
|
300
|
+
minBufferPrefetch = this.prefetchImmediate(streamingSlot.endTime).catch(noop); // Ignore error until it is the next segment needed
|
|
301
|
+
}
|
|
302
|
+
const [initData, data] = await initAndDataPromise;
|
|
303
|
+
await minBufferPrefetch;
|
|
304
|
+
return {
|
|
305
|
+
...streamingSlot,
|
|
306
|
+
initData,
|
|
307
|
+
data,
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Gets the minimum buffer time from the timeline.
|
|
312
|
+
* Falls back to a reasonable default.
|
|
313
|
+
*/
|
|
314
|
+
async getMinBufferTime() {
|
|
315
|
+
const timeline = await this.deps.mediaTimelineTransformed.value;
|
|
316
|
+
return timeline.minBufferTime;
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Prefetches the segment at the given time. Does not use the background scheduler.
|
|
320
|
+
*
|
|
321
|
+
* @param time
|
|
322
|
+
*/
|
|
323
|
+
async prefetchImmediate(time) {
|
|
324
|
+
const slot = await this.getSlotAtTime(time);
|
|
325
|
+
if (!slot)
|
|
326
|
+
return;
|
|
327
|
+
await Promise.all([slot.initData.request(), slot.data.request()]);
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Gets a streaming segment slot that spans the given time, or null if there is no media at that time.
|
|
331
|
+
* Slots will be cached until they slide out of the retention range or `clear` is called.
|
|
332
|
+
*/
|
|
333
|
+
async getSlotAtTime(time) {
|
|
334
|
+
// Check if there is a cached slot.
|
|
335
|
+
const cachedSegment = getSegmentAtTime(time, this.cachedSegments, SEGMENT_START_AFFORDANCE);
|
|
336
|
+
if (cachedSegment)
|
|
337
|
+
return cachedSegment;
|
|
338
|
+
const newSlot = await withAbort(this.createSlotForTime(time), this.abort);
|
|
339
|
+
this.abort.throwIfAborted();
|
|
340
|
+
if (!newSlot)
|
|
341
|
+
return null;
|
|
342
|
+
newSlot.data.onStatusChange = () => {
|
|
343
|
+
// When the data segment settles, update the fetched ranges.
|
|
344
|
+
if (newSlot.data.status === SegmentStatus.RESOLVED)
|
|
345
|
+
this._fetchedRanges.add(newSlot.startTime, newSlot.endTime);
|
|
346
|
+
else if (newSlot.data.status === SegmentStatus.INACTIVE)
|
|
347
|
+
this._fetchedRanges.remove(newSlot.startTime, newSlot.endTime);
|
|
348
|
+
this.dispatch('fetchedRangesChange', {});
|
|
349
|
+
};
|
|
350
|
+
// Insert the slot, in order.
|
|
351
|
+
const insertionIndex = getSegmentInsertionIndexAtTime(newSlot.startTime, this.cachedSegments);
|
|
352
|
+
// Slot creation is asynchronous, to allow requesting index ranges. Check if a slot for this time was already
|
|
353
|
+
// created.
|
|
354
|
+
if (insertionIndex > 0) {
|
|
355
|
+
const cachedSegment = this.cachedSegments[insertionIndex - 1];
|
|
356
|
+
if (closeTo(newSlot.startTime, cachedSegment.startTime)) {
|
|
357
|
+
return cachedSegment;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
logDebug(this, `created slot at ${insertionIndex} for time ${newSlot.startTime.toFixed(4)}`);
|
|
361
|
+
this.cachedSegments.splice(insertionIndex, 0, newSlot);
|
|
362
|
+
return newSlot;
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Gets a cached init segment slot for the given decoder id. If a slot is not cached, create one.
|
|
366
|
+
*/
|
|
367
|
+
getOrCreateInitSlot(decoderId, segmentDataProvider) {
|
|
368
|
+
return getOrSet(this.cachedInitSegments, decoderId, () => {
|
|
369
|
+
return new SegmentDataSlot(segmentDataProvider);
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Creates a slot that spans the given time, or returns null if there is no media at that time.
|
|
374
|
+
* Uses the mediaTimelineTransformed to resolve segments directly.
|
|
375
|
+
*/
|
|
376
|
+
async createSlotForTime(time) {
|
|
377
|
+
const period = await this.getPeriodAtTime(time);
|
|
378
|
+
if (!period)
|
|
379
|
+
return null;
|
|
380
|
+
// Filter qualities to this content type.
|
|
381
|
+
const filteredQualities = period.qualities.filter((q) => q.metadata.contentType === this.contentType);
|
|
382
|
+
if (filteredQualities.length === 0)
|
|
383
|
+
return null;
|
|
384
|
+
// Gets the preceding segment encoding metadata for quality selection.
|
|
385
|
+
let previousQuality = null;
|
|
386
|
+
const previousIndex = getSegmentInsertionIndexAtTime(time, this.cachedSegments) - 1;
|
|
387
|
+
if (previousIndex >= 0)
|
|
388
|
+
previousQuality = this.cachedSegments[previousIndex].quality;
|
|
389
|
+
const prefetchState = {
|
|
390
|
+
fetchedTime: this.fetchedTime,
|
|
391
|
+
previousQuality,
|
|
392
|
+
active: this.active,
|
|
393
|
+
};
|
|
394
|
+
const metadataArray = filteredQualities.map((q) => q.metadata);
|
|
395
|
+
const index = this.deps.qualitySelector.selectQuality(metadataArray, prefetchState);
|
|
396
|
+
const selectedQuality = filteredQualities[index];
|
|
397
|
+
const segment = await selectedQuality.getSegment(time, SEGMENT_START_AFFORDANCE);
|
|
398
|
+
this.abort.throwIfAborted();
|
|
399
|
+
this.streamingQuality = segment?.quality ?? null;
|
|
400
|
+
if (!segment)
|
|
401
|
+
return null;
|
|
402
|
+
return {
|
|
403
|
+
...segment,
|
|
404
|
+
quality: segment.quality,
|
|
405
|
+
initData: this.getOrCreateInitSlot(segment.quality.decoderId, segment.initData),
|
|
406
|
+
data: new SegmentDataSlot(segment.data),
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Indicates that this segment provider is providing segments for an active track and should be prioritized
|
|
411
|
+
* accordingly.
|
|
412
|
+
* Time ranges to be prefetched will change to the active prefetch window.
|
|
413
|
+
*/
|
|
414
|
+
activate() {
|
|
415
|
+
if (this._active)
|
|
416
|
+
return;
|
|
417
|
+
logDebug(this, 'activate');
|
|
418
|
+
this._active = true;
|
|
419
|
+
this.pollPrefetch();
|
|
420
|
+
const playbackController = this.deps.playbackController;
|
|
421
|
+
this.timeUpdateSub = playbackController.on('timeUpdate', this.pollPrefetch);
|
|
422
|
+
this.seekingSub = playbackController.on('seeking', () => {
|
|
423
|
+
this.ended = false;
|
|
424
|
+
this._error = null;
|
|
425
|
+
this.pollPrefetch();
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* Deactivates the segment provider.
|
|
430
|
+
* This clears cached segments not within the inactive prefetch range.
|
|
431
|
+
* Time ranges to be prefetched will change to the inactive prefetch window.
|
|
432
|
+
*/
|
|
433
|
+
deactivate() {
|
|
434
|
+
if (!this._active)
|
|
435
|
+
return;
|
|
436
|
+
logDebug(this, 'deactivate');
|
|
437
|
+
this._active = false;
|
|
438
|
+
this.sweepCachedSegments();
|
|
439
|
+
this.timeUpdateSub();
|
|
440
|
+
this.timeUpdateSub = null;
|
|
441
|
+
this.seekingSub();
|
|
442
|
+
this.seekingSub = null;
|
|
443
|
+
}
|
|
444
|
+
clear() {
|
|
445
|
+
logDebug(this, 'clear');
|
|
446
|
+
this.cachedSegments.forEach((slot) => {
|
|
447
|
+
slot.data.onStatusChange = null;
|
|
448
|
+
slot.data.clear();
|
|
449
|
+
slot.initData.clear();
|
|
450
|
+
});
|
|
451
|
+
this.cachedSegments.length = 0;
|
|
452
|
+
this.cachedInitSegments.clear();
|
|
453
|
+
this._fetchedRanges.clear();
|
|
454
|
+
this.ended = false;
|
|
455
|
+
this._error = null;
|
|
456
|
+
this._cachedPeriod = null;
|
|
457
|
+
if (!this.disposed)
|
|
458
|
+
this.pollPrefetch();
|
|
459
|
+
this.dispatch('fetchedRangesChange', {});
|
|
460
|
+
}
|
|
461
|
+
reset() {
|
|
462
|
+
logDebug(this, 'reset');
|
|
463
|
+
this.cachedSegments.forEach((slot) => this.resetSlot(slot));
|
|
464
|
+
this._error = null;
|
|
465
|
+
this.pollPrefetch();
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Resets the slot if it's in an error state.
|
|
469
|
+
* @param slot
|
|
470
|
+
*/
|
|
471
|
+
resetSlot(slot) {
|
|
472
|
+
if (slot.data.status === SegmentStatus.ERRED) {
|
|
473
|
+
logDebug(this, 'resetting failed segment at time:', slot.startTime);
|
|
474
|
+
this.ended = false;
|
|
475
|
+
slot.data.clear();
|
|
476
|
+
}
|
|
477
|
+
if (slot.initData.status === SegmentStatus.ERRED) {
|
|
478
|
+
logDebug(this, 'resetting failed init segment');
|
|
479
|
+
this.ended = false;
|
|
480
|
+
slot.initData.clear();
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
get disposed() {
|
|
484
|
+
return this.disposer.disposed;
|
|
485
|
+
}
|
|
486
|
+
dispose() {
|
|
487
|
+
logDebug(this, 'disposing');
|
|
488
|
+
super.dispose();
|
|
489
|
+
this.disposer.dispose();
|
|
490
|
+
this.deactivate();
|
|
491
|
+
this.clear();
|
|
492
|
+
this.abort.abort();
|
|
493
|
+
}
|
|
494
|
+
}
|