@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,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { buildDashMediaTimeline } from '@amazon/vinyl';
|
|
6
|
+
import { noop } from '@amazon/vinyl-util';
|
|
7
|
+
import { dash_segmentList } from '@amazon/vinyl/vinylTestUtil';
|
|
8
|
+
import { pickFirstBaseUrlSelector } from '@amazon/vinyl';
|
|
9
|
+
import { parseDashManifest } from '@amazon/vinyl-mpd-parser';
|
|
10
|
+
describe('buildDashMediaTimeline', () => {
|
|
11
|
+
const manifest = parseDashManifest(dash_segmentList);
|
|
12
|
+
const deps = {
|
|
13
|
+
mediaQualityMetadataResolver: jasmine
|
|
14
|
+
.createSpy('resolver')
|
|
15
|
+
.and.callFake((rep) => ({
|
|
16
|
+
contentType: 'audio',
|
|
17
|
+
qualityId: rep.id ?? 'q',
|
|
18
|
+
decoderId: 'd',
|
|
19
|
+
groupId: 'g',
|
|
20
|
+
switchingGroupIds: null,
|
|
21
|
+
mimeType: 'audio/mp4',
|
|
22
|
+
codecs: 'mp4a.40.2',
|
|
23
|
+
bandwidth: rep.bandwidth,
|
|
24
|
+
bandwidthTotal: rep.bandwidth,
|
|
25
|
+
audioSamplingRate: null,
|
|
26
|
+
frameRate: null,
|
|
27
|
+
height: null,
|
|
28
|
+
width: null,
|
|
29
|
+
lang: null,
|
|
30
|
+
contentProtections: [],
|
|
31
|
+
encryptionScheme: null,
|
|
32
|
+
initDataType: null,
|
|
33
|
+
supplementalProperties: {},
|
|
34
|
+
})),
|
|
35
|
+
requestInterceptor: noop,
|
|
36
|
+
segmentRequestInit: undefined,
|
|
37
|
+
baseUrlSelector: pickFirstBaseUrlSelector,
|
|
38
|
+
};
|
|
39
|
+
it('builds periods from manifest', () => {
|
|
40
|
+
const data = {
|
|
41
|
+
manifest,
|
|
42
|
+
baseUrl: 'https://example.com/',
|
|
43
|
+
};
|
|
44
|
+
const timeline = buildDashMediaTimeline(deps, data);
|
|
45
|
+
expect(timeline.periods.length).toBe(manifest.MPD.Period.length);
|
|
46
|
+
expect(timeline.minBufferTime).toBe(manifest.MPD.minBufferTime);
|
|
47
|
+
expect(timeline.periods[0].qualities.length).toBeGreaterThan(0);
|
|
48
|
+
});
|
|
49
|
+
it('creates qualities with getSegment function', () => {
|
|
50
|
+
const data = {
|
|
51
|
+
manifest,
|
|
52
|
+
baseUrl: 'https://example.com/',
|
|
53
|
+
};
|
|
54
|
+
const timeline = buildDashMediaTimeline(deps, data);
|
|
55
|
+
const quality = timeline.periods[0].qualities[0];
|
|
56
|
+
expect(quality.getSegment).toEqual(jasmine.any(Function));
|
|
57
|
+
expect(quality.metadata).toBeDefined();
|
|
58
|
+
});
|
|
59
|
+
it('quality getSegment returns a segment reference', async () => {
|
|
60
|
+
const data = {
|
|
61
|
+
manifest,
|
|
62
|
+
baseUrl: 'https://example.com/',
|
|
63
|
+
};
|
|
64
|
+
const timeline = buildDashMediaTimeline(deps, data);
|
|
65
|
+
const quality = timeline.periods[0].qualities[0];
|
|
66
|
+
const segment = await quality.getSegment(0);
|
|
67
|
+
expect(segment).not.toBeNull();
|
|
68
|
+
expect(segment.startTime).toBeDefined();
|
|
69
|
+
expect(segment.initData).toBeDefined();
|
|
70
|
+
expect(segment.data).toBeDefined();
|
|
71
|
+
});
|
|
72
|
+
it('getDuration returns the manifest duration', async () => {
|
|
73
|
+
const data = {
|
|
74
|
+
manifest,
|
|
75
|
+
baseUrl: 'https://example.com/',
|
|
76
|
+
};
|
|
77
|
+
const timeline = buildDashMediaTimeline(deps, data);
|
|
78
|
+
const duration = await timeline.getDuration();
|
|
79
|
+
expect(duration).toEqual(jasmine.any(Number));
|
|
80
|
+
});
|
|
81
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDashContentStreamFactories.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/createDashContentStreamFactories.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { ContentStreamImpl, createDashContentStreamFactories, } from '@amazon/vinyl';
|
|
6
|
+
import { MockMediaSourceController, MockPlaybackController, MockQualitySelector, } from '@amazon/vinyl/vinylTestUtil';
|
|
7
|
+
import { data } from '@amazon/vinyl-observable';
|
|
8
|
+
var any = jasmine.any;
|
|
9
|
+
import { createContainer } from '@amazon/vinyl-di';
|
|
10
|
+
describe('createDashContentStreamFactories', () => {
|
|
11
|
+
let deps;
|
|
12
|
+
let mediaSourceController;
|
|
13
|
+
let playbackController;
|
|
14
|
+
let qualitySelector;
|
|
15
|
+
const emptyTimeline = { periods: [], minBufferTime: 0 };
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
mediaSourceController = new MockMediaSourceController();
|
|
18
|
+
playbackController = new MockPlaybackController();
|
|
19
|
+
qualitySelector = new MockQualitySelector();
|
|
20
|
+
deps = {
|
|
21
|
+
mediaSourceController,
|
|
22
|
+
playbackController,
|
|
23
|
+
mediaTimelineTransformed: data(Promise.resolve(emptyTimeline)),
|
|
24
|
+
qualitySelector,
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
it('creates factories function that returns Factories<ContentStreamImplDeps>', () => {
|
|
28
|
+
const createFactories = createDashContentStreamFactories(null)(deps);
|
|
29
|
+
expect(createFactories).toEqual(any(Function));
|
|
30
|
+
const factories = createFactories('audio');
|
|
31
|
+
expect(factories).toBeDefined();
|
|
32
|
+
expect(typeof factories).toBe('object');
|
|
33
|
+
});
|
|
34
|
+
it('creates different factories for different content types', () => {
|
|
35
|
+
const createFactories = createDashContentStreamFactories(null)(deps);
|
|
36
|
+
const audioFactories = createFactories('audio');
|
|
37
|
+
const videoFactories = createFactories('video');
|
|
38
|
+
expect(audioFactories).not.toBe(videoFactories);
|
|
39
|
+
const audioFactories2 = createFactories('audio');
|
|
40
|
+
expect(audioFactories2).toBe(audioFactories);
|
|
41
|
+
});
|
|
42
|
+
it('factories can be used to create a new ContentStreamImpl', () => {
|
|
43
|
+
const createFactories = createDashContentStreamFactories(null)(deps);
|
|
44
|
+
const factories = createFactories('audio');
|
|
45
|
+
// Create ContentStream to trigger factory instantiation
|
|
46
|
+
const contentStream = new ContentStreamImpl(factories, 'audio');
|
|
47
|
+
// Exercise methods to ensure all factories are used
|
|
48
|
+
contentStream.preload({ prefetchPriority: 1, startTime: 0 });
|
|
49
|
+
contentStream.activate({ startTime: 0 });
|
|
50
|
+
expect(contentStream).toBeDefined();
|
|
51
|
+
contentStream.dispose();
|
|
52
|
+
});
|
|
53
|
+
it('provides options to sub-controllers', () => {
|
|
54
|
+
const createFactories = createDashContentStreamFactories({
|
|
55
|
+
buffering: {
|
|
56
|
+
minBuffer: 3.1,
|
|
57
|
+
},
|
|
58
|
+
segmentController: {
|
|
59
|
+
prefetchActive: 5.2,
|
|
60
|
+
},
|
|
61
|
+
})(deps);
|
|
62
|
+
const audioContentStreamDepsContainer = createContainer(createFactories('audio'));
|
|
63
|
+
const audioContentStreamDeps = audioContentStreamDepsContainer.dependencies;
|
|
64
|
+
expect(audioContentStreamDeps.bufferingController.options.minBuffer).toBe(3.1);
|
|
65
|
+
expect(audioContentStreamDeps.segmentController.options.prefetchActive).toBe(5.2);
|
|
66
|
+
audioContentStreamDepsContainer.dispose();
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDashContentTypesValue.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/createDashContentTypesValue.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { createEmptyMediaQualityMetadata, createDashContentTypesValue, } from '@amazon/vinyl';
|
|
6
|
+
import { parseDashManifest, } from '@amazon/vinyl-mpd-parser';
|
|
7
|
+
import { data } from '@amazon/vinyl-observable';
|
|
8
|
+
var createSpy = jasmine.createSpy;
|
|
9
|
+
describe('createDashContentTypesValue', () => {
|
|
10
|
+
let manifestData;
|
|
11
|
+
let dashMediaQualityMetadataResolver;
|
|
12
|
+
let deps;
|
|
13
|
+
beforeEach(() => {
|
|
14
|
+
manifestData = data(Promise.resolve({
|
|
15
|
+
manifest: parseDashManifest(`<?xml version="1.0"?>
|
|
16
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
17
|
+
<Period/>
|
|
18
|
+
</MPD>`),
|
|
19
|
+
baseUrl: 'https://example.com',
|
|
20
|
+
}));
|
|
21
|
+
dashMediaQualityMetadataResolver = createSpy('mediaQualityMetadataResolver').and.callFake((rep) => {
|
|
22
|
+
return {
|
|
23
|
+
...createEmptyMediaQualityMetadata(),
|
|
24
|
+
contentType: rep.parent.contentType,
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
deps = {
|
|
28
|
+
manifestTransformed: manifestData,
|
|
29
|
+
mediaQualityMetadataResolver: dashMediaQualityMetadataResolver,
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
function setManifest(xml) {
|
|
33
|
+
const manifest = parseDashManifest(xml);
|
|
34
|
+
manifestData.value = Promise.resolve({
|
|
35
|
+
manifest,
|
|
36
|
+
baseUrl: 'https://example.com',
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
it('returns audio for audio-only content', async () => {
|
|
40
|
+
setManifest(`<?xml version="1.0"?>
|
|
41
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
42
|
+
<Period>
|
|
43
|
+
<AdaptationSet contentType="audio">
|
|
44
|
+
<Representation id="audio1" bandwidth="1"/>
|
|
45
|
+
</AdaptationSet>
|
|
46
|
+
</Period>
|
|
47
|
+
</MPD>`);
|
|
48
|
+
const result = await createDashContentTypesValue(deps).value;
|
|
49
|
+
expect(result).toEqual(new Set(['audio']));
|
|
50
|
+
});
|
|
51
|
+
it('returns video for video-only content', async () => {
|
|
52
|
+
setManifest(`<?xml version="1.0"?>
|
|
53
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
54
|
+
<Period>
|
|
55
|
+
<AdaptationSet contentType="video">
|
|
56
|
+
<Representation id="video1" bandwidth="1"/>
|
|
57
|
+
</AdaptationSet>
|
|
58
|
+
</Period>
|
|
59
|
+
</MPD>`);
|
|
60
|
+
const result = await createDashContentTypesValue(deps).value;
|
|
61
|
+
expect(result).toEqual(new Set(['video']));
|
|
62
|
+
});
|
|
63
|
+
it('returns audio and video for mixed content', async () => {
|
|
64
|
+
setManifest(`<?xml version="1.0"?>
|
|
65
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
66
|
+
<Period>
|
|
67
|
+
<AdaptationSet contentType="audio">
|
|
68
|
+
<Representation id="audio1" bandwidth="1"/>
|
|
69
|
+
</AdaptationSet>
|
|
70
|
+
<AdaptationSet contentType="video">
|
|
71
|
+
<Representation id="video1" bandwidth="1"/>
|
|
72
|
+
</AdaptationSet>
|
|
73
|
+
</Period>
|
|
74
|
+
</MPD>`);
|
|
75
|
+
const result = await createDashContentTypesValue(deps).value;
|
|
76
|
+
expect(result).toEqual(new Set(['audio', 'video']));
|
|
77
|
+
});
|
|
78
|
+
it('returns empty set for empty periods', async () => {
|
|
79
|
+
setManifest(`<?xml version="1.0"?>
|
|
80
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
81
|
+
<Period/>
|
|
82
|
+
</MPD>`);
|
|
83
|
+
const result = await createDashContentTypesValue(deps).value;
|
|
84
|
+
expect(result).toEqual(new Set());
|
|
85
|
+
});
|
|
86
|
+
it('counts unique content types across periods', async () => {
|
|
87
|
+
setManifest(`<?xml version="1.0"?>
|
|
88
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
89
|
+
<Period>
|
|
90
|
+
<AdaptationSet contentType="audio">
|
|
91
|
+
<Representation id="audio1" bandwidth="1"/>
|
|
92
|
+
</AdaptationSet>
|
|
93
|
+
</Period>
|
|
94
|
+
<Period>
|
|
95
|
+
<AdaptationSet contentType="video">
|
|
96
|
+
<Representation id="video1" bandwidth="1"/>
|
|
97
|
+
</AdaptationSet>
|
|
98
|
+
</Period>
|
|
99
|
+
</MPD>`);
|
|
100
|
+
const result = await createDashContentTypesValue(deps).value;
|
|
101
|
+
expect(result).toEqual(new Set(['audio', 'video']));
|
|
102
|
+
});
|
|
103
|
+
it('deduplicates content types', async () => {
|
|
104
|
+
setManifest(`<?xml version="1.0"?>
|
|
105
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
106
|
+
<Period>
|
|
107
|
+
<AdaptationSet contentType="audio">
|
|
108
|
+
<Representation id="audio1" bandwidth="1"/>
|
|
109
|
+
<Representation id="audio2" bandwidth="1"/>
|
|
110
|
+
</AdaptationSet>
|
|
111
|
+
<AdaptationSet contentType="audio">
|
|
112
|
+
<Representation id="audio3" bandwidth="1"/>
|
|
113
|
+
</AdaptationSet>
|
|
114
|
+
</Period>
|
|
115
|
+
</MPD>`);
|
|
116
|
+
const result = await createDashContentTypesValue(deps).value;
|
|
117
|
+
expect(result).toEqual(new Set(['audio']));
|
|
118
|
+
});
|
|
119
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDashFactories.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/createDashFactories.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { createDashFactories, DashManifestControllerImpl, MediaSourceControllerImpl, pickFirstBaseUrlSelector, QualitySelectorImpl, } from '@amazon/vinyl';
|
|
6
|
+
import { createMockVinylDependencies, mockDashManifest, } from '@amazon/vinyl/vinylTestUtil';
|
|
7
|
+
import { createContainer } from '@amazon/vinyl-di';
|
|
8
|
+
import { MockMediaSource, MockMediaSourceGlobal, } from '@amazon/vinyl-util/browserTestUtil';
|
|
9
|
+
import { clone } from '@amazon/vinyl-util';
|
|
10
|
+
var objectContaining = jasmine.objectContaining;
|
|
11
|
+
var any = jasmine.any;
|
|
12
|
+
var createSpy = jasmine.createSpy;
|
|
13
|
+
describe('createDashFactories', () => {
|
|
14
|
+
const originalMediaSource = global.MediaSource;
|
|
15
|
+
const originalManagedMediaSource = global.ManagedMediaSource;
|
|
16
|
+
let dashFactoryDeps;
|
|
17
|
+
let manifestProvider;
|
|
18
|
+
beforeEach(() => {
|
|
19
|
+
// createMediaSource produces a new MediaSource, set mock constructor:
|
|
20
|
+
global.ManagedMediaSource = undefined;
|
|
21
|
+
global.MediaSource = MockMediaSource;
|
|
22
|
+
// Set up dependencies that can be used when creating DashTrackDeps from
|
|
23
|
+
// the factories
|
|
24
|
+
const deps = createMockVinylDependencies();
|
|
25
|
+
deps.capabilities.canPlayTypeMse.and.returnValue(true);
|
|
26
|
+
const manifest = clone(mockDashManifest);
|
|
27
|
+
const adaptationSet = manifest.MPD.Period[0].AdaptationSet[0];
|
|
28
|
+
adaptationSet.mimeType = 'audio/mp4';
|
|
29
|
+
adaptationSet.codecs = 'flac';
|
|
30
|
+
dashFactoryDeps = deps;
|
|
31
|
+
manifestProvider = createSpy('manifestProvider').and.resolveTo({
|
|
32
|
+
manifest,
|
|
33
|
+
baseUrl: 'https://example.com',
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
afterEach(() => {
|
|
37
|
+
global.MediaSource = originalMediaSource;
|
|
38
|
+
global.ManagedMediaSource = originalManagedMediaSource;
|
|
39
|
+
MockMediaSourceGlobal.isTypeSupported.calls.reset();
|
|
40
|
+
});
|
|
41
|
+
it('creates factories with external dependencies', () => {
|
|
42
|
+
const factoryCreator = createDashFactories(null);
|
|
43
|
+
const factories = factoryCreator(dashFactoryDeps)({
|
|
44
|
+
uri: 'test://manifest.mpd',
|
|
45
|
+
type: 'dash',
|
|
46
|
+
manifestProvider,
|
|
47
|
+
});
|
|
48
|
+
const deps = createContainer(factories).dependencies;
|
|
49
|
+
expect(deps).toEqual(objectContaining({
|
|
50
|
+
baseUrlSelector: pickFirstBaseUrlSelector,
|
|
51
|
+
segmentRequestInit: undefined,
|
|
52
|
+
manifestProvider: any(Function),
|
|
53
|
+
manifestController: any(DashManifestControllerImpl),
|
|
54
|
+
mediaSourceFactory: any(Function),
|
|
55
|
+
mediaQualityMetadataResolver: any(Function),
|
|
56
|
+
mediaSourceController: any(MediaSourceControllerImpl),
|
|
57
|
+
createContentStreamFactories: any(Function),
|
|
58
|
+
contentStreamFactory: any(Function),
|
|
59
|
+
qualitySelector: any(QualitySelectorImpl),
|
|
60
|
+
}));
|
|
61
|
+
});
|
|
62
|
+
it('provides streaming options to createContentStreamFactories', () => {
|
|
63
|
+
const factoryCreator = createDashFactories({
|
|
64
|
+
streaming: {
|
|
65
|
+
buffering: {
|
|
66
|
+
minBuffer: 3.1,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
const factories = factoryCreator(dashFactoryDeps)({
|
|
71
|
+
uri: 'test://manifest.mpd',
|
|
72
|
+
type: 'dash',
|
|
73
|
+
manifestProvider,
|
|
74
|
+
});
|
|
75
|
+
const deps = createContainer(factories).dependencies;
|
|
76
|
+
expect(deps.contentStreamFactory('audio')).toEqual(any(Object));
|
|
77
|
+
});
|
|
78
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDashManifestProvider.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/createDashManifestProvider.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { createDashManifestProvider } from '@amazon/vinyl';
|
|
6
|
+
var createSpy = jasmine.createSpy;
|
|
7
|
+
describe('createDashManifestProvider', () => {
|
|
8
|
+
it('returns provided manifestProvider when available', () => {
|
|
9
|
+
const mockManifestProvider = createSpy('manifestProvider');
|
|
10
|
+
const loadOptions = {
|
|
11
|
+
uri: 'test://manifest.mpd',
|
|
12
|
+
type: 'dash',
|
|
13
|
+
manifestProvider: mockManifestProvider,
|
|
14
|
+
};
|
|
15
|
+
const provider = createDashManifestProvider(loadOptions)({
|
|
16
|
+
requestInterceptor: {},
|
|
17
|
+
});
|
|
18
|
+
expect(provider).toBe(mockManifestProvider);
|
|
19
|
+
});
|
|
20
|
+
it('creates urlDashManifestProvider when manifestProvider not provided', () => {
|
|
21
|
+
const loadOptions = {
|
|
22
|
+
uri: 'test://manifest.mpd',
|
|
23
|
+
type: 'dash',
|
|
24
|
+
requestInit: { headers: { test: 'header' } },
|
|
25
|
+
};
|
|
26
|
+
const provider = createDashManifestProvider(loadOptions)({
|
|
27
|
+
requestInterceptor: {},
|
|
28
|
+
});
|
|
29
|
+
expect(provider).toEqual(jasmine.any(Function));
|
|
30
|
+
});
|
|
31
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDefaultDashManifestTransformer.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/createDefaultDashManifestTransformer.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { createDefaultDashManifestTransformer, } from '@amazon/vinyl';
|
|
6
|
+
import { parseDashManifest } from '@amazon/vinyl-mpd-parser';
|
|
7
|
+
import { clone } from '@amazon/vinyl-util';
|
|
8
|
+
import { data } from '@amazon/vinyl-observable';
|
|
9
|
+
const mockManifest = parseDashManifest(
|
|
10
|
+
// language=XML
|
|
11
|
+
`<?xml version="1.0"?>
|
|
12
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
13
|
+
<Period>
|
|
14
|
+
<AdaptationSet contentType="audio" id="1" segmentAlignment="true" selectionPriority="1">
|
|
15
|
+
<Representation codecs="mp4a.40.2" bandwidth="48120" qualityRanking="1" id="p1a1r1"/>
|
|
16
|
+
<Representation codecs="mp4a.40.2" bandwidth="256000" qualityRanking="2" id="p1a1r2"/>
|
|
17
|
+
<Representation codecs="mp4a.40.2" bandwidth="320597" qualityRanking="3" id="p1a1r3"/>
|
|
18
|
+
</AdaptationSet>
|
|
19
|
+
<AdaptationSet contentType="audio" id="2" segmentAlignment="true" selectionPriority="3">
|
|
20
|
+
<Representation codecs="flac" bandwidth="48120" qualityRanking="1" id="p1a2r1"/>
|
|
21
|
+
<Representation codecs="flac" bandwidth="256000" qualityRanking="2" id="p1a2r2"/>
|
|
22
|
+
<Representation codecs="flac" bandwidth="320597" qualityRanking="3" id="p1a2r3"/>
|
|
23
|
+
</AdaptationSet>
|
|
24
|
+
<AdaptationSet contentType="audio" id="3" segmentAlignment="true" selectionPriority="2">
|
|
25
|
+
<Representation codecs="opus" bandwidth="48120" qualityRanking="1" id="p1a3r1"/>
|
|
26
|
+
<Representation codecs="opus" bandwidth="256000" qualityRanking="2" id="p1a3r2"/>
|
|
27
|
+
<Representation codecs="opus" bandwidth="320597" qualityRanking="3" id="p1a3r3"/>
|
|
28
|
+
</AdaptationSet>
|
|
29
|
+
</Period>
|
|
30
|
+
</MPD>`);
|
|
31
|
+
describe('createDefaultDashManifestTransformer', () => {
|
|
32
|
+
async function transform(manifest) {
|
|
33
|
+
const manifestAndPath = {
|
|
34
|
+
manifest,
|
|
35
|
+
baseUrl: 'https://example.com',
|
|
36
|
+
};
|
|
37
|
+
const manifestController = data(Promise.resolve(manifestAndPath));
|
|
38
|
+
const transformed = createDefaultDashManifestTransformer({
|
|
39
|
+
manifestController,
|
|
40
|
+
});
|
|
41
|
+
return transformed.value;
|
|
42
|
+
}
|
|
43
|
+
it('sorts adaptation sets by descending selectionPriority', async () => {
|
|
44
|
+
const result = await transform(clone(mockManifest));
|
|
45
|
+
const selectionPriorities = result.manifest.MPD.Period.map((period) => (period.AdaptationSet ?? []).map((as) => as.selectionPriority));
|
|
46
|
+
expect(selectionPriorities).toEqual([[3, 2, 1]]);
|
|
47
|
+
});
|
|
48
|
+
it('sorts representations by ascending qualityRanking', async () => {
|
|
49
|
+
const result = await transform(clone(mockManifest));
|
|
50
|
+
const qualityRanks = result.manifest.MPD.Period.map((period) => (period.AdaptationSet ?? []).map((as) => (as.Representation ?? []).map((r) => r.qualityRanking)));
|
|
51
|
+
expect(qualityRanks).toEqual([
|
|
52
|
+
[
|
|
53
|
+
[1, 2, 3],
|
|
54
|
+
[1, 2, 3],
|
|
55
|
+
[1, 2, 3],
|
|
56
|
+
],
|
|
57
|
+
]);
|
|
58
|
+
});
|
|
59
|
+
it('orders by bandwidth descendingly when qualityRanking is not set', async () => {
|
|
60
|
+
const manifest = clone(parseDashManifest(
|
|
61
|
+
// language=XML
|
|
62
|
+
`<?xml version="1.0"?>
|
|
63
|
+
<MPD xmlns="urn:mpeg:dash:schema:mpd:2011" minBufferTime="PT10S" profiles="">
|
|
64
|
+
<Period>
|
|
65
|
+
<AdaptationSet contentType="audio" id="1" segmentAlignment="true">
|
|
66
|
+
<Representation codecs="mp4a.40.2" bandwidth="48120" id="p1a1r1"/>
|
|
67
|
+
<Representation codecs="mp4a.40.2" bandwidth="256000" id="p1a1r2"/>
|
|
68
|
+
<Representation codecs="mp4a.40.2" bandwidth="320597" id="p1a1r3"/>
|
|
69
|
+
</AdaptationSet>
|
|
70
|
+
</Period>
|
|
71
|
+
</MPD>`));
|
|
72
|
+
const result = await transform(manifest);
|
|
73
|
+
const bandwidths = result.manifest.MPD.Period[0].AdaptationSet[0].Representation.map((rep) => rep.bandwidth);
|
|
74
|
+
expect(bandwidths).toEqual([320597, 256000, 48120]);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSegmentControllerFactory.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/createSegmentControllerFactory.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { createSegmentControllerFactory, } from '@amazon/vinyl';
|
|
6
|
+
import { MockPlaybackController } from '@amazon/vinyl/vinylTestUtil';
|
|
7
|
+
import { data } from '@amazon/vinyl-observable';
|
|
8
|
+
var objectContaining = jasmine.objectContaining;
|
|
9
|
+
describe('createSegmentControllerFactory', () => {
|
|
10
|
+
it('creates SegmentControllerImpl with merged dependencies', () => {
|
|
11
|
+
const playbackController = new MockPlaybackController();
|
|
12
|
+
const emptyTimeline = { periods: [], minBufferTime: 0 };
|
|
13
|
+
const factory = createSegmentControllerFactory({ playbackController }, 'audio', { prefetchActive: 100 });
|
|
14
|
+
const controller = factory({
|
|
15
|
+
mediaTimelineTransformed: data(Promise.resolve(emptyTimeline)),
|
|
16
|
+
qualitySelector: { selectQuality: () => 0 },
|
|
17
|
+
});
|
|
18
|
+
expect(controller).toEqual(jasmine.any(Object));
|
|
19
|
+
expect(controller.options).toEqual(objectContaining({ prefetchActive: 100 }));
|
|
20
|
+
});
|
|
21
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifestTransformUtils.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/manifestTransformUtils.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { filterDashAdaptationSets, filterDashRepresentations, manifestIsPlayable, mapManifestTransform, sortDashAdaptationSets, sortDashRepresentations, } from '@amazon/vinyl';
|
|
6
|
+
import { parseDashManifest } from '@amazon/vinyl-mpd-parser';
|
|
7
|
+
import { MediaUnsupportedError } from '@amazon/vinyl-util';
|
|
8
|
+
import { data } from '@amazon/vinyl-observable';
|
|
9
|
+
const manifest = parseDashManifest(
|
|
10
|
+
// language=XML
|
|
11
|
+
`<?xml version="1.0" ?>
|
|
12
|
+
<MPD minBufferTime="PT0.0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
13
|
+
<Period>
|
|
14
|
+
<AdaptationSet id="1" contentType="audio">
|
|
15
|
+
<Representation id="10" bandwidth="100"/>
|
|
16
|
+
<Representation id="20" bandwidth="200"/>
|
|
17
|
+
</AdaptationSet>
|
|
18
|
+
<AdaptationSet id="2" contentType="video">
|
|
19
|
+
<Representation id="30" bandwidth="300"/>
|
|
20
|
+
</AdaptationSet>
|
|
21
|
+
</Period>
|
|
22
|
+
</MPD>`);
|
|
23
|
+
describe('manifestTransformUtils', () => {
|
|
24
|
+
describe('manifestIsPlayable', () => {
|
|
25
|
+
it('returns true when representations exist', () => {
|
|
26
|
+
expect(manifestIsPlayable(manifest)).toBe(true);
|
|
27
|
+
});
|
|
28
|
+
it('returns false when no representations exist', () => {
|
|
29
|
+
const empty = parseDashManifest(`<?xml version="1.0" ?>
|
|
30
|
+
<MPD minBufferTime="PT0.0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
31
|
+
<Period><AdaptationSet/></Period>
|
|
32
|
+
</MPD>`);
|
|
33
|
+
expect(manifestIsPlayable(empty)).toBe(false);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
describe('filterDashRepresentations', () => {
|
|
37
|
+
it('filters representations by predicate', () => {
|
|
38
|
+
const result = filterDashRepresentations((rep) => rep.bandwidth > 100, () => {
|
|
39
|
+
throw new MediaUnsupportedError('', '');
|
|
40
|
+
}, manifest);
|
|
41
|
+
const ids = result.MPD.Period[0].AdaptationSet[0].Representation.map((r) => r.id);
|
|
42
|
+
expect(ids).toEqual(['20']);
|
|
43
|
+
});
|
|
44
|
+
it('throws when result is not playable', () => {
|
|
45
|
+
expect(() => filterDashRepresentations(() => false, () => {
|
|
46
|
+
throw new MediaUnsupportedError('none', 'none');
|
|
47
|
+
}, manifest)).toThrowMatching((e) => e instanceof MediaUnsupportedError);
|
|
48
|
+
});
|
|
49
|
+
it('does not mutate the original manifest', () => {
|
|
50
|
+
const originalCount = manifest.MPD.Period[0].AdaptationSet[0].Representation.length;
|
|
51
|
+
filterDashRepresentations((rep) => rep.bandwidth > 100, () => {
|
|
52
|
+
throw new MediaUnsupportedError('', '');
|
|
53
|
+
}, manifest);
|
|
54
|
+
expect(manifest.MPD.Period[0].AdaptationSet[0].Representation.length).toBe(originalCount);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
describe('filterDashAdaptationSets', () => {
|
|
58
|
+
it('filters adaptation sets by predicate', () => {
|
|
59
|
+
const result = filterDashAdaptationSets((as) => as.id === 1, () => {
|
|
60
|
+
throw new MediaUnsupportedError('', '');
|
|
61
|
+
}, manifest);
|
|
62
|
+
expect(result.MPD.Period[0].AdaptationSet.length).toBe(1);
|
|
63
|
+
expect(result.MPD.Period[0].AdaptationSet[0].id).toBe(1);
|
|
64
|
+
});
|
|
65
|
+
it('throws when result is not playable', () => {
|
|
66
|
+
expect(() => filterDashAdaptationSets(() => false, () => {
|
|
67
|
+
throw new MediaUnsupportedError('none', 'none');
|
|
68
|
+
}, manifest)).toThrowMatching((e) => e instanceof MediaUnsupportedError);
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
describe('sortDashAdaptationSets', () => {
|
|
72
|
+
it('sorts adaptation sets without mutating original', () => {
|
|
73
|
+
const result = sortDashAdaptationSets((a, b) => (b.id ?? 0) - (a.id ?? 0), manifest);
|
|
74
|
+
expect(result.MPD.Period[0].AdaptationSet[0].id).toBe(2);
|
|
75
|
+
expect(result.MPD.Period[0].AdaptationSet[1].id).toBe(1);
|
|
76
|
+
expect(manifest.MPD.Period[0].AdaptationSet[0].id).toBe(1);
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
describe('sortDashRepresentations', () => {
|
|
80
|
+
it('sorts representations without mutating original', () => {
|
|
81
|
+
const result = sortDashRepresentations((a, b) => b.bandwidth - a.bandwidth, manifest);
|
|
82
|
+
const ids = result.MPD.Period[0].AdaptationSet[0].Representation.map((r) => r.id);
|
|
83
|
+
expect(ids).toEqual(['20', '10']);
|
|
84
|
+
expect(manifest.MPD.Period[0].AdaptationSet[0].Representation[0].id).toBe('10');
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
describe('mapManifestTransform', () => {
|
|
88
|
+
const baseUrl = 'https://example.com/manifest.mpd';
|
|
89
|
+
it('transforms manifest while preserving baseUrl', async () => {
|
|
90
|
+
const manifestController = data(Promise.resolve({ manifest, baseUrl }));
|
|
91
|
+
const result = mapManifestTransform(manifestController, (m) => filterDashRepresentations((rep) => rep.bandwidth > 100, () => {
|
|
92
|
+
throw new MediaUnsupportedError('', '');
|
|
93
|
+
}, m));
|
|
94
|
+
const { manifest: transformed, baseUrl: resultUrl } = await result.value;
|
|
95
|
+
expect(resultUrl).toBe(baseUrl);
|
|
96
|
+
expect(transformed.MPD.Period[0].AdaptationSet[0].Representation.map((r) => r.id)).toEqual(['20']);
|
|
97
|
+
});
|
|
98
|
+
it('propagates transformation errors', async () => {
|
|
99
|
+
const manifestController = data(Promise.resolve({ manifest, baseUrl }));
|
|
100
|
+
const result = mapManifestTransform(manifestController, () => {
|
|
101
|
+
throw new MediaUnsupportedError('none', 'none');
|
|
102
|
+
});
|
|
103
|
+
await expectAsync(result.value).toBeRejectedWithError();
|
|
104
|
+
});
|
|
105
|
+
it('propagates manifest controller errors', async () => {
|
|
106
|
+
const manifestController = data(Promise.reject(new Error('load failed')));
|
|
107
|
+
const result = mapManifestTransform(manifestController, (m) => m);
|
|
108
|
+
await expectAsync(result.value).toBeRejectedWithError('load failed');
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
});
|