@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,596 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { ContentProtectionScheme, parseDashManifest, } from '@amazon/vinyl-mpd-parser';
|
|
6
|
+
import { contentProtectionToMetadata, createDefaultDashMediaQualityMetadataResolver, createMediaQualityMetadataFromDashRepresentation, defaultDrmKeySystemResolver, DrmKeySystem, estimatePeakBandwidth, flattenRepresentations, getPeriodSortedBandwidths, } from '@amazon/vinyl';
|
|
7
|
+
import { ValidationError } from '@amazon/vinyl-util';
|
|
8
|
+
var objectContaining = jasmine.objectContaining;
|
|
9
|
+
var any = jasmine.any;
|
|
10
|
+
var createSpy = jasmine.createSpy;
|
|
11
|
+
// language=XML
|
|
12
|
+
const manifest = parseDashManifest(`<?xml version="1.0" ?>
|
|
13
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
14
|
+
<Period>
|
|
15
|
+
<AdaptationSet id="1" contentType="audio" codecs="flac">
|
|
16
|
+
<SupplementalProperty schemeIdUri="a" value="value1"/>
|
|
17
|
+
<ContentProtection schemeIdUri="urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2"/>
|
|
18
|
+
<ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"/>
|
|
19
|
+
<ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"/>
|
|
20
|
+
<Representation bandwidth="1" id="a">
|
|
21
|
+
<SupplementalProperty schemeIdUri="a" value="value2"/>
|
|
22
|
+
<SupplementalProperty schemeIdUri="b" value="value3" id="idB"/>
|
|
23
|
+
</Representation>
|
|
24
|
+
<Representation bandwidth="2" id="b">
|
|
25
|
+
<SupplementalProperty schemeIdUri="c"/>
|
|
26
|
+
</Representation>
|
|
27
|
+
<Representation bandwidth="3" id="c"/>
|
|
28
|
+
</AdaptationSet>
|
|
29
|
+
<AdaptationSet id="2" bitstreamSwitching="true" mimeType="audio/mpeg" codecs="opus">
|
|
30
|
+
<Representation bandwidth="3" id="a"/>
|
|
31
|
+
<Representation bandwidth="4" id="b"/>
|
|
32
|
+
<Representation bandwidth="5" id="c"/>
|
|
33
|
+
</AdaptationSet>
|
|
34
|
+
<AdaptationSet id="3" bitstreamSwitching="true" mimeType="audio/mpeg" codecs="mp4a.40.5">
|
|
35
|
+
<Representation bandwidth="3" id="a"/>
|
|
36
|
+
<Representation bandwidth="4" id="b"/>
|
|
37
|
+
<Representation bandwidth="5" id="c"/>
|
|
38
|
+
</AdaptationSet>
|
|
39
|
+
</Period>
|
|
40
|
+
<Period>
|
|
41
|
+
<AdaptationSet id="1" contentType="audio" codecs="flac">
|
|
42
|
+
<Representation bandwidth="1" id="a"/>
|
|
43
|
+
<Representation bandwidth="2" id="b"/>
|
|
44
|
+
<Representation bandwidth="3" id="c"/>
|
|
45
|
+
</AdaptationSet>
|
|
46
|
+
<AdaptationSet id="2" bitstreamSwitching="true" mimeType="audio/mpeg" codecs="opus">
|
|
47
|
+
<Representation bandwidth="3" id="a"/>
|
|
48
|
+
<Representation bandwidth="4" id="b"/>
|
|
49
|
+
<Representation bandwidth="5" id="c"/>
|
|
50
|
+
</AdaptationSet>
|
|
51
|
+
<AdaptationSet id="3" bitstreamSwitching="true" mimeType="audio/mpeg" codecs="mp4a.40.5">
|
|
52
|
+
<Representation bandwidth="3" id="a"/>
|
|
53
|
+
<Representation bandwidth="4" id="b"/>
|
|
54
|
+
<Representation bandwidth="5" id="c"/>
|
|
55
|
+
</AdaptationSet>
|
|
56
|
+
</Period>
|
|
57
|
+
</MPD>`);
|
|
58
|
+
describe('createDefaultDashMediaQualityMetadataResolver', () => {
|
|
59
|
+
let drmKeySystemResolver;
|
|
60
|
+
let resolver;
|
|
61
|
+
beforeEach(() => {
|
|
62
|
+
drmKeySystemResolver = createSpy('drmKeySystemResolver').and.callFake(defaultDrmKeySystemResolver);
|
|
63
|
+
resolver = createDefaultDashMediaQualityMetadataResolver({
|
|
64
|
+
drmKeySystemResolver,
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
it('memoizes results by representation reference', () => {
|
|
68
|
+
const p0_a0_r0 = resolver(manifest.MPD.Period[0].AdaptationSet[0].Representation[0]);
|
|
69
|
+
const p0_a0_r1 = resolver(manifest.MPD.Period[0].AdaptationSet[0].Representation[1]);
|
|
70
|
+
expect(resolver(manifest.MPD.Period[0].AdaptationSet[0].Representation[0])).toBe(p0_a0_r0);
|
|
71
|
+
expect(resolver(manifest.MPD.Period[0].AdaptationSet[0].Representation[1])).toBe(p0_a0_r1);
|
|
72
|
+
expect(p0_a0_r0).not.toEqual(p0_a0_r1);
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
describe('createMediaQualityMetadataFromDashRepresentation', () => {
|
|
76
|
+
let drmKeySystemResolver;
|
|
77
|
+
let repToMetadata;
|
|
78
|
+
beforeEach(() => {
|
|
79
|
+
drmKeySystemResolver = createSpy('drmKeySystemResolver').and.callFake(defaultDrmKeySystemResolver);
|
|
80
|
+
repToMetadata = (rep) => createMediaQualityMetadataFromDashRepresentation(rep, {
|
|
81
|
+
drmKeySystemResolver,
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
it('provides MediaEncodingMetadata attributes for the given representation', () => {
|
|
85
|
+
drmKeySystemResolver.and.returnValues([DrmKeySystem.FAIR_PLAY], [DrmKeySystem.WIDEVINE], [DrmKeySystem.PLAY_READY]);
|
|
86
|
+
const p0_a0_r0 = repToMetadata(manifest.MPD.Period[0].AdaptationSet[0].Representation[0]);
|
|
87
|
+
expect(p0_a0_r0).toEqual(objectContaining({
|
|
88
|
+
qualityId: any(String),
|
|
89
|
+
decoderId: any(String),
|
|
90
|
+
contentType: 'audio',
|
|
91
|
+
mimeType: 'audio/mp4; codecs="flac"',
|
|
92
|
+
bandwidth: 1,
|
|
93
|
+
supplementalProperties: {
|
|
94
|
+
a: [
|
|
95
|
+
{ id: null, value: 'value1' },
|
|
96
|
+
{ id: null, value: 'value2' },
|
|
97
|
+
],
|
|
98
|
+
b: [{ id: 'idB', value: 'value3' }],
|
|
99
|
+
},
|
|
100
|
+
contentProtections: [
|
|
101
|
+
{
|
|
102
|
+
keySystem: DrmKeySystem.FAIR_PLAY,
|
|
103
|
+
pssh: null,
|
|
104
|
+
pro: null,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
keySystem: DrmKeySystem.WIDEVINE,
|
|
108
|
+
pssh: null,
|
|
109
|
+
pro: null,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
keySystem: DrmKeySystem.PLAY_READY,
|
|
113
|
+
pssh: null,
|
|
114
|
+
pro: null,
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
}));
|
|
118
|
+
drmKeySystemResolver.and.returnValue([]);
|
|
119
|
+
const p0_a0_r1 = repToMetadata(manifest.MPD.Period[0].AdaptationSet[0].Representation[1]);
|
|
120
|
+
expect(p0_a0_r1).toEqual(objectContaining({
|
|
121
|
+
qualityId: any(String),
|
|
122
|
+
decoderId: any(String),
|
|
123
|
+
contentType: 'audio',
|
|
124
|
+
mimeType: 'audio/mp4; codecs="flac"',
|
|
125
|
+
bandwidth: 2,
|
|
126
|
+
contentProtections: [],
|
|
127
|
+
supplementalProperties: {
|
|
128
|
+
a: [{ id: null, value: 'value1' }],
|
|
129
|
+
c: [{ id: null, value: null }],
|
|
130
|
+
},
|
|
131
|
+
}));
|
|
132
|
+
const p0_a1_r0 = repToMetadata(manifest.MPD.Period[0].AdaptationSet[1].Representation[0]);
|
|
133
|
+
expect(p0_a1_r0).toEqual(objectContaining({
|
|
134
|
+
contentProtections: [],
|
|
135
|
+
}));
|
|
136
|
+
});
|
|
137
|
+
it('provides quality ids unique to the manifest', () => {
|
|
138
|
+
const allRepresentations = [
|
|
139
|
+
...flattenRepresentations(manifest.MPD.Period[0]),
|
|
140
|
+
...flattenRepresentations(manifest.MPD.Period[1]),
|
|
141
|
+
];
|
|
142
|
+
const set = new Set();
|
|
143
|
+
for (const representation of allRepresentations) {
|
|
144
|
+
const qualityId = repToMetadata(representation).qualityId;
|
|
145
|
+
expect(set.has(qualityId))
|
|
146
|
+
.withContext(`duplicate qualityId: ${qualityId}`)
|
|
147
|
+
.toBeFalse();
|
|
148
|
+
set.add(qualityId);
|
|
149
|
+
}
|
|
150
|
+
expect(set.size).toEqual(18);
|
|
151
|
+
});
|
|
152
|
+
describe(`when the representation's adaptation set bitstreamSwitching is not true`, () => {
|
|
153
|
+
it('does not share decoder ids', () => {
|
|
154
|
+
const adaptationSet0 = manifest.MPD.Period[0].AdaptationSet[0];
|
|
155
|
+
expect(adaptationSet0.bitstreamSwitching).toBeUndefined();
|
|
156
|
+
const encodingMetadata = adaptationSet0.Representation.map(repToMetadata);
|
|
157
|
+
expect(encodingMetadata[0].decoderId).not.toEqual(encodingMetadata[1].decoderId);
|
|
158
|
+
expect(encodingMetadata[1].decoderId).not.toEqual(encodingMetadata[2].decoderId);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
describe(`when the representation's adaptation set bitstreamSwitching is true`, () => {
|
|
162
|
+
it('shares decoder ids', () => {
|
|
163
|
+
const adaptationSet0 = manifest.MPD.Period[0].AdaptationSet[1];
|
|
164
|
+
expect(adaptationSet0.bitstreamSwitching).toBeTrue();
|
|
165
|
+
const encodingMetadata = adaptationSet0.Representation.map(repToMetadata);
|
|
166
|
+
expect(encodingMetadata[0].decoderId).toEqual(encodingMetadata[1].decoderId);
|
|
167
|
+
expect(encodingMetadata[1].decoderId).toEqual(encodingMetadata[2].decoderId);
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
describe('adaptation set switching', () => {
|
|
171
|
+
it('returns own groupId in switchingGroupIds when no switching property', () => {
|
|
172
|
+
const rep = manifest.MPD.Period[0].AdaptationSet[0].Representation[0];
|
|
173
|
+
const meta = repToMetadata(rep);
|
|
174
|
+
expect(meta.switchingGroupIds).toEqual([meta.groupId]);
|
|
175
|
+
});
|
|
176
|
+
it('resolves switchingGroupIds from switching property', () => {
|
|
177
|
+
// language=XML
|
|
178
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
179
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
180
|
+
<Period>
|
|
181
|
+
<AdaptationSet id="0" mimeType="audio/mp4" codecs="flac">
|
|
182
|
+
<SupplementalProperty schemeIdUri="urn:mpeg:dash:adaptation-set-switching:2016" value="1"/>
|
|
183
|
+
<Representation bandwidth="1" id="a"/>
|
|
184
|
+
</AdaptationSet>
|
|
185
|
+
<AdaptationSet id="1" mimeType="audio/mp4" codecs="opus">
|
|
186
|
+
<SupplementalProperty schemeIdUri="urn:mpeg:dash:adaptation-set-switching:2016" value="0"/>
|
|
187
|
+
<Representation bandwidth="2" id="b"/>
|
|
188
|
+
</AdaptationSet>
|
|
189
|
+
</Period>
|
|
190
|
+
</MPD>`);
|
|
191
|
+
const r0 = repToMetadata(m.MPD.Period[0].AdaptationSet[0].Representation[0]);
|
|
192
|
+
const r1 = repToMetadata(m.MPD.Period[0].AdaptationSet[1].Representation[0]);
|
|
193
|
+
expect(r0.switchingGroupIds).toContain(r0.groupId);
|
|
194
|
+
expect(r0.switchingGroupIds).toContain(r1.groupId);
|
|
195
|
+
expect(r1.switchingGroupIds).toContain(r0.groupId);
|
|
196
|
+
expect(r1.switchingGroupIds).toContain(r1.groupId);
|
|
197
|
+
});
|
|
198
|
+
it('returns only self groupId when switching property value is empty', () => {
|
|
199
|
+
// language=XML
|
|
200
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
201
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
202
|
+
<Period>
|
|
203
|
+
<AdaptationSet id="0" mimeType="audio/mp4" codecs="flac">
|
|
204
|
+
<SupplementalProperty schemeIdUri="urn:mpeg:dash:adaptation-set-switching:2016" value=""/>
|
|
205
|
+
<Representation bandwidth="1" id="a"/>
|
|
206
|
+
</AdaptationSet>
|
|
207
|
+
</Period>
|
|
208
|
+
</MPD>`);
|
|
209
|
+
const r = repToMetadata(m.MPD.Period[0].AdaptationSet[0].Representation[0]);
|
|
210
|
+
expect(r.switchingGroupIds).toEqual([r.groupId]);
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
describe('when ContentProtection is set with cenc scheme id', () => {
|
|
214
|
+
describe('and value is not set', () => {
|
|
215
|
+
it('sets encryptionScheme to null', () => {
|
|
216
|
+
// language=XML
|
|
217
|
+
const manifest = parseDashManifest(`<?xml version="1.0" ?>
|
|
218
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
219
|
+
<Period>
|
|
220
|
+
<AdaptationSet id="1" contentType="audio" codecs="flac">
|
|
221
|
+
<Representation bandwidth="1" id="a">
|
|
222
|
+
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011"/>
|
|
223
|
+
</Representation>
|
|
224
|
+
</AdaptationSet>
|
|
225
|
+
</Period>
|
|
226
|
+
</MPD>`);
|
|
227
|
+
expect(repToMetadata(manifest.MPD.Period[0].AdaptationSet[0]
|
|
228
|
+
.Representation[0]).encryptionScheme).toBeNull();
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
describe('and value is a valid mp4 protection scheme', () => {
|
|
232
|
+
it('sets encryptionScheme to the protection scheme', () => {
|
|
233
|
+
// language=XML
|
|
234
|
+
const manifest = parseDashManifest(`<?xml version="1.0" ?>
|
|
235
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
236
|
+
<Period>
|
|
237
|
+
<AdaptationSet id="1" contentType="audio" codecs="flac">
|
|
238
|
+
<Representation bandwidth="1" id="a">
|
|
239
|
+
<ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc:3"/>
|
|
240
|
+
</Representation>
|
|
241
|
+
</AdaptationSet>
|
|
242
|
+
</Period>
|
|
243
|
+
</MPD>`);
|
|
244
|
+
expect(repToMetadata(manifest.MPD.Period[0].AdaptationSet[0]
|
|
245
|
+
.Representation[0]).encryptionScheme).toBe('cenc');
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
it('throws when mimeType cannot be inferred', () => {
|
|
250
|
+
// language=XML
|
|
251
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
252
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
253
|
+
<Period>
|
|
254
|
+
<AdaptationSet id="1">
|
|
255
|
+
<Representation bandwidth="1" id="a"/>
|
|
256
|
+
</AdaptationSet>
|
|
257
|
+
</Period>
|
|
258
|
+
</MPD>`);
|
|
259
|
+
expect(() => repToMetadata(m.MPD.Period[0].AdaptationSet[0].Representation[0])).toThrowMatching((e) => e instanceof ValidationError &&
|
|
260
|
+
e.message === 'mimeType cannot be inferred');
|
|
261
|
+
});
|
|
262
|
+
describe('lang property', () => {
|
|
263
|
+
it('sets lang from adaptationSet.lang when present', () => {
|
|
264
|
+
// language=XML
|
|
265
|
+
const manifestWithLang = parseDashManifest(`<?xml version="1.0" ?>
|
|
266
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
267
|
+
<Period>
|
|
268
|
+
<AdaptationSet id="1" contentType="audio" lang="en-US">
|
|
269
|
+
<Representation bandwidth="1" id="a"/>
|
|
270
|
+
</AdaptationSet>
|
|
271
|
+
</Period>
|
|
272
|
+
</MPD>`);
|
|
273
|
+
const metadata = repToMetadata(manifestWithLang.MPD.Period[0].AdaptationSet[0]
|
|
274
|
+
.Representation[0]);
|
|
275
|
+
expect(metadata.lang).toBe('en-US');
|
|
276
|
+
});
|
|
277
|
+
it('sets lang to null when adaptationSet.lang is not present', () => {
|
|
278
|
+
const metadata = repToMetadata(manifest.MPD.Period[0].AdaptationSet[0].Representation[0]);
|
|
279
|
+
expect(metadata.lang).toBe(null);
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
describe('getPeriodSortedBandwidths', () => {
|
|
284
|
+
it('returns sorted descending bandwidths per content type', () => {
|
|
285
|
+
// language=XML
|
|
286
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
287
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
288
|
+
<Period>
|
|
289
|
+
<AdaptationSet mimeType="video/mp4" codecs="avc1.640015">
|
|
290
|
+
<Representation bandwidth="500000" id="v1"/>
|
|
291
|
+
<Representation bandwidth="1000000" id="v2"/>
|
|
292
|
+
</AdaptationSet>
|
|
293
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
294
|
+
<Representation bandwidth="64000" id="a1"/>
|
|
295
|
+
<Representation bandwidth="128000" id="a2"/>
|
|
296
|
+
</AdaptationSet>
|
|
297
|
+
</Period>
|
|
298
|
+
</MPD>`);
|
|
299
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
300
|
+
expect(result.get('video')).toEqual([1000000, 500000]);
|
|
301
|
+
expect(result.get('audio')).toEqual([128000, 64000]);
|
|
302
|
+
expect(result.size).toBe(2);
|
|
303
|
+
});
|
|
304
|
+
it('returns a single entry for a single content type period', () => {
|
|
305
|
+
// language=XML
|
|
306
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
307
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
308
|
+
<Period>
|
|
309
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
310
|
+
<Representation bandwidth="128000" id="a1"/>
|
|
311
|
+
<Representation bandwidth="256000" id="a2"/>
|
|
312
|
+
</AdaptationSet>
|
|
313
|
+
</Period>
|
|
314
|
+
</MPD>`);
|
|
315
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
316
|
+
expect(result.get('audio')).toEqual([256000, 128000]);
|
|
317
|
+
expect(result.size).toBe(1);
|
|
318
|
+
});
|
|
319
|
+
it('merges bandwidths across adaptation sets of the same content type', () => {
|
|
320
|
+
// language=XML
|
|
321
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
322
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
323
|
+
<Period>
|
|
324
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
325
|
+
<Representation bandwidth="128000" id="a1"/>
|
|
326
|
+
</AdaptationSet>
|
|
327
|
+
<AdaptationSet mimeType="audio/mp4" codecs="flac">
|
|
328
|
+
<Representation bandwidth="256000" id="a2"/>
|
|
329
|
+
</AdaptationSet>
|
|
330
|
+
</Period>
|
|
331
|
+
</MPD>`);
|
|
332
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
333
|
+
expect(result.get('audio')).toEqual([256000, 128000]);
|
|
334
|
+
expect(result.size).toBe(1);
|
|
335
|
+
});
|
|
336
|
+
it('collapses bandwidths within 10% of each other', () => {
|
|
337
|
+
// language=XML
|
|
338
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
339
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
340
|
+
<Period>
|
|
341
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
342
|
+
<Representation bandwidth="100000" id="a1"/>
|
|
343
|
+
<Representation bandwidth="95000" id="a2"/>
|
|
344
|
+
<Representation bandwidth="50000" id="a3"/>
|
|
345
|
+
<Representation bandwidth="48000" id="a4"/>
|
|
346
|
+
</AdaptationSet>
|
|
347
|
+
</Period>
|
|
348
|
+
</MPD>`);
|
|
349
|
+
// 95000 is 5% below 100000 → collapsed
|
|
350
|
+
// 48000 is 4% below 50000 → collapsed
|
|
351
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
352
|
+
expect(result.get('audio')).toEqual([100000, 50000]);
|
|
353
|
+
});
|
|
354
|
+
it('keeps bandwidths exactly 10% apart', () => {
|
|
355
|
+
// language=XML
|
|
356
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
357
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
358
|
+
<Period>
|
|
359
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
360
|
+
<Representation bandwidth="100000" id="a1"/>
|
|
361
|
+
<Representation bandwidth="90000" id="a2"/>
|
|
362
|
+
</AdaptationSet>
|
|
363
|
+
</Period>
|
|
364
|
+
</MPD>`);
|
|
365
|
+
// 90000 is exactly 10% below 100000 → kept
|
|
366
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
367
|
+
expect(result.get('audio')).toEqual([100000, 90000]);
|
|
368
|
+
});
|
|
369
|
+
it('skips representations with unrecognizable content type', () => {
|
|
370
|
+
// language=XML
|
|
371
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
372
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
373
|
+
<Period>
|
|
374
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
375
|
+
<Representation bandwidth="128000" id="a1"/>
|
|
376
|
+
</AdaptationSet>
|
|
377
|
+
<AdaptationSet>
|
|
378
|
+
<Representation bandwidth="999999" id="x1"/>
|
|
379
|
+
</AdaptationSet>
|
|
380
|
+
</Period>
|
|
381
|
+
</MPD>`);
|
|
382
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
383
|
+
expect(result.get('audio')).toEqual([128000]);
|
|
384
|
+
expect(result.size).toBe(1);
|
|
385
|
+
});
|
|
386
|
+
it('returns an empty map for a period with no adaptation sets', () => {
|
|
387
|
+
// language=XML
|
|
388
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
389
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
390
|
+
<Period/>
|
|
391
|
+
</MPD>`);
|
|
392
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
393
|
+
expect(result.size).toBe(0);
|
|
394
|
+
});
|
|
395
|
+
it('returns an empty map for a period with no recognizable content types', () => {
|
|
396
|
+
// language=XML
|
|
397
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
398
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
399
|
+
<Period>
|
|
400
|
+
<AdaptationSet>
|
|
401
|
+
<Representation bandwidth="100" id="x1"/>
|
|
402
|
+
</AdaptationSet>
|
|
403
|
+
</Period>
|
|
404
|
+
</MPD>`);
|
|
405
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
406
|
+
expect(result.size).toBe(0);
|
|
407
|
+
});
|
|
408
|
+
it('skips adaptation sets with no representations', () => {
|
|
409
|
+
// language=XML
|
|
410
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
411
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
412
|
+
<Period>
|
|
413
|
+
<AdaptationSet mimeType="video/mp4" codecs="avc1.640015"/>
|
|
414
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
415
|
+
<Representation bandwidth="128000" id="a1"/>
|
|
416
|
+
</AdaptationSet>
|
|
417
|
+
</Period>
|
|
418
|
+
</MPD>`);
|
|
419
|
+
const result = getPeriodSortedBandwidths(m.MPD.Period[0]);
|
|
420
|
+
expect(result.get('audio')).toEqual([128000]);
|
|
421
|
+
expect(result.has('video')).toBeFalse();
|
|
422
|
+
});
|
|
423
|
+
});
|
|
424
|
+
describe('estimatePeakBandwidth', () => {
|
|
425
|
+
it('pairs proportionally when video has more qualities than audio', () => {
|
|
426
|
+
// language=XML
|
|
427
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
428
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
429
|
+
<Period>
|
|
430
|
+
<AdaptationSet mimeType="video/mp4" codecs="avc1.640015">
|
|
431
|
+
<Representation bandwidth="4000" id="v1"/>
|
|
432
|
+
<Representation bandwidth="3000" id="v2"/>
|
|
433
|
+
<Representation bandwidth="2000" id="v3"/>
|
|
434
|
+
<Representation bandwidth="1000" id="v4"/>
|
|
435
|
+
</AdaptationSet>
|
|
436
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
437
|
+
<Representation bandwidth="200" id="a1"/>
|
|
438
|
+
<Representation bandwidth="100" id="a2"/>
|
|
439
|
+
</AdaptationSet>
|
|
440
|
+
</Period>
|
|
441
|
+
</MPD>`);
|
|
442
|
+
const as0 = m.MPD.Period[0].AdaptationSet[0];
|
|
443
|
+
const as1 = m.MPD.Period[0].AdaptationSet[1];
|
|
444
|
+
// video sorted: [4000, 3000, 2000, 1000], audio sorted: [200, 100]
|
|
445
|
+
// v1 pos=0/3=0.00 → audio index round(0.00*1)=0 → 200. total=4200
|
|
446
|
+
expect(estimatePeakBandwidth(as0.Representation[0], 'video')).toBe(4200);
|
|
447
|
+
// v2 pos=1/3=0.33 → audio index round(0.33*1)=0 → 200. total=3200
|
|
448
|
+
expect(estimatePeakBandwidth(as0.Representation[1], 'video')).toBe(3200);
|
|
449
|
+
// v3 pos=2/3=0.67 → audio index round(0.67*1)=1 → 100. total=2100
|
|
450
|
+
expect(estimatePeakBandwidth(as0.Representation[2], 'video')).toBe(2100);
|
|
451
|
+
// v4 pos=3/3=1.00 → audio index round(1.00*1)=1 → 100. total=1100
|
|
452
|
+
expect(estimatePeakBandwidth(as0.Representation[3], 'video')).toBe(1100);
|
|
453
|
+
// a1 pos=0/1=0 → video index round(0*3)=0 → 4000. total=4200
|
|
454
|
+
expect(estimatePeakBandwidth(as1.Representation[0], 'audio')).toBe(4200);
|
|
455
|
+
// a2 pos=1/1=1 → video index round(1*3)=3 → 1000. total=1100
|
|
456
|
+
expect(estimatePeakBandwidth(as1.Representation[1], 'audio')).toBe(1100);
|
|
457
|
+
});
|
|
458
|
+
it('returns bandwidth as-is for single content type periods', () => {
|
|
459
|
+
// language=XML
|
|
460
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
461
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
462
|
+
<Period>
|
|
463
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
464
|
+
<Representation bandwidth="128000" id="a1"/>
|
|
465
|
+
<Representation bandwidth="256000" id="a2"/>
|
|
466
|
+
</AdaptationSet>
|
|
467
|
+
</Period>
|
|
468
|
+
</MPD>`);
|
|
469
|
+
// No sibling types, so bandwidthTotal = bandwidth
|
|
470
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[0].Representation[0], 'audio')).toBe(128000);
|
|
471
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[0].Representation[1], 'audio')).toBe(256000);
|
|
472
|
+
});
|
|
473
|
+
it('returns raw bandwidth when content type is not in the period', () => {
|
|
474
|
+
// language=XML
|
|
475
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
476
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
477
|
+
<Period>
|
|
478
|
+
<AdaptationSet>
|
|
479
|
+
<Representation bandwidth="50000" id="x1"/>
|
|
480
|
+
</AdaptationSet>
|
|
481
|
+
</Period>
|
|
482
|
+
</MPD>`);
|
|
483
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[0].Representation[0], 'text')).toBe(50000);
|
|
484
|
+
});
|
|
485
|
+
it('pairs proportionally with three content types', () => {
|
|
486
|
+
// language=XML
|
|
487
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
488
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
489
|
+
<Period>
|
|
490
|
+
<AdaptationSet mimeType="video/mp4" codecs="avc1.640015">
|
|
491
|
+
<Representation bandwidth="2000" id="v1"/>
|
|
492
|
+
<Representation bandwidth="1000" id="v2"/>
|
|
493
|
+
</AdaptationSet>
|
|
494
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
495
|
+
<Representation bandwidth="200" id="a1"/>
|
|
496
|
+
<Representation bandwidth="100" id="a2"/>
|
|
497
|
+
</AdaptationSet>
|
|
498
|
+
<AdaptationSet mimeType="text/vtt" contentType="text">
|
|
499
|
+
<Representation bandwidth="10" id="t1"/>
|
|
500
|
+
</AdaptationSet>
|
|
501
|
+
</Period>
|
|
502
|
+
</MPD>`);
|
|
503
|
+
// v1 pos=0 → audio[0]=200, text[0]=10. total=2210
|
|
504
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[0].Representation[0], 'video')).toBe(2210);
|
|
505
|
+
// v2 pos=1 → audio[1]=100, text[0]=10. total=1110
|
|
506
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[0].Representation[1], 'video')).toBe(1110);
|
|
507
|
+
// t1 pos=0 (only 1 text) → video[0]=2000, audio[0]=200. total=2210
|
|
508
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[2].Representation[0], 'text')).toBe(2210);
|
|
509
|
+
});
|
|
510
|
+
it('handles single quality per content type', () => {
|
|
511
|
+
// language=XML
|
|
512
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
513
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
514
|
+
<Period>
|
|
515
|
+
<AdaptationSet mimeType="video/mp4" codecs="avc1.640015">
|
|
516
|
+
<Representation bandwidth="1000" id="v1"/>
|
|
517
|
+
</AdaptationSet>
|
|
518
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
519
|
+
<Representation bandwidth="100" id="a1"/>
|
|
520
|
+
</AdaptationSet>
|
|
521
|
+
</Period>
|
|
522
|
+
</MPD>`);
|
|
523
|
+
// Only one quality each, position=0 for both
|
|
524
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[0].Representation[0], 'video')).toBe(1100);
|
|
525
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[1].Representation[0], 'audio')).toBe(1100);
|
|
526
|
+
});
|
|
527
|
+
it('handles bandwidth collapsed by 10% dedup threshold', () => {
|
|
528
|
+
// language=XML
|
|
529
|
+
const m = parseDashManifest(`<?xml version="1.0" ?>
|
|
530
|
+
<MPD minBufferTime="PT0S" profiles="" xmlns="urn:mpeg:dash:schema:mpd:2011">
|
|
531
|
+
<Period>
|
|
532
|
+
<AdaptationSet mimeType="video/mp4" codecs="avc1.640015">
|
|
533
|
+
<Representation bandwidth="100000" id="v1"/>
|
|
534
|
+
<Representation bandwidth="95000" id="v2"/>
|
|
535
|
+
</AdaptationSet>
|
|
536
|
+
<AdaptationSet mimeType="audio/mp4" codecs="mp4a.40.2">
|
|
537
|
+
<Representation bandwidth="200" id="a1"/>
|
|
538
|
+
</AdaptationSet>
|
|
539
|
+
</Period>
|
|
540
|
+
</MPD>`);
|
|
541
|
+
// 95000 is within 10% of 100000, so video sorted bandwidths = [100000].
|
|
542
|
+
// v2's exact bandwidth is not in the array, but should still resolve.
|
|
543
|
+
expect(estimatePeakBandwidth(m.MPD.Period[0].AdaptationSet[0].Representation[1], 'video')).toBe(95200);
|
|
544
|
+
});
|
|
545
|
+
});
|
|
546
|
+
describe('contentProtectionToMetadata', () => {
|
|
547
|
+
it('returns a list of DrmProtection objects for each key system returned by the drmKeySystemResolver', () => {
|
|
548
|
+
expect(contentProtectionToMetadata({
|
|
549
|
+
schemeIdUri: ContentProtectionScheme.FAIR_PLAY,
|
|
550
|
+
pssh: { _content: 'abc' },
|
|
551
|
+
}, {
|
|
552
|
+
drmKeySystemResolver: () => [
|
|
553
|
+
DrmKeySystem.FAIR_PLAY,
|
|
554
|
+
DrmKeySystem.FAIR_PLAY_1_0,
|
|
555
|
+
],
|
|
556
|
+
})).toEqual([
|
|
557
|
+
{
|
|
558
|
+
keySystem: DrmKeySystem.FAIR_PLAY,
|
|
559
|
+
pssh: 'abc',
|
|
560
|
+
pro: null,
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
keySystem: DrmKeySystem.FAIR_PLAY_1_0,
|
|
564
|
+
pssh: 'abc',
|
|
565
|
+
pro: null,
|
|
566
|
+
},
|
|
567
|
+
]);
|
|
568
|
+
expect(contentProtectionToMetadata({
|
|
569
|
+
schemeIdUri: ContentProtectionScheme.PLAY_READY,
|
|
570
|
+
pssh: { _content: 'abc' },
|
|
571
|
+
pro: { _content: 'def' },
|
|
572
|
+
}, {
|
|
573
|
+
drmKeySystemResolver: () => [
|
|
574
|
+
DrmKeySystem.PLAY_READY_RECOMMENDATION,
|
|
575
|
+
DrmKeySystem.PLAY_READY,
|
|
576
|
+
],
|
|
577
|
+
})).toEqual([
|
|
578
|
+
{
|
|
579
|
+
keySystem: DrmKeySystem.PLAY_READY_RECOMMENDATION,
|
|
580
|
+
pssh: 'abc',
|
|
581
|
+
pro: 'def',
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
keySystem: DrmKeySystem.PLAY_READY,
|
|
585
|
+
pssh: 'abc',
|
|
586
|
+
pro: 'def',
|
|
587
|
+
},
|
|
588
|
+
]);
|
|
589
|
+
expect(contentProtectionToMetadata({
|
|
590
|
+
schemeIdUri: ContentProtectionScheme.WIDEVINE,
|
|
591
|
+
pssh: { _content: 'abc' },
|
|
592
|
+
}, {
|
|
593
|
+
drmKeySystemResolver: () => [],
|
|
594
|
+
})).toEqual([]);
|
|
595
|
+
});
|
|
596
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashTrack.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/DashTrack.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { createDashTrackFactory, MseTrack, } from '@amazon/vinyl';
|
|
6
|
+
import { ValidationError } from '@amazon/vinyl-util';
|
|
7
|
+
import { createMockDashDependencies, } from '@amazon/vinyl/vinylTestUtil';
|
|
8
|
+
import { externalDependencies } from '@amazon/vinyl-di';
|
|
9
|
+
const trackLoadOptions = {
|
|
10
|
+
type: 'dash',
|
|
11
|
+
uri: 'http://example.com/manifest.mpd',
|
|
12
|
+
};
|
|
13
|
+
describe('createDashTrackFactory', () => {
|
|
14
|
+
let trackFactory;
|
|
15
|
+
let track = null;
|
|
16
|
+
let deps;
|
|
17
|
+
beforeEach(() => {
|
|
18
|
+
track = null;
|
|
19
|
+
trackFactory = createDashTrackFactory({
|
|
20
|
+
createDashFactories: () => {
|
|
21
|
+
deps = createMockDashDependencies();
|
|
22
|
+
return externalDependencies(deps);
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
afterEach(() => {
|
|
27
|
+
if (track && !track.disposed)
|
|
28
|
+
track.dispose();
|
|
29
|
+
});
|
|
30
|
+
it('creates a track factory for DashTrack', () => {
|
|
31
|
+
track = trackFactory.createTrack(trackLoadOptions);
|
|
32
|
+
expect(track).toBeInstanceOf(MseTrack);
|
|
33
|
+
});
|
|
34
|
+
it('validates the track options', () => {
|
|
35
|
+
trackFactory.validate({
|
|
36
|
+
type: 'dash',
|
|
37
|
+
uri: 'test',
|
|
38
|
+
});
|
|
39
|
+
expect(() => trackFactory.validate(
|
|
40
|
+
// @ts-expect-error Expected validation error
|
|
41
|
+
{
|
|
42
|
+
type: 'dash',
|
|
43
|
+
})).toThrowError(ValidationError);
|
|
44
|
+
expect(() => trackFactory.validate({
|
|
45
|
+
type: 'dash',
|
|
46
|
+
uri: 'https://example.com/test.mpd',
|
|
47
|
+
// @ts-expect-error Expected validation error
|
|
48
|
+
requestInit: 3,
|
|
49
|
+
})).toThrowError(ValidationError);
|
|
50
|
+
});
|
|
51
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildDashMediaTimeline.test.d.ts","sourceRoot":"","sources":["../../../../../../test/unit/track/dash/buildDashMediaTimeline.test.ts"],"names":[],"mappings":""}
|