@amazon/vinyl 1.1.1 → 1.2.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.
Files changed (446) hide show
  1. package/dist/index.cjs +276 -200
  2. package/dist/index.cjs.map +4 -4
  3. package/dist/index.js +280 -203
  4. package/dist/index.js.map +4 -4
  5. package/dist/test/benchmark.es5.js +169 -232
  6. package/dist/test/benchmark.js +1475 -1933
  7. package/dist/test/benchmark.js.map +4 -4
  8. package/dist/test/integ.es5.js +771 -394
  9. package/dist/test/integ.js +6063 -5273
  10. package/dist/test/integ.js.map +4 -4
  11. package/dist/test/jasmineHtml.es5.js +8 -8
  12. package/dist/test/jasmineHtml.js +8 -4
  13. package/dist/test/jasmineHtml.js.map +3 -3
  14. package/dist/types/current/client/Capabilities.d.ts.map +1 -1
  15. package/dist/types/current/client/CapabilitiesImpl.d.ts.map +1 -1
  16. package/dist/types/current/drm/DrmController.d.ts +2 -2
  17. package/dist/types/current/drm/DrmController.d.ts.map +1 -1
  18. package/dist/types/current/drm/DrmControllerImpl.d.ts +3 -3
  19. package/dist/types/current/drm/DrmControllerImpl.d.ts.map +1 -1
  20. package/dist/types/current/drm/DrmControllerImpl.js +7 -7
  21. package/dist/types/current/drm/DrmKeySystemResolver.d.ts +1 -1
  22. package/dist/types/current/drm/DrmKeySystemResolver.d.ts.map +1 -1
  23. package/dist/types/current/drm/DrmKeySystemResolver.js +1 -1
  24. package/dist/types/current/drm/DrmOptions.d.ts +1 -1
  25. package/dist/types/current/drm/DrmOptions.d.ts.map +1 -1
  26. package/dist/types/current/drm/DrmOptions.js +1 -1
  27. package/dist/types/current/drm/commonEme/CommonEme.d.ts +2 -2
  28. package/dist/types/current/drm/commonEme/CommonEme.d.ts.map +1 -1
  29. package/dist/types/current/drm/commonEme/CommonEmeFactory.d.ts +1 -1
  30. package/dist/types/current/drm/commonEme/CommonEmeFactory.d.ts.map +1 -1
  31. package/dist/types/current/drm/commonEme/MsCommonEme.d.ts +1 -1
  32. package/dist/types/current/drm/commonEme/MsCommonEme.d.ts.map +1 -1
  33. package/dist/types/current/drm/commonEme/MsCommonEme.js +1 -1
  34. package/dist/types/current/drm/commonEme/StandardCommonEme.d.ts +1 -1
  35. package/dist/types/current/drm/commonEme/StandardCommonEme.d.ts.map +1 -1
  36. package/dist/types/current/drm/commonEme/WebKitCommonEme.d.ts +2 -2
  37. package/dist/types/current/drm/commonEme/WebKitCommonEme.d.ts.map +1 -1
  38. package/dist/types/current/drm/commonEme/WebKitCommonEme.js +1 -1
  39. package/dist/types/current/drm/commonEme/createDrmErrorHandler.js +1 -1
  40. package/dist/types/current/drm/licenseProvider/LicenseProvider.d.ts +1 -1
  41. package/dist/types/current/drm/licenseProvider/LicenseProvider.d.ts.map +1 -1
  42. package/dist/types/current/global/environment.d.ts +6 -2
  43. package/dist/types/current/global/environment.d.ts.map +1 -1
  44. package/dist/types/current/global/environment.js +4 -3
  45. package/dist/types/current/global/initializeVinylGlobal.js +1 -1
  46. package/dist/types/current/patch/media/MediaElementPatchOptions.js +1 -1
  47. package/dist/types/current/patch/media/patchMediaElement.js +1 -1
  48. package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
  49. package/dist/types/current/patch/media/patches/createPreventStallsPatch.d.ts.map +1 -1
  50. package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
  51. package/dist/types/current/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts.map +1 -1
  52. package/dist/types/current/playback/PlaybackControllerImpl.d.ts +1 -1
  53. package/dist/types/current/playback/PlaybackControllerImpl.d.ts.map +1 -1
  54. package/dist/types/current/playback/PlaybackControllerImpl.js +4 -4
  55. package/dist/types/current/playback/ReadonlyPlaybackController.d.ts.map +1 -1
  56. package/dist/types/current/playback/error/ReportableMediaError.js +1 -1
  57. package/dist/types/current/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
  58. package/dist/types/current/playback/logging/playbackStateLoggingHandler.d.ts.map +1 -1
  59. package/dist/types/current/playback/logging/playbackStateLoggingHandler.js +1 -1
  60. package/dist/types/current/playback/nextHasMetadata.d.ts +1 -1
  61. package/dist/types/current/playback/nextHasMetadata.d.ts.map +1 -1
  62. package/dist/types/current/streaming/ContentStream.d.ts +4 -4
  63. package/dist/types/current/streaming/ContentStream.d.ts.map +1 -1
  64. package/dist/types/current/streaming/ContentStreamingOptions.d.ts +2 -2
  65. package/dist/types/current/streaming/ContentStreamingOptions.d.ts.map +1 -1
  66. package/dist/types/current/streaming/MediaQualityMetadata.d.ts +2 -2
  67. package/dist/types/current/streaming/MediaQualityMetadata.d.ts.map +1 -1
  68. package/dist/types/current/streaming/MediaQualityMetadata.js +1 -1
  69. package/dist/types/current/streaming/MediaTimeline.d.ts +6 -5
  70. package/dist/types/current/streaming/MediaTimeline.d.ts.map +1 -1
  71. package/dist/types/current/streaming/SegmentController.d.ts +2 -7
  72. package/dist/types/current/streaming/SegmentController.d.ts.map +1 -1
  73. package/dist/types/current/streaming/SegmentControllerImpl.d.ts +5 -6
  74. package/dist/types/current/streaming/SegmentControllerImpl.d.ts.map +1 -1
  75. package/dist/types/current/streaming/SegmentControllerImpl.js +5 -15
  76. package/dist/types/current/streaming/SegmentReference.d.ts +1 -1
  77. package/dist/types/current/streaming/SegmentReference.d.ts.map +1 -1
  78. package/dist/types/current/streaming/StreamingEventMap.d.ts +1 -1
  79. package/dist/types/current/streaming/StreamingEventMap.d.ts.map +1 -1
  80. package/dist/types/current/streaming/abr/QualitySelector.d.ts +1 -1
  81. package/dist/types/current/streaming/abr/QualitySelector.d.ts.map +1 -1
  82. package/dist/types/current/streaming/abr/QualitySelectorImpl.d.ts +18 -3
  83. package/dist/types/current/streaming/abr/QualitySelectorImpl.d.ts.map +1 -1
  84. package/dist/types/current/streaming/abr/QualitySelectorImpl.js +8 -2
  85. package/dist/types/current/streaming/buffering/BufferingController.d.ts +3 -13
  86. package/dist/types/current/streaming/buffering/BufferingController.d.ts.map +1 -1
  87. package/dist/types/current/streaming/buffering/BufferingController.js +1 -24
  88. package/dist/types/current/streaming/buffering/MediaSourceController.d.ts +41 -15
  89. package/dist/types/current/streaming/buffering/MediaSourceController.d.ts.map +1 -1
  90. package/dist/types/current/streaming/buffering/MediaSourceController.js +74 -17
  91. package/dist/types/current/streaming/buffering/SourceBufferController.d.ts +1 -1
  92. package/dist/types/current/streaming/buffering/SourceBufferController.d.ts.map +1 -1
  93. package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
  94. package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.d.ts.map +1 -1
  95. package/dist/types/current/streaming/createDefaultMediaTimelineTransformer.js +2 -2
  96. package/dist/types/current/streaming/mediaTimelineFilter.d.ts +3 -3
  97. package/dist/types/current/streaming/mediaTimelineFilter.d.ts.map +1 -1
  98. package/dist/types/current/streaming/mediaTimelineFilter.js +1 -1
  99. package/dist/types/current/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
  100. package/dist/types/current/streaming/mediaTimelineLanguageFilter.d.ts.map +1 -1
  101. package/dist/types/current/streaming/util/segment.d.ts +1 -1
  102. package/dist/types/current/streaming/util/segment.d.ts.map +1 -1
  103. package/dist/types/current/track/AutoResetController.d.ts +37 -12
  104. package/dist/types/current/track/AutoResetController.d.ts.map +1 -1
  105. package/dist/types/current/track/AutoResetController.js +38 -28
  106. package/dist/types/current/track/Track.d.ts.map +1 -1
  107. package/dist/types/current/track/TrackBase.d.ts.map +1 -1
  108. package/dist/types/current/track/TrackController.d.ts +2 -2
  109. package/dist/types/current/track/TrackController.d.ts.map +1 -1
  110. package/dist/types/current/track/TrackFactory.d.ts +1 -1
  111. package/dist/types/current/track/TrackFactory.d.ts.map +1 -1
  112. package/dist/types/current/track/createSegmentDataProvider.d.ts.map +1 -1
  113. package/dist/types/current/track/createVinylTrackFactories.d.ts +5 -5
  114. package/dist/types/current/track/createVinylTrackFactories.d.ts.map +1 -1
  115. package/dist/types/current/track/createVinylTrackFactories.js +4 -4
  116. package/dist/types/current/track/dash/DashManifestController.d.ts +1 -1
  117. package/dist/types/current/track/dash/DashManifestController.d.ts.map +1 -1
  118. package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.d.ts.map +1 -1
  119. package/dist/types/current/track/dash/DashMediaQualityMetadataResolver.js +1 -1
  120. package/dist/types/current/track/dash/DashTrack.d.ts +4 -4
  121. package/dist/types/current/track/dash/DashTrack.d.ts.map +1 -1
  122. package/dist/types/current/track/dash/DashTrack.js +2 -2
  123. package/dist/types/current/track/dash/buildDashMediaTimeline.d.ts +2 -2
  124. package/dist/types/current/track/dash/buildDashMediaTimeline.d.ts.map +1 -1
  125. package/dist/types/current/track/dash/buildDashMediaTimeline.js +2 -2
  126. package/dist/types/current/track/dash/createDashContentStreamFactories.d.ts.map +1 -1
  127. package/dist/types/current/track/dash/createDashContentTypesValue.d.ts +2 -2
  128. package/dist/types/current/track/dash/createDashContentTypesValue.d.ts.map +1 -1
  129. package/dist/types/current/track/dash/createDashContentTypesValue.js +1 -1
  130. package/dist/types/current/track/dash/createDashFactories.d.ts +12 -12
  131. package/dist/types/current/track/dash/createDashFactories.d.ts.map +1 -1
  132. package/dist/types/current/track/dash/createDashFactories.js +8 -8
  133. package/dist/types/current/track/dash/createDashManifestProvider.d.ts +1 -1
  134. package/dist/types/current/track/dash/createDashManifestProvider.d.ts.map +1 -1
  135. package/dist/types/current/track/dash/createDashManifestProvider.js +1 -1
  136. package/dist/types/current/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
  137. package/dist/types/current/track/dash/createDefaultDashManifestTransformer.d.ts.map +1 -1
  138. package/dist/types/current/track/dash/createDefaultDashManifestTransformer.js +1 -1
  139. package/dist/types/current/track/dash/createSegmentControllerFactory.d.ts.map +1 -1
  140. package/dist/types/current/track/dash/manifestTransformUtils.d.ts +1 -1
  141. package/dist/types/current/track/dash/manifestTransformUtils.d.ts.map +1 -1
  142. package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
  143. package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.d.ts.map +1 -1
  144. package/dist/types/current/track/dash/timeline/DashRepresentationSegmentProvider.js +3 -3
  145. package/dist/types/current/track/dash/urlDashManifestProvider.d.ts +1 -1
  146. package/dist/types/current/track/dash/urlDashManifestProvider.d.ts.map +1 -1
  147. package/dist/types/current/track/dash/util/mimeType.d.ts.map +1 -1
  148. package/dist/types/current/track/dash/util/mimeType.js +1 -1
  149. package/dist/types/current/track/dash/util/mpd.d.ts +3 -2
  150. package/dist/types/current/track/dash/util/mpd.d.ts.map +1 -1
  151. package/dist/types/current/track/dash/util/mpd.js +13 -3
  152. package/dist/types/current/track/dash/util/uriResolution.js +1 -1
  153. package/dist/types/current/track/filters/keySystemFilter.d.ts.map +1 -1
  154. package/dist/types/current/track/filters/resourceTypeFilter.d.ts.map +1 -1
  155. package/dist/types/current/track/filters/sampleRateFilter.d.ts.map +1 -1
  156. package/dist/types/current/track/hls/HlsTrack.d.ts.map +1 -1
  157. package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts +3 -3
  158. package/dist/types/current/track/hls/buildHlsMediaTimeline.d.ts.map +1 -1
  159. package/dist/types/current/track/hls/buildHlsMediaTimeline.js +16 -14
  160. package/dist/types/current/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
  161. package/dist/types/current/track/hls/createDefaultHlsManifestTransformer.d.ts.map +1 -1
  162. package/dist/types/current/track/hls/createHlsContentStreamFactories.d.ts.map +1 -1
  163. package/dist/types/current/track/hls/util/hlsSegmentTime.d.ts +1 -1
  164. package/dist/types/current/track/hls/util/hlsSegmentTime.d.ts.map +1 -1
  165. package/dist/types/current/track/hls/util/hlsSegmentTime.js +1 -1
  166. package/dist/types/current/track/mse/MseTrack.d.ts +2 -2
  167. package/dist/types/current/track/mse/MseTrack.d.ts.map +1 -1
  168. package/dist/types/current/track/mse/MseTrack.js +2 -1
  169. package/dist/types/current/track/mse/codec.d.ts.map +1 -1
  170. package/dist/types/current/track/source/FixedPlaybackQuality.d.ts +1 -1
  171. package/dist/types/current/track/source/FixedPlaybackQuality.d.ts.map +1 -1
  172. package/dist/types/current/track/source/SourceObjectTrack.d.ts +4 -4
  173. package/dist/types/current/track/source/SourceObjectTrack.d.ts.map +1 -1
  174. package/dist/types/current/track/source/SourceObjectTrack.js +2 -2
  175. package/dist/types/current/track/source/SourceTrack.d.ts +4 -4
  176. package/dist/types/current/track/source/SourceTrack.d.ts.map +1 -1
  177. package/dist/types/current/track/source/SourceTrack.js +2 -2
  178. package/dist/types/current/track/source/SourceTrackBase.d.ts +2 -2
  179. package/dist/types/current/track/source/SourceTrackBase.d.ts.map +1 -1
  180. package/dist/types/current/track/source/SourceTrackBase.js +2 -2
  181. package/dist/types/current/tsconfig.tsbuildinfo +1 -1
  182. package/dist/types/current/vinyl/ReadonlyPlaybackStreamingState.d.ts.map +1 -1
  183. package/dist/types/current/vinyl/VinylDeps.d.ts +1 -1
  184. package/dist/types/current/vinyl/VinylDeps.d.ts.map +1 -1
  185. package/dist/types/current/vinyl/VinylOptions.d.ts.map +1 -1
  186. package/dist/types/current/vinyl/VinylPatchOptions.d.ts.map +1 -1
  187. package/dist/types/current/vinyl/VinylPlayer.d.ts +26 -2
  188. package/dist/types/current/vinyl/VinylPlayer.d.ts.map +1 -1
  189. package/dist/types/current/vinyl/VinylPlayer.js +18 -3
  190. package/dist/types/current/vinyl/createVinylFactories.d.ts +9 -11
  191. package/dist/types/current/vinyl/createVinylFactories.d.ts.map +1 -1
  192. package/dist/types/current/vinyl/createVinylFactories.js +2 -2
  193. package/dist/types/ts3.7/drm/DrmController.d.ts +2 -2
  194. package/dist/types/ts3.7/drm/DrmControllerImpl.d.ts +3 -3
  195. package/dist/types/ts3.7/drm/DrmKeySystemResolver.d.ts +1 -1
  196. package/dist/types/ts3.7/drm/DrmOptions.d.ts +1 -1
  197. package/dist/types/ts3.7/drm/commonEme/CommonEme.d.ts +2 -2
  198. package/dist/types/ts3.7/drm/commonEme/CommonEmeFactory.d.ts +1 -1
  199. package/dist/types/ts3.7/drm/commonEme/MsCommonEme.d.ts +1 -1
  200. package/dist/types/ts3.7/drm/commonEme/StandardCommonEme.d.ts +1 -1
  201. package/dist/types/ts3.7/drm/commonEme/WebKitCommonEme.d.ts +2 -2
  202. package/dist/types/ts3.7/drm/licenseProvider/LicenseProvider.d.ts +1 -1
  203. package/dist/types/ts3.7/global/environment.d.ts +6 -2
  204. package/dist/types/ts3.7/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
  205. package/dist/types/ts3.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
  206. package/dist/types/ts3.7/playback/PlaybackControllerImpl.d.ts +1 -1
  207. package/dist/types/ts3.7/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
  208. package/dist/types/ts3.7/playback/nextHasMetadata.d.ts +1 -1
  209. package/dist/types/ts3.7/streaming/ContentStream.d.ts +4 -4
  210. package/dist/types/ts3.7/streaming/ContentStreamingOptions.d.ts +2 -2
  211. package/dist/types/ts3.7/streaming/MediaQualityMetadata.d.ts +2 -2
  212. package/dist/types/ts3.7/streaming/MediaTimeline.d.ts +6 -5
  213. package/dist/types/ts3.7/streaming/SegmentController.d.ts +2 -7
  214. package/dist/types/ts3.7/streaming/SegmentControllerImpl.d.ts +5 -6
  215. package/dist/types/ts3.7/streaming/SegmentReference.d.ts +1 -1
  216. package/dist/types/ts3.7/streaming/StreamingEventMap.d.ts +1 -1
  217. package/dist/types/ts3.7/streaming/abr/QualitySelector.d.ts +1 -1
  218. package/dist/types/ts3.7/streaming/abr/QualitySelectorImpl.d.ts +18 -3
  219. package/dist/types/ts3.7/streaming/buffering/BufferingController.d.ts +3 -13
  220. package/dist/types/ts3.7/streaming/buffering/MediaSourceController.d.ts +41 -15
  221. package/dist/types/ts3.7/streaming/buffering/SourceBufferController.d.ts +1 -1
  222. package/dist/types/ts3.7/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
  223. package/dist/types/ts3.7/streaming/mediaTimelineFilter.d.ts +3 -3
  224. package/dist/types/ts3.7/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
  225. package/dist/types/ts3.7/streaming/util/segment.d.ts +1 -1
  226. package/dist/types/ts3.7/track/AutoResetController.d.ts +37 -12
  227. package/dist/types/ts3.7/track/TrackController.d.ts +2 -2
  228. package/dist/types/ts3.7/track/TrackFactory.d.ts +1 -1
  229. package/dist/types/ts3.7/track/createVinylTrackFactories.d.ts +5 -5
  230. package/dist/types/ts3.7/track/dash/DashManifestController.d.ts +1 -1
  231. package/dist/types/ts3.7/track/dash/DashTrack.d.ts +4 -4
  232. package/dist/types/ts3.7/track/dash/buildDashMediaTimeline.d.ts +2 -2
  233. package/dist/types/ts3.7/track/dash/createDashContentTypesValue.d.ts +2 -2
  234. package/dist/types/ts3.7/track/dash/createDashFactories.d.ts +12 -12
  235. package/dist/types/ts3.7/track/dash/createDashManifestProvider.d.ts +1 -1
  236. package/dist/types/ts3.7/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
  237. package/dist/types/ts3.7/track/dash/manifestTransformUtils.d.ts +1 -1
  238. package/dist/types/ts3.7/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
  239. package/dist/types/ts3.7/track/dash/urlDashManifestProvider.d.ts +1 -1
  240. package/dist/types/ts3.7/track/dash/util/mpd.d.ts +3 -2
  241. package/dist/types/ts3.7/track/hls/buildHlsMediaTimeline.d.ts +3 -3
  242. package/dist/types/ts3.7/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
  243. package/dist/types/ts3.7/track/hls/util/hlsSegmentTime.d.ts +1 -1
  244. package/dist/types/ts3.7/track/mse/MseTrack.d.ts +2 -2
  245. package/dist/types/ts3.7/track/source/FixedPlaybackQuality.d.ts +1 -1
  246. package/dist/types/ts3.7/track/source/SourceObjectTrack.d.ts +4 -4
  247. package/dist/types/ts3.7/track/source/SourceTrack.d.ts +4 -4
  248. package/dist/types/ts3.7/track/source/SourceTrackBase.d.ts +2 -2
  249. package/dist/types/ts3.7/vinyl/VinylDeps.d.ts +1 -1
  250. package/dist/types/ts3.7/vinyl/VinylPlayer.d.ts +18 -2
  251. package/dist/types/ts3.7/vinyl/createVinylFactories.d.ts +9 -11
  252. package/dist/types/ts4.1/drm/DrmController.d.ts +2 -2
  253. package/dist/types/ts4.1/drm/DrmControllerImpl.d.ts +3 -3
  254. package/dist/types/ts4.1/drm/DrmKeySystemResolver.d.ts +1 -1
  255. package/dist/types/ts4.1/drm/DrmOptions.d.ts +1 -1
  256. package/dist/types/ts4.1/drm/commonEme/CommonEme.d.ts +2 -2
  257. package/dist/types/ts4.1/drm/commonEme/CommonEmeFactory.d.ts +1 -1
  258. package/dist/types/ts4.1/drm/commonEme/MsCommonEme.d.ts +1 -1
  259. package/dist/types/ts4.1/drm/commonEme/StandardCommonEme.d.ts +1 -1
  260. package/dist/types/ts4.1/drm/commonEme/WebKitCommonEme.d.ts +2 -2
  261. package/dist/types/ts4.1/drm/licenseProvider/LicenseProvider.d.ts +1 -1
  262. package/dist/types/ts4.1/global/environment.d.ts +6 -2
  263. package/dist/types/ts4.1/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
  264. package/dist/types/ts4.1/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
  265. package/dist/types/ts4.1/playback/PlaybackControllerImpl.d.ts +1 -1
  266. package/dist/types/ts4.1/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
  267. package/dist/types/ts4.1/playback/nextHasMetadata.d.ts +1 -1
  268. package/dist/types/ts4.1/streaming/ContentStream.d.ts +4 -4
  269. package/dist/types/ts4.1/streaming/ContentStreamingOptions.d.ts +2 -2
  270. package/dist/types/ts4.1/streaming/MediaQualityMetadata.d.ts +2 -2
  271. package/dist/types/ts4.1/streaming/MediaTimeline.d.ts +6 -5
  272. package/dist/types/ts4.1/streaming/SegmentController.d.ts +2 -7
  273. package/dist/types/ts4.1/streaming/SegmentControllerImpl.d.ts +5 -6
  274. package/dist/types/ts4.1/streaming/SegmentReference.d.ts +1 -1
  275. package/dist/types/ts4.1/streaming/StreamingEventMap.d.ts +1 -1
  276. package/dist/types/ts4.1/streaming/abr/QualitySelector.d.ts +1 -1
  277. package/dist/types/ts4.1/streaming/abr/QualitySelectorImpl.d.ts +18 -3
  278. package/dist/types/ts4.1/streaming/buffering/BufferingController.d.ts +3 -13
  279. package/dist/types/ts4.1/streaming/buffering/MediaSourceController.d.ts +41 -15
  280. package/dist/types/ts4.1/streaming/buffering/SourceBufferController.d.ts +1 -1
  281. package/dist/types/ts4.1/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
  282. package/dist/types/ts4.1/streaming/mediaTimelineFilter.d.ts +3 -3
  283. package/dist/types/ts4.1/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
  284. package/dist/types/ts4.1/streaming/util/segment.d.ts +1 -1
  285. package/dist/types/ts4.1/track/AutoResetController.d.ts +37 -12
  286. package/dist/types/ts4.1/track/TrackController.d.ts +2 -2
  287. package/dist/types/ts4.1/track/TrackFactory.d.ts +1 -1
  288. package/dist/types/ts4.1/track/createVinylTrackFactories.d.ts +5 -5
  289. package/dist/types/ts4.1/track/dash/DashManifestController.d.ts +1 -1
  290. package/dist/types/ts4.1/track/dash/DashTrack.d.ts +4 -4
  291. package/dist/types/ts4.1/track/dash/buildDashMediaTimeline.d.ts +2 -2
  292. package/dist/types/ts4.1/track/dash/createDashContentTypesValue.d.ts +2 -2
  293. package/dist/types/ts4.1/track/dash/createDashFactories.d.ts +12 -12
  294. package/dist/types/ts4.1/track/dash/createDashManifestProvider.d.ts +1 -1
  295. package/dist/types/ts4.1/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
  296. package/dist/types/ts4.1/track/dash/manifestTransformUtils.d.ts +1 -1
  297. package/dist/types/ts4.1/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
  298. package/dist/types/ts4.1/track/dash/urlDashManifestProvider.d.ts +1 -1
  299. package/dist/types/ts4.1/track/dash/util/mpd.d.ts +3 -2
  300. package/dist/types/ts4.1/track/hls/buildHlsMediaTimeline.d.ts +3 -3
  301. package/dist/types/ts4.1/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
  302. package/dist/types/ts4.1/track/hls/util/hlsSegmentTime.d.ts +1 -1
  303. package/dist/types/ts4.1/track/mse/MseTrack.d.ts +3 -3
  304. package/dist/types/ts4.1/track/source/FixedPlaybackQuality.d.ts +1 -1
  305. package/dist/types/ts4.1/track/source/SourceObjectTrack.d.ts +5 -5
  306. package/dist/types/ts4.1/track/source/SourceTrack.d.ts +5 -5
  307. package/dist/types/ts4.1/track/source/SourceTrackBase.d.ts +3 -3
  308. package/dist/types/ts4.1/vinyl/VinylDeps.d.ts +1 -1
  309. package/dist/types/ts4.1/vinyl/VinylPlayer.d.ts +18 -2
  310. package/dist/types/ts4.1/vinyl/createVinylFactories.d.ts +9 -11
  311. package/dist/types/ts4.7/drm/DrmController.d.ts +2 -2
  312. package/dist/types/ts4.7/drm/DrmControllerImpl.d.ts +3 -3
  313. package/dist/types/ts4.7/drm/DrmKeySystemResolver.d.ts +1 -1
  314. package/dist/types/ts4.7/drm/DrmOptions.d.ts +1 -1
  315. package/dist/types/ts4.7/drm/commonEme/CommonEme.d.ts +2 -2
  316. package/dist/types/ts4.7/drm/commonEme/CommonEmeFactory.d.ts +1 -1
  317. package/dist/types/ts4.7/drm/commonEme/MsCommonEme.d.ts +1 -1
  318. package/dist/types/ts4.7/drm/commonEme/StandardCommonEme.d.ts +1 -1
  319. package/dist/types/ts4.7/drm/commonEme/WebKitCommonEme.d.ts +2 -2
  320. package/dist/types/ts4.7/drm/licenseProvider/LicenseProvider.d.ts +1 -1
  321. package/dist/types/ts4.7/global/environment.d.ts +6 -2
  322. package/dist/types/ts4.7/patch/media/patches/createPreventStallsPatch.d.ts +1 -1
  323. package/dist/types/ts4.7/patch/media/patches/createUnreliablePlaybackEventsPatch.d.ts +1 -1
  324. package/dist/types/ts4.7/playback/PlaybackControllerImpl.d.ts +1 -1
  325. package/dist/types/ts4.7/playback/logging/playbackStateLoggingHandler.d.ts +1 -1
  326. package/dist/types/ts4.7/playback/nextHasMetadata.d.ts +1 -1
  327. package/dist/types/ts4.7/streaming/ContentStream.d.ts +4 -4
  328. package/dist/types/ts4.7/streaming/ContentStreamingOptions.d.ts +2 -2
  329. package/dist/types/ts4.7/streaming/MediaQualityMetadata.d.ts +2 -2
  330. package/dist/types/ts4.7/streaming/MediaTimeline.d.ts +6 -5
  331. package/dist/types/ts4.7/streaming/SegmentController.d.ts +2 -7
  332. package/dist/types/ts4.7/streaming/SegmentControllerImpl.d.ts +5 -6
  333. package/dist/types/ts4.7/streaming/SegmentReference.d.ts +1 -1
  334. package/dist/types/ts4.7/streaming/StreamingEventMap.d.ts +1 -1
  335. package/dist/types/ts4.7/streaming/abr/QualitySelector.d.ts +1 -1
  336. package/dist/types/ts4.7/streaming/abr/QualitySelectorImpl.d.ts +18 -3
  337. package/dist/types/ts4.7/streaming/buffering/BufferingController.d.ts +3 -13
  338. package/dist/types/ts4.7/streaming/buffering/MediaSourceController.d.ts +41 -15
  339. package/dist/types/ts4.7/streaming/buffering/SourceBufferController.d.ts +1 -1
  340. package/dist/types/ts4.7/streaming/createDefaultMediaTimelineTransformer.d.ts +1 -1
  341. package/dist/types/ts4.7/streaming/mediaTimelineFilter.d.ts +3 -3
  342. package/dist/types/ts4.7/streaming/mediaTimelineLanguageFilter.d.ts +1 -1
  343. package/dist/types/ts4.7/streaming/util/segment.d.ts +1 -1
  344. package/dist/types/ts4.7/track/AutoResetController.d.ts +37 -12
  345. package/dist/types/ts4.7/track/TrackController.d.ts +2 -2
  346. package/dist/types/ts4.7/track/TrackFactory.d.ts +1 -1
  347. package/dist/types/ts4.7/track/createVinylTrackFactories.d.ts +5 -5
  348. package/dist/types/ts4.7/track/dash/DashManifestController.d.ts +1 -1
  349. package/dist/types/ts4.7/track/dash/DashTrack.d.ts +4 -4
  350. package/dist/types/ts4.7/track/dash/buildDashMediaTimeline.d.ts +2 -2
  351. package/dist/types/ts4.7/track/dash/createDashContentTypesValue.d.ts +2 -2
  352. package/dist/types/ts4.7/track/dash/createDashFactories.d.ts +12 -12
  353. package/dist/types/ts4.7/track/dash/createDashManifestProvider.d.ts +1 -1
  354. package/dist/types/ts4.7/track/dash/createDefaultDashManifestTransformer.d.ts +1 -1
  355. package/dist/types/ts4.7/track/dash/manifestTransformUtils.d.ts +1 -1
  356. package/dist/types/ts4.7/track/dash/timeline/DashRepresentationSegmentProvider.d.ts +3 -3
  357. package/dist/types/ts4.7/track/dash/urlDashManifestProvider.d.ts +1 -1
  358. package/dist/types/ts4.7/track/dash/util/mpd.d.ts +3 -2
  359. package/dist/types/ts4.7/track/hls/buildHlsMediaTimeline.d.ts +3 -3
  360. package/dist/types/ts4.7/track/hls/createDefaultHlsManifestTransformer.d.ts +1 -1
  361. package/dist/types/ts4.7/track/hls/util/hlsSegmentTime.d.ts +1 -1
  362. package/dist/types/ts4.7/track/mse/MseTrack.d.ts +2 -2
  363. package/dist/types/ts4.7/track/source/FixedPlaybackQuality.d.ts +1 -1
  364. package/dist/types/ts4.7/track/source/SourceObjectTrack.d.ts +4 -4
  365. package/dist/types/ts4.7/track/source/SourceTrack.d.ts +4 -4
  366. package/dist/types/ts4.7/track/source/SourceTrackBase.d.ts +2 -2
  367. package/dist/types/ts4.7/vinyl/VinylDeps.d.ts +1 -1
  368. package/dist/types/ts4.7/vinyl/VinylPlayer.d.ts +26 -2
  369. package/dist/types/ts4.7/vinyl/createVinylFactories.d.ts +9 -11
  370. package/dist/unit/types/current/streaming/MediaTimeline.test.js +6 -1
  371. package/dist/unit/types/current/streaming/MseTrack.test.js +4 -0
  372. package/dist/unit/types/current/streaming/SegmentControllerImpl.test.js +3 -33
  373. package/dist/unit/types/current/streaming/abr/QualitySelectorImpl.test.js +73 -0
  374. package/dist/unit/types/current/streaming/buffering/BufferingController.test.js +1 -41
  375. package/dist/unit/types/current/streaming/buffering/MediaSourceController.test.js +97 -17
  376. package/dist/unit/types/current/streaming/createDefaultMediaTimelineTransformer.test.js +6 -0
  377. package/dist/unit/types/current/streaming/mediaTimelineFilter.test.js +2 -0
  378. package/dist/unit/types/current/streaming/mediaTimelineLanguageFilter.test.js +7 -0
  379. package/dist/unit/types/current/track/AutoResetController.test.js +134 -22
  380. package/dist/unit/types/current/track/dash/createDashContentStreamFactories.test.js +5 -1
  381. package/dist/unit/types/current/track/dash/createSegmentControllerFactory.test.js +5 -1
  382. package/dist/unit/types/current/track/dash/util/mpd.test.js +29 -0
  383. package/dist/unit/types/current/track/hls/buildHlsMediaTimeline.test.js +16 -8
  384. package/dist/unit/types/current/track/hls/createHlsContentStreamFactories.test.js +5 -1
  385. package/dist/unit/types/current/tsconfig.tsbuildinfo +1 -1
  386. package/dist/unit/types/current/vinyl/VinylPlayer.test.js +35 -0
  387. package/dist/vinylTestUtil/index.js +20 -14
  388. package/dist/vinylTestUtil/index.js.map +2 -2
  389. package/dist/vinylTestUtil/types/current/media/FrequencyAnalyzer.js +1 -1
  390. package/dist/vinylTestUtil/types/current/mediaSource/ControlledMediaSource.d.ts.map +1 -1
  391. package/dist/vinylTestUtil/types/current/mock/dash/mockDashManifest.d.ts +12 -12
  392. package/dist/vinylTestUtil/types/current/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
  393. package/dist/vinylTestUtil/types/current/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
  394. package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
  395. package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.d.ts.map +1 -1
  396. package/dist/vinylTestUtil/types/current/mock/player/MockVinylPlayerDependencies.js +7 -7
  397. package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.d.ts +0 -1
  398. package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.d.ts.map +1 -1
  399. package/dist/vinylTestUtil/types/current/mock/streaming/MockSegmentController.js +0 -1
  400. package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
  401. package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.d.ts.map +1 -1
  402. package/dist/vinylTestUtil/types/current/mock/streaming/buffering/MockMediaSourceController.js +0 -1
  403. package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.d.ts +1 -0
  404. package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.d.ts.map +1 -1
  405. package/dist/vinylTestUtil/types/current/mock/track/MockAutoResetController.js +1 -0
  406. package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.d.ts +5 -5
  407. package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.d.ts.map +1 -1
  408. package/dist/vinylTestUtil/types/current/mock/track/dash/createMockDashDependencies.js +11 -7
  409. package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
  410. package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.d.ts.map +1 -1
  411. package/dist/vinylTestUtil/types/current/mock/track/hls/createMockHlsDependencies.js +11 -7
  412. package/dist/vinylTestUtil/types/current/player/createVinylSuite.js +1 -1
  413. package/dist/vinylTestUtil/types/current/tsconfig.tsbuildinfo +1 -1
  414. package/dist/vinylTestUtil/types/current/util/playback/expectTrackCanSeek.js +1 -1
  415. package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlays.js +2 -2
  416. package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.d.ts.map +1 -1
  417. package/dist/vinylTestUtil/types/current/util/playback/expectTrackPlaysUntil.js +1 -2
  418. package/dist/vinylTestUtil/types/ts3.7/mock/dash/mockDashManifest.d.ts +12 -12
  419. package/dist/vinylTestUtil/types/ts3.7/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
  420. package/dist/vinylTestUtil/types/ts3.7/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
  421. package/dist/vinylTestUtil/types/ts3.7/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
  422. package/dist/vinylTestUtil/types/ts3.7/mock/streaming/MockSegmentController.d.ts +0 -1
  423. package/dist/vinylTestUtil/types/ts3.7/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
  424. package/dist/vinylTestUtil/types/ts3.7/mock/track/MockAutoResetController.d.ts +1 -0
  425. package/dist/vinylTestUtil/types/ts3.7/mock/track/dash/createMockDashDependencies.d.ts +5 -5
  426. package/dist/vinylTestUtil/types/ts3.7/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
  427. package/dist/vinylTestUtil/types/ts4.1/mock/dash/mockDashManifest.d.ts +12 -12
  428. package/dist/vinylTestUtil/types/ts4.1/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
  429. package/dist/vinylTestUtil/types/ts4.1/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
  430. package/dist/vinylTestUtil/types/ts4.1/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
  431. package/dist/vinylTestUtil/types/ts4.1/mock/streaming/MockSegmentController.d.ts +0 -1
  432. package/dist/vinylTestUtil/types/ts4.1/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
  433. package/dist/vinylTestUtil/types/ts4.1/mock/track/MockAutoResetController.d.ts +1 -0
  434. package/dist/vinylTestUtil/types/ts4.1/mock/track/dash/createMockDashDependencies.d.ts +5 -5
  435. package/dist/vinylTestUtil/types/ts4.1/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
  436. package/dist/vinylTestUtil/types/ts4.7/mock/dash/mockDashManifest.d.ts +12 -12
  437. package/dist/vinylTestUtil/types/ts4.7/mock/dom/ms/MockMSMediaKeySession.d.ts +2 -2
  438. package/dist/vinylTestUtil/types/ts4.7/mock/dom/webkit/MockWebKitMediaKeySession.d.ts +2 -2
  439. package/dist/vinylTestUtil/types/ts4.7/mock/player/MockVinylPlayerDependencies.d.ts +6 -6
  440. package/dist/vinylTestUtil/types/ts4.7/mock/streaming/MockSegmentController.d.ts +0 -1
  441. package/dist/vinylTestUtil/types/ts4.7/mock/streaming/buffering/MockMediaSourceController.d.ts +0 -1
  442. package/dist/vinylTestUtil/types/ts4.7/mock/track/MockAutoResetController.d.ts +1 -0
  443. package/dist/vinylTestUtil/types/ts4.7/mock/track/dash/createMockDashDependencies.d.ts +5 -5
  444. package/dist/vinylTestUtil/types/ts4.7/mock/track/hls/createMockHlsDependencies.d.ts +5 -5
  445. package/docs/USAGE.md +33 -0
  446. package/package.json +13 -15
@@ -1,36 +1,60 @@
1
1
  import type { AnyRecord, Clearable, Disposable, ReadonlyEventHost } from '@amazon/vinyl-util';
2
2
  import { EventHostImpl } from '@amazon/vinyl-util';
3
3
  import type { PlaybackController } from '../playback/PlaybackController';
4
+ import type { ChangeEvent } from '../event/ChangeEvent';
4
5
  export interface AutoResetControllerEventMap {
5
6
  /**
6
7
  * Notifies that playback errors should be reset and retried.
7
8
  */
8
9
  readonly reset: AnyRecord;
10
+ /**
11
+ * Dispatched when {@link AutoResetController.resetPending} changes.
12
+ */
13
+ readonly resetPendingChange: ChangeEvent<boolean>;
9
14
  }
10
15
  /**
11
- * Notifies when playback should be reset and retried.
16
+ * Notifies when playback should be reset and retried after a transient,
17
+ * potentially-recoverable error.
12
18
  *
13
- * The controller monitors for retry opportunities after an error is set:
14
- * - Immediately on network 'online' events
15
- * - After a timeout interval if online
19
+ * Once an eligible error is set, the controller watches for opportunities
20
+ * to emit a `reset` event:
21
+ * - Immediately when the network transitions back to online
22
+ * - After a timeout interval, if online and retries are not exhausted
16
23
  * - Immediately on user playback actions (play, pause, seeking, playing)
17
24
  *
18
- * Each error triggers a single timeout. If another error occurs after a reset,
19
- * setError() should be called again to schedule the next retry attempt.
25
+ * Each error triggers a single retry timeout. If another error occurs
26
+ * after a reset, {@link AutoResetController.setError} should be called again
27
+ * to schedule the next retry attempt.
20
28
  */
21
29
  export interface AutoResetController extends ReadonlyEventHost<AutoResetControllerEventMap>, Clearable {
22
30
  /**
23
- * Sets the current playback error and begins monitoring for retry opportunities.
31
+ * Sets the current playback error and, if eligible, begins watching for
32
+ * retry opportunities.
33
+ *
34
+ * An error is eligible when it is a {@link RequestError} that did not
35
+ * receive an HTTP response (i.e. `response == null`), indicating a
36
+ * transient network failure such as connection loss or DNS failure.
37
+ * All other errors — including HTTP failures with a response (4xx/5xx),
38
+ * and non-RequestError errors — are ignored, since those are unlikely
39
+ * to recover on their own.
24
40
  *
25
- * Only SERVICE_INTERNAL ReportableErrors are monitored. Subsequent calls while
26
- * an error is already set are ignored until the error is cleared via reset or clear().
41
+ * Subsequent calls while an error is already set are ignored until the
42
+ * error is cleared via a reset emission or {@link Clearable.clear}.
27
43
  *
28
- * After a reset, if another error occurs, this method should be called again
29
- * to schedule the next retry attempt.
44
+ * After a reset, if another eligible error occurs, this method should
45
+ * be called again to schedule the next retry attempt.
30
46
  *
31
47
  * @param error The error to monitor for retry opportunities
32
48
  */
33
49
  setError(error: Error): void;
50
+ /**
51
+ * True while an eligible error is being watched and a `reset` event
52
+ * may still be emitted. Becomes false once the error is cleared, a
53
+ * reset is emitted, or all retries are exhausted.
54
+ *
55
+ * Listen to `resetPendingChange` events for changes.
56
+ */
57
+ readonly resetPending: boolean;
34
58
  }
35
59
  export interface AutoResetControllerImplDeps {
36
60
  readonly playbackController: PlaybackController;
@@ -75,7 +99,8 @@ export declare class AutoResetControllerImpl extends EventHostImpl<AutoResetCont
75
99
  private disposer;
76
100
  constructor(deps: AutoResetControllerImplDeps, options?: Partial<AutoResetControllerImplOptions>);
77
101
  setError(error: Error): void;
78
- private setWatching;
102
+ get resetPending(): boolean;
103
+ private setResetPending;
79
104
  private reset;
80
105
  clear(): void;
81
106
  get disposed(): boolean;
@@ -1,8 +1,8 @@
1
1
  import type { AnyRecord, Disposable, Maybe, ReadonlyEventHost } from '@amazon/vinyl-util';
2
2
  import { EventHostImpl } from '@amazon/vinyl-util';
3
3
  import type { PlaybackController } from '../playback/PlaybackController';
4
- import type { ReadonlyTrack, TrackUri } from '../track/Track';
5
- import type { TrackFactory, TrackLoadOptions } from '../track/TrackFactory';
4
+ import type { ReadonlyTrack, TrackUri } from './Track';
5
+ import type { TrackFactory, TrackLoadOptions } from './TrackFactory';
6
6
  import type { ChangeEvent } from '../event/ChangeEvent';
7
7
  export interface TrackControllerEventMap<TrackLoadOptionsType extends TrackLoadOptions> {
8
8
  /**
@@ -1,6 +1,6 @@
1
1
  import type { AnyRecord, Maybe, ReadonlyRecord } from '@amazon/vinyl-util';
2
2
  import type { ObjectSchema } from '@amazon/vinyl-validation';
3
- import type { Track, TrackTypeId, TrackUri } from '../track/Track';
3
+ import type { Track, TrackTypeId, TrackUri } from './Track';
4
4
  export interface TrackLoadOptions {
5
5
  /**
6
6
  * The track type, used to map to a track factory.
@@ -1,8 +1,8 @@
1
- import type { SourceObjectTrackDeps, SourceObjectTrackLoadOptions } from '../track/source/SourceObjectTrack';
2
- import type { SourceTrackDeps, SourceTrackLoadOptions } from '../track/source/SourceTrack';
3
- import type { TrackFactory } from '../track/TrackFactory';
4
- import type { DashTrackFactoryDeps, DashTrackLoadOptions } from '../track/dash/DashTrack';
5
- import type { HlsTrackFactoryDeps, HlsTrackLoadOptions } from '../track/hls/HlsTrack';
1
+ import type { SourceObjectTrackDeps, SourceObjectTrackLoadOptions } from './source/SourceObjectTrack';
2
+ import type { SourceTrackDeps, SourceTrackLoadOptions } from './source/SourceTrack';
3
+ import type { TrackFactory } from './TrackFactory';
4
+ import type { DashTrackFactoryDeps, DashTrackLoadOptions } from './dash/DashTrack';
5
+ import type { HlsTrackFactoryDeps, HlsTrackLoadOptions } from './hls/HlsTrack';
6
6
  export interface VinylTrackFactoryDeps extends SourceTrackDeps, SourceObjectTrackDeps, DashTrackFactoryDeps, HlsTrackFactoryDeps {
7
7
  }
8
8
  export type VinylTrackLoadOptions = SourceObjectTrackLoadOptions | SourceTrackLoadOptions | DashTrackLoadOptions | HlsTrackLoadOptions;
@@ -1,4 +1,4 @@
1
- import type { DashManifestData, DashManifestProvider } from '../../track/dash/DashManifestProvider';
1
+ import type { DashManifestData, DashManifestProvider } from './DashManifestProvider';
2
2
  import type { ManifestController } from '../../streaming/ManifestController';
3
3
  export type DashManifestController = ManifestController<Promise<DashManifestData>>;
4
4
  export interface DashManifestControllerImplDeps {
@@ -1,12 +1,12 @@
1
- import type { TrackBaseOptions } from '../../track/TrackBase';
1
+ import type { TrackBaseOptions } from '../TrackBase';
2
2
  import type { DashManifestProvider, DashManifestData } from './DashManifestProvider';
3
3
  import type { DashManifestController } from './DashManifestController';
4
- import type { TrackFactory, TrackLoadOptions } from '../../track/TrackFactory';
4
+ import type { TrackFactory, TrackLoadOptions } from '../TrackFactory';
5
5
  import type { ObservableValue } from '@amazon/vinyl-observable';
6
6
  import type { Maybe, RequestInitOptions } from '@amazon/vinyl-util';
7
7
  import type { Factories } from '@amazon/vinyl-di';
8
- import type { DashMediaQualityMetadataResolver } from '../../track/dash/DashMediaQualityMetadataResolver';
9
- import type { MseTrackDeps } from '../../track/mse/MseTrack';
8
+ import type { DashMediaQualityMetadataResolver } from './DashMediaQualityMetadataResolver';
9
+ import type { MseTrackDeps } from '../mse/MseTrack';
10
10
  import type { MediaTimeline } from '../../streaming/MediaTimeline';
11
11
  export interface DashTrackLoadOptions extends TrackLoadOptions {
12
12
  readonly type: 'dash';
@@ -1,6 +1,6 @@
1
- import type { DashManifestData } from '../../track/dash/DashManifestProvider';
1
+ import type { DashManifestData } from './DashManifestProvider';
2
2
  import type { MediaTimeline } from '../../streaming/MediaTimeline';
3
- import type { DashSegmentProviderDeps } from '../../track/dash/timeline/DashRepresentationSegmentProvider';
3
+ import type { DashSegmentProviderDeps } from './timeline/DashRepresentationSegmentProvider';
4
4
  export type BuildDashMediaTimelineDeps = DashSegmentProviderDeps;
5
5
  /**
6
6
  * Builds a MediaTimeline from a Dash manifest.
@@ -1,5 +1,5 @@
1
- import type { DashManifestData } from '../../track/dash/DashManifestProvider';
2
- import type { DashMediaQualityMetadataResolver } from '../../track/dash/DashMediaQualityMetadataResolver';
1
+ import type { DashManifestData } from './DashManifestProvider';
2
+ import type { DashMediaQualityMetadataResolver } from './DashMediaQualityMetadataResolver';
3
3
  import type { ContentTypesValue } from '../../streaming/ContentTypesValue';
4
4
  import type { ObservableValue } from '@amazon/vinyl-observable';
5
5
  export interface DashContentTypesValueDeps {
@@ -1,12 +1,12 @@
1
- import type { DashTrackLoadOptions } from '../../track/dash/DashTrack';
1
+ import type { DashTrackLoadOptions } from './DashTrack';
2
2
  import type { Maybe, RequestInterceptor } from '@amazon/vinyl-util';
3
- import { createDefaultDashManifestTransformer } from '../../track/dash/createDefaultDashManifestTransformer';
3
+ import { createDefaultDashManifestTransformer } from './createDefaultDashManifestTransformer';
4
4
  import { createMediaSource } from '../../util/media/mediaSource';
5
- import type { DashMediaQualityMetadataResolverDeps } from '../../track/dash/DashMediaQualityMetadataResolver';
5
+ import type { DashMediaQualityMetadataResolverDeps } from './DashMediaQualityMetadataResolver';
6
6
  import type { MediaSourceControllerImplDeps } from '../../streaming/buffering/MediaSourceController';
7
7
  import { MediaSourceControllerImpl } from '../../streaming/buffering/MediaSourceController';
8
8
  import type { PlaybackController } from '../../playback/PlaybackController';
9
- import type { DashManifestController, DashManifestControllerImplDeps } from '../../track/dash/DashManifestController';
9
+ import type { DashManifestController, DashManifestControllerImplDeps } from './DashManifestController';
10
10
  import type { DrmKeySystemResolver } from '../../drm/DrmKeySystemResolver';
11
11
  import type { DrmController } from '../../drm/DrmController';
12
12
  import type { Capabilities } from '../../client/Capabilities';
@@ -15,12 +15,12 @@ import { QualitySelectorImpl } from '../../streaming/abr/QualitySelectorImpl';
15
15
  import type { PlaybackSource } from '../../playback/PlaybackSource';
16
16
  import { createContentStreamFactory } from '../../streaming/ContentStream';
17
17
  import type { ContentStreamingOptions } from '../../streaming/ContentStreamingOptions';
18
- import { createDashContentTypesValue } from '../../track/dash/createDashContentTypesValue';
18
+ import { createDashContentTypesValue } from './createDashContentTypesValue';
19
19
  import type { ObservableValue } from '@amazon/vinyl-observable';
20
20
  import type { VinylOptions } from '../../vinyl/VinylOptions';
21
- import type { BuildDashMediaTimelineDeps } from '../../track/dash/buildDashMediaTimeline';
21
+ import type { BuildDashMediaTimelineDeps } from './buildDashMediaTimeline';
22
22
  import { createDefaultMediaTimelineTransformer } from '../../streaming/createDefaultMediaTimelineTransformer';
23
- import type { DashManifestData } from '../../track/dash/DashManifestProvider';
23
+ import type { DashManifestData } from './DashManifestProvider';
24
24
  /**
25
25
  * Player-level dependencies needed for the Dash-specific factories.
26
26
  */
@@ -45,20 +45,20 @@ export type DashInitOptions = {
45
45
  */
46
46
  export declare function createDashFactories(options: Maybe<DashInitOptions>): (deps: DashFactoryDeps) => (loadOptions: DashTrackLoadOptions) => {
47
47
  contentTypesValue: typeof createDashContentTypesValue;
48
- baseUrlSelector: () => import("../../track/dash/util/uriResolution").BaseUrlSelector;
48
+ baseUrlSelector: () => import("./util/uriResolution").BaseUrlSelector;
49
49
  segmentRequestInit: () => Maybe<Readonly<Omit<RequestInit, "signal">>>;
50
50
  manifestProvider: (deps: {
51
51
  readonly requestInterceptor: RequestInterceptor;
52
- }) => import("../../track/dash/DashManifestProvider").DashManifestProvider;
52
+ }) => import("./DashManifestProvider").DashManifestProvider;
53
53
  manifestController: (deps: DashManifestControllerImplDeps) => DashManifestController;
54
54
  mediaSourceFactory: () => typeof createMediaSource;
55
- mediaQualityMetadataResolver: (deps: DashMediaQualityMetadataResolverDeps) => import("../../track/dash/DashMediaQualityMetadataResolver").DashMediaQualityMetadataResolver;
55
+ mediaQualityMetadataResolver: (deps: DashMediaQualityMetadataResolverDeps) => import("./DashMediaQualityMetadataResolver").DashMediaQualityMetadataResolver;
56
56
  mediaSourceController: (deps: MediaSourceControllerImplDeps) => MediaSourceControllerImpl;
57
- createContentStreamFactories: (deps: import("../../track/dash/createDashContentStreamFactories").DashContentStreamTrackDeps) => import("@amazon/vinyl-util").MemoizedFunction & ((contentType: import("../..").ContentType) => {
57
+ createContentStreamFactories: (deps: import("./createDashContentStreamFactories").DashContentStreamTrackDeps) => import("@amazon/vinyl-util").MemoizedFunction & ((contentType: import("../..").ContentType) => {
58
58
  sourceBufferControllerFactory: (deps: import("../..").SourceBufferControllerImplDeps) => () => import("../..").SourceBufferControllerImpl;
59
59
  bufferingController: (deps: import("../..").BufferingControllerImplDeps) => import("../..").BufferingControllerImpl;
60
60
  segmentController: (deps: import("../..").SegmentControllerImplDeps) => import("../..").SegmentControllerImpl;
61
- mediaSourceController: import("@amazon/vinyl-di").Factory<import("../../streaming/buffering/MediaSourceController").MediaSourceController>;
61
+ mediaSourceController: import("@amazon/vinyl-di").Factory<import("../..").MediaSourceController>;
62
62
  playbackController: import("@amazon/vinyl-di").Factory<PlaybackController>;
63
63
  mediaTimelineTransformed: import("@amazon/vinyl-di").Factory<ObservableValue<Promise<import("../..").MediaTimeline>>>;
64
64
  qualitySelector: import("@amazon/vinyl-di").Factory<import("../..").QualitySelector>;
@@ -1,4 +1,4 @@
1
- import type { DashTrackLoadOptions } from '../../track/dash/DashTrack';
1
+ import type { DashTrackLoadOptions } from './DashTrack';
2
2
  import type { RequestInterceptor } from '@amazon/vinyl-util';
3
3
  /**
4
4
  * Creates a DashManifestProvider which uses the manifestProvider set on the loadOptions, or a urlDashManifestProvider
@@ -1,5 +1,5 @@
1
1
  import type { ObservableValue } from '@amazon/vinyl-observable';
2
- import type { DashManifestData } from '../../track/dash/DashManifestProvider';
2
+ import type { DashManifestData } from './DashManifestProvider';
3
3
  import type { AdaptationSetType, RepresentationType } from '@amazon/vinyl-mpd-parser';
4
4
  import type { Comparator } from '@amazon/vinyl-util';
5
5
  export interface DashManifestTransformerDeps {
@@ -1,5 +1,5 @@
1
1
  import type { AdaptationSetType, DashManifest, RepresentationType } from '@amazon/vinyl-mpd-parser';
2
- import type { DashManifestData } from '../../track/dash/DashManifestProvider';
2
+ import type { DashManifestData } from './DashManifestProvider';
3
3
  import type { ObservableValue } from '@amazon/vinyl-observable';
4
4
  import type { Comparator, FilterPredicate, MaybePromise } from '@amazon/vinyl-util';
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  import type { RepresentationType } from '@amazon/vinyl-mpd-parser';
2
- import type { DashUriResolveDeps } from '../../../track/dash/util/uriResolution';
3
- import type { CreateSegmentDataProviderDeps } from '../../../track/createSegmentDataProvider';
2
+ import type { DashUriResolveDeps } from '../util/uriResolution';
3
+ import type { CreateSegmentDataProviderDeps } from '../../createSegmentDataProvider';
4
4
  import type { SegmentReference } from '../../../streaming/SegmentReference';
5
5
  import type { SegmentDataProvider } from '../../../streaming/SegmentDataSlot';
6
- import type { DashMediaQualityMetadataResolver } from '../../../track/dash/DashMediaQualityMetadataResolver';
6
+ import type { DashMediaQualityMetadataResolver } from '../DashMediaQualityMetadataResolver';
7
7
  export interface DashSegmentProviderDeps extends DashUriResolveDeps, CreateSegmentDataProviderDeps {
8
8
  /**
9
9
  * Produces abstract metadata from a dash representation.
@@ -1,7 +1,7 @@
1
1
  import type { Maybe } from '@amazon/vinyl-util';
2
2
  import type { RequestInitOptions } from '@amazon/vinyl-util';
3
3
  import type { RequestInterceptor } from '@amazon/vinyl-util';
4
- import type { DashManifestProvider } from '../../track/dash/DashManifestProvider';
4
+ import type { DashManifestProvider } from './DashManifestProvider';
5
5
  /**
6
6
  * Creates a DashManifestProvider which performs a request to retrieve a dash manifest.
7
7
  * Can be a relative path.
@@ -74,7 +74,8 @@ export declare function getPeriodAtTime(manifest: DashManifest, time: number): P
74
74
  export declare function flattenRepresentations(period: PeriodType): RepresentationType[];
75
75
  /**
76
76
  * Calculates the manifest duration, either from the mediaPresentationDuration or the last period end time.
77
- * @param manifest
77
+ * Returns `Infinity` for live (dynamic) presentations.
78
+ * Throws if duration cannot be determined.
78
79
  */
79
- export declare function calculateDuration(manifest: DashManifest): number | null;
80
+ export declare function calculateDuration(manifest: DashManifest): number;
80
81
  //# sourceMappingURL=mpd.d.ts.map
@@ -1,7 +1,7 @@
1
- import type { HlsManifestData } from '../../track/hls/HlsManifestProvider';
2
- import type { HlsMediaQualityMetadataResolver } from '../../track/hls/HlsMediaQualityMetadataResolver';
1
+ import type { HlsManifestData } from './HlsManifestProvider';
2
+ import type { HlsMediaQualityMetadataResolver } from './HlsMediaQualityMetadataResolver';
3
3
  import type { MediaTimeline } from '../../streaming/MediaTimeline';
4
- import type { CreateSegmentDataProviderDeps } from '../../track/createSegmentDataProvider';
4
+ import type { CreateSegmentDataProviderDeps } from '../createSegmentDataProvider';
5
5
  export interface BuildHlsMediaTimelineDeps extends CreateSegmentDataProviderDeps {
6
6
  readonly mediaQualityMetadataResolver: HlsMediaQualityMetadataResolver;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import type { ObservableValue } from '@amazon/vinyl-observable';
2
- import type { HlsManifestData } from '../../track/hls/HlsManifestProvider';
2
+ import type { HlsManifestData } from './HlsManifestProvider';
3
3
  export interface HlsManifestTransformerDeps {
4
4
  readonly manifestController: ObservableValue<Promise<HlsManifestData>>;
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import type { HlsSegment } from '@amazon/vinyl-hls-parser';
2
2
  import type { MediaSegmentReference } from '../../../streaming/SegmentReference';
3
3
  import type { SegmentDataProvider } from '../../../streaming/SegmentDataSlot';
4
- import type { CreateSegmentDataProviderDeps } from '../../../track/createSegmentDataProvider';
4
+ import type { CreateSegmentDataProviderDeps } from '../../createSegmentDataProvider';
5
5
  /**
6
6
  * Builds a timeline of MediaSegmentReferences from an HLS media playlist's
7
7
  * segment list. Cumulative durations are used to compute start/end times.
@@ -1,7 +1,7 @@
1
- import type { TrackBaseDeps, TrackBaseOptions } from '../../track/TrackBase';
2
- import { TrackBase } from '../../track/TrackBase';
1
+ import type { TrackBaseDeps, TrackBaseOptions } from '../TrackBase';
2
+ import { TrackBase } from '../TrackBase';
3
3
  import type { ReadonlyRanges, ReadonlySet } from '@amazon/vinyl-util';
4
- import type { TrackPreloadOptions, TrackTypeId, TrackUri } from '../../track/Track';
4
+ import type { TrackPreloadOptions, TrackTypeId, TrackUri } from '../Track';
5
5
  import type { ContentType, MediaQualityMetadata } from '../../streaming/MediaQualityMetadata';
6
6
  import type { Factories } from '@amazon/vinyl-di';
7
7
  import type { ContentStream } from '../../streaming/ContentStream';
@@ -1,4 +1,4 @@
1
- import type { TrackEventMap } from '../../track/Track';
1
+ import type { TrackEventMap } from '../Track';
2
2
  import type { ReadonlySet } from '@amazon/vinyl-util';
3
3
  import { EventHostImpl } from '@amazon/vinyl-util';
4
4
  import type { PlaybackController } from '../../playback/PlaybackController';
@@ -1,10 +1,10 @@
1
1
  import type { PlaybackSource } from '../../playback/PlaybackSource';
2
- import type { TrackTypeId, TrackUri } from '../../track/Track';
3
- import type { TrackBaseDeps } from '../../track/TrackBase';
4
- import type { TrackFactory, TrackLoadOptions } from '../../track/TrackFactory';
2
+ import type { TrackTypeId, TrackUri } from '../Track';
3
+ import type { TrackBaseDeps } from '../TrackBase';
4
+ import type { TrackFactory, TrackLoadOptions } from '../TrackFactory';
5
5
  import type { Maybe } from '@amazon/vinyl-util';
6
- import type { SourceTrackBaseOptions } from '../../track/source/SourceTrackBase';
7
- import { SourceTrackBase } from '../../track/source/SourceTrackBase';
6
+ import type { SourceTrackBaseOptions } from './SourceTrackBase';
7
+ import { SourceTrackBase } from './SourceTrackBase';
8
8
  /**
9
9
  * Dependencies for a SourceObjectTrack.
10
10
  */
@@ -1,9 +1,9 @@
1
- import type { TrackTypeId, TrackUri } from '../../track/Track';
2
- import type { TrackBaseDeps } from '../../track/TrackBase';
3
- import type { TrackFactory, TrackLoadOptions } from '../../track/TrackFactory';
1
+ import type { TrackTypeId, TrackUri } from '../Track';
2
+ import type { TrackBaseDeps } from '../TrackBase';
3
+ import type { TrackFactory, TrackLoadOptions } from '../TrackFactory';
4
4
  import type { Maybe } from '@amazon/vinyl-util';
5
- import type { SourceTrackBaseOptions } from '../../track/source/SourceTrackBase';
6
- import { SourceTrackBase } from '../../track/source/SourceTrackBase';
5
+ import type { SourceTrackBaseOptions } from './SourceTrackBase';
6
+ import { SourceTrackBase } from './SourceTrackBase';
7
7
  import type { PlaybackSource } from '../../playback/PlaybackSource';
8
8
  /**
9
9
  * Dependencies for a SourceTrack.
@@ -1,6 +1,6 @@
1
- import type { TrackBaseDeps, TrackBaseOptions } from '../../track/TrackBase';
2
- import { TrackBase } from '../../track/TrackBase';
3
- import type { TrackEventMap, TrackPreloadOptions, TrackTypeId, TrackUri } from '../../track/Track';
1
+ import type { TrackBaseDeps, TrackBaseOptions } from '../TrackBase';
2
+ import { TrackBase } from '../TrackBase';
3
+ import type { TrackEventMap, TrackPreloadOptions, TrackTypeId, TrackUri } from '../Track';
4
4
  import type { Maybe, ReadonlySet } from '@amazon/vinyl-util';
5
5
  import type { ContentType, MediaQualityMetadata } from '../../streaming/MediaQualityMetadata';
6
6
  import type { ObjectSchema } from '@amazon/vinyl-validation';
@@ -7,7 +7,7 @@ import type { TrackLoadOptions } from '../track/TrackFactory';
7
7
  import type { DrmController } from '../drm/DrmController';
8
8
  import type { AutoResetController } from '../track/AutoResetController';
9
9
  import type { MutableValue } from '@amazon/vinyl-observable';
10
- import type { VinylOptions } from '../vinyl/VinylOptions';
10
+ import type { VinylOptions } from './VinylOptions';
11
11
  export interface VinylDeps<TrackLoadOptionsType extends TrackLoadOptions = VinylTrackLoadOptions, OptionsType = VinylOptions> {
12
12
  /**
13
13
  * A mutable provider for configuration options.
@@ -12,14 +12,28 @@ import type { DefaultVinylFactories, InferVinylOverrideDependencyType, VinylDepe
12
12
  import type { VinylDeps } from './VinylDeps';
13
13
  import type { Capabilities } from '../client/Capabilities';
14
14
  import type { ContentType, MediaQualityMetadata } from '../streaming/MediaQualityMetadata';
15
- import type { ReadonlyPlaybackStreamingState } from '../vinyl/ReadonlyPlaybackStreamingState';
15
+ import type { ReadonlyPlaybackStreamingState } from './ReadonlyPlaybackStreamingState';
16
16
  import type { StreamingEventMap } from '../streaming/StreamingEventMap';
17
17
  import type { InferObservableValueType } from '@amazon/vinyl-observable';
18
- import type { VinylOptions } from '../vinyl/VinylOptions';
18
+ import type { VinylOptions } from './VinylOptions';
19
+ import type { ChangeEvent } from '../event/ChangeEvent';
19
20
  /**
20
21
  * Events the Vinyl Player emits.
21
22
  */
22
23
  export interface VinylPlayerEventMap<TrackLoadOptionsType extends TrackLoadOptions = VinylTrackLoadOptions> extends PlaybackControllerEventMap, TrackControllerEventMap<TrackLoadOptionsType>, StreamingEventMap {
24
+ /**
25
+ * Dispatched when {@link VinylPlayer.resetPending} changes.
26
+ *
27
+ * `current` is true when the player has hit a transient, potentially
28
+ * recoverable error (e.g. a network outage) and an automatic reset
29
+ * attempt is scheduled. `current` is false once the pending reset is
30
+ * emitted, the error is cleared, or all retries are exhausted.
31
+ *
32
+ * If `resetPending` becomes false while {@link VinylPlayer.error} is
33
+ * still non-null, all automatic reset attempts have been exhausted
34
+ * and playback will not recover without user action.
35
+ */
36
+ readonly resetPendingChange: ChangeEvent<boolean>;
23
37
  }
24
38
  /**
25
39
  * A Vinyl Media Player.
@@ -33,6 +47,7 @@ export declare class VinylPlayer<TrackLoadOptionsType extends TrackLoadOptions =
33
47
  private get drmController();
34
48
  private get playbackController();
35
49
  private get trackController();
50
+ private get autoResetController();
36
51
  /**
37
52
  * Provides information about the client, such as device and browser capabilities.
38
53
  */
@@ -75,6 +90,7 @@ export declare class VinylPlayer<TrackLoadOptionsType extends TrackLoadOptions =
75
90
  get duration(): number;
76
91
  get ended(): boolean;
77
92
  get error(): (Error | null);
93
+ get resetPending(): boolean;
78
94
  get hasMetadata(): boolean;
79
95
  get loop(): boolean;
80
96
  set loop(value: boolean);
@@ -20,7 +20,7 @@ import type { AutoResetControllerImplDeps, AutoResetControllerImplOptions } from
20
20
  import { AutoResetControllerImpl } from '../track/AutoResetController';
21
21
  import type { Dependencies, Factories } from '@amazon/vinyl-di';
22
22
  import type { ContentStreamingOptions } from '../streaming/ContentStreamingOptions';
23
- import type { VinylOptions } from '../vinyl/VinylOptions';
23
+ import type { VinylOptions } from './VinylOptions';
24
24
  import type { ObservableValue } from '@amazon/vinyl-observable';
25
25
  /**
26
26
  * Configuration used by the default dependency factories for Vinyl.
@@ -83,15 +83,13 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
83
83
  }) => LoudnessNormalizationControllerImpl;
84
84
  capabilities: (deps: CapabilitiesImplDeps) => CapabilitiesImpl;
85
85
  requestInterceptor: () => typeof noop;
86
- trackFactory: (deps: VinylTrackFactoryDeps) => import("../track/TrackFactory").TrackFactory<import("..").SourceObjectTrackLoadOptions | import("..").SourceTrackLoadOptions | import("..").DashTrackLoadOptions | import("..").HlsTrackLoadOptions>;
86
+ trackFactory: (deps: VinylTrackFactoryDeps) => import("..").TrackFactory<import("..").SourceObjectTrackLoadOptions | import("..").SourceTrackLoadOptions | import("..").DashTrackLoadOptions | import("..").HlsTrackLoadOptions>;
87
87
  trackController: (deps: TrackControllerImplDeps<any>) => TrackControllerImpl<any>;
88
- drmKeySystemResolver: () => import("../drm/DrmKeySystemResolver").DrmKeySystemResolver;
88
+ drmKeySystemResolver: () => import("..").DrmKeySystemResolver;
89
89
  drmController: (deps: DrmControllerImplDeps) => DrmControllerImpl;
90
90
  commonEme: typeof commonEmeFactory;
91
91
  autoResetController: (deps: AutoResetControllerImplDeps) => AutoResetControllerImpl;
92
- createDashFactories: (deps: import("../track/dash/createDashFactories").DashFactoryDeps) => (/**
93
- * Configuration for segmented streaming tracks (hls / dash).
94
- */ loadOptions: import("..").DashTrackLoadOptions) => {
92
+ createDashFactories: (deps: import("..").DashFactoryDeps) => (loadOptions: import("..").DashTrackLoadOptions) => {
95
93
  contentTypesValue: typeof import("..").createDashContentTypesValue;
96
94
  baseUrlSelector: () => import("..").BaseUrlSelector;
97
95
  segmentRequestInit: () => import("@amazon/vinyl-util").Maybe<Readonly<Omit<RequestInit, "signal">>>;
@@ -114,7 +112,7 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
114
112
  contentStreamFactory: typeof import("..").createContentStreamFactory;
115
113
  qualitySelector: (deps: {
116
114
  options: ObservableValue<Pick<VinylOptions, "abr">>;
117
- }) => import("../streaming/abr/QualitySelectorImpl").QualitySelectorImpl;
115
+ }) => import("..").QualitySelectorImpl;
118
116
  manifestTransformed: typeof import("..").createDefaultDashManifestTransformer;
119
117
  mediaTimeline: (deps: import("..").BuildDashMediaTimelineDeps & {
120
118
  readonly manifestTransformed: ObservableValue<Promise<import("..").DashManifestData>>;
@@ -126,12 +124,12 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
126
124
  }>>;
127
125
  playbackController: import("@amazon/vinyl-di").Factory<import("..").PlaybackController>;
128
126
  playbackSource: import("@amazon/vinyl-di").Factory<import("..").PlaybackSource>;
129
- drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("../drm/DrmKeySystemResolver").DrmKeySystemResolver>;
127
+ drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("..").DrmKeySystemResolver>;
130
128
  requestInterceptor: import("@amazon/vinyl-di").Factory<import("@amazon/vinyl-util").RequestInterceptor>;
131
129
  drmController: import("@amazon/vinyl-di").Factory<import("..").DrmController>;
132
130
  capabilities: import("@amazon/vinyl-di").Factory<import("..").Capabilities>;
133
131
  };
134
- createHlsFactories: (deps: import("../track/hls/createHlsFactories").HlsFactoryDeps) => (loadOptions: import("..").HlsTrackLoadOptions) => {
132
+ createHlsFactories: (deps: import("..").HlsFactoryDeps) => (loadOptions: import("..").HlsTrackLoadOptions) => {
135
133
  contentTypesValue: typeof import("..").createHlsContentTypesValue;
136
134
  manifestController: () => import("..").HlsManifestControllerImpl;
137
135
  manifestTransformed: typeof import("..").createDefaultHlsManifestTransformer;
@@ -151,7 +149,7 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
151
149
  contentStreamFactory: typeof import("..").createContentStreamFactory;
152
150
  qualitySelector: (deps: {
153
151
  options: ObservableValue<Pick<VinylOptions, "abr">>;
154
- }) => import("../streaming/abr/QualitySelectorImpl").QualitySelectorImpl;
152
+ }) => import("..").QualitySelectorImpl;
155
153
  mediaTimeline: (deps: import("..").BuildHlsMediaTimelineDeps & {
156
154
  readonly manifestTransformed: ObservableValue<Promise<import("..").HlsManifestData>>;
157
155
  }) => ObservableValue<Promise<import("..").MediaTimeline>>;
@@ -162,7 +160,7 @@ export declare function createVinylFactories(options: VinylDependencyOptions): {
162
160
  }>>;
163
161
  playbackController: import("@amazon/vinyl-di").Factory<import("..").PlaybackController>;
164
162
  playbackSource: import("@amazon/vinyl-di").Factory<import("..").PlaybackSource>;
165
- drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("../drm/DrmKeySystemResolver").DrmKeySystemResolver>;
163
+ drmKeySystemResolver: import("@amazon/vinyl-di").Factory<import("..").DrmKeySystemResolver>;
166
164
  requestInterceptor: import("@amazon/vinyl-di").Factory<import("@amazon/vinyl-util").RequestInterceptor>;
167
165
  drmController: import("@amazon/vinyl-di").Factory<import("..").DrmController>;
168
166
  capabilities: import("@amazon/vinyl-di").Factory<import("..").Capabilities>;
@@ -1,9 +1,9 @@
1
1
  import { type AnyRecord, type Maybe, type ReadonlyAbort, type ReadonlyEventHost } from '@amazon/vinyl-util';
2
2
  import type { DrmInitDataType } from '../streaming/DrmInitDataType';
3
- import type { DrmKeySystem } from '../drm/DrmKeySystem';
3
+ import type { DrmKeySystem } from './DrmKeySystem';
4
4
  import type { MediaFormatMetadata } from '../streaming/MediaQualityMetadata';
5
5
  import type { BasicErrorEvent } from '../event/BasicErrorEvent';
6
- import type { DrmOptions } from '../drm/DrmOptions';
6
+ import type { DrmOptions } from './DrmOptions';
7
7
  export interface DrmControllerEventMap {
8
8
  /**
9
9
  * A DRM error occurred.
@@ -1,7 +1,7 @@
1
1
  import { EventHostImpl, type Maybe, type ReadonlyAbort } from '@amazon/vinyl-util';
2
- import { type DrmOptions } from '../drm/DrmOptions';
3
- import type { DrmController, DrmControllerEventMap, DrmKeySystemSupport } from '../drm/DrmController';
4
- import type { CommonEme, CommonMediaKeyMessageEvent, CommonMediaKeys, CommonMediaKeySession } from '../drm/commonEme/CommonEme';
2
+ import { type DrmOptions } from './DrmOptions';
3
+ import type { DrmController, DrmControllerEventMap, DrmKeySystemSupport } from './DrmController';
4
+ import type { CommonEme, CommonMediaKeyMessageEvent, CommonMediaKeys, CommonMediaKeySession } from './commonEme/CommonEme';
5
5
  import type { MediaFormatMetadata } from '../streaming/MediaQualityMetadata';
6
6
  /**
7
7
  * The number of seconds a license request will be allowed before timing out.
@@ -1,5 +1,5 @@
1
1
  import { type ReadonlyRecord } from '@amazon/vinyl-util';
2
- import { DrmKeySystem } from '../drm/DrmKeySystem';
2
+ import { DrmKeySystem } from './DrmKeySystem';
3
3
  /**
4
4
  * Given a ContentProtection schemeIdUri, returns the {@link DrmKeySystem} it represents.
5
5
  * Not all scheme ids will match to a DrmKeySystem. If none are matched, null is returned.
@@ -3,7 +3,7 @@ import type { DrmInitDataType } from '../streaming/DrmInitDataType';
3
3
  import type { MediaFormatMetadata } from '../streaming/MediaQualityMetadata';
4
4
  import { type ObjectSchema, type ValueSchema } from '@amazon/vinyl-validation';
5
5
  import { DrmKeySystem } from './DrmKeySystem';
6
- import { type LicenseProvider, type LicenseServerOptions } from '../drm/licenseProvider/LicenseProvider';
6
+ import { type LicenseProvider, type LicenseServerOptions } from './licenseProvider/LicenseProvider';
7
7
  /**
8
8
  * DrmRobustness is the requested security level for audio or video decryption.
9
9
  */
@@ -2,10 +2,10 @@
2
2
  * An common interface to unify multiple EME implementations.
3
3
  * @module
4
4
  */
5
- import type { DrmKeySystem } from '../../drm/DrmKeySystem';
5
+ import type { DrmKeySystem } from '../DrmKeySystem';
6
6
  import type { Json, ReadonlyEventHost, Unsubscribe } from '@amazon/vinyl-util';
7
7
  import { ReportableError } from '@amazon/vinyl-util';
8
- import type { EncryptedInitData } from '../../drm/commonEme/EncryptedInitData';
8
+ import type { EncryptedInitData } from './EncryptedInitData';
9
9
  import type { DrmInitDataType } from '../../streaming/DrmInitDataType';
10
10
  import type { BasicErrorEvent } from '../../event/BasicErrorEvent';
11
11
  /**
@@ -1,4 +1,4 @@
1
- import type { CommonEme } from '../../drm/commonEme/CommonEme';
1
+ import type { CommonEme } from './CommonEme';
2
2
  /**
3
3
  * Common EME Factory provides the first supported implementation of CommonEme.
4
4
  * The priority is WebKit, Standard, then MS.
@@ -1,6 +1,6 @@
1
1
  import { type Disposable, EventHostImpl, type Unsubscribe } from '@amazon/vinyl-util';
2
2
  import { type CommonEme, type CommonMediaKeys, type CommonMediaKeySession, type CommonMediaKeySessionEventMap, type CommonMediaKeySystemAccess, MediaKeySessionErrorType } from './CommonEme';
3
- import type { DrmKeySystem } from '../../drm/DrmKeySystem';
3
+ import type { DrmKeySystem } from '../DrmKeySystem';
4
4
  import { type EncryptedInitData } from './EncryptedInitData';
5
5
  import type { DrmInitDataType } from '../../streaming/DrmInitDataType';
6
6
  declare global {
@@ -1,6 +1,6 @@
1
1
  import { type Disposable, EventHostImpl, type Unsubscribe } from '@amazon/vinyl-util';
2
2
  import type { CommonEme, CommonMediaEncryptedEvent, CommonMediaKeys, CommonMediaKeySession, CommonMediaKeySessionEventMap, CommonMediaKeySystemAccess } from './CommonEme';
3
- import type { DrmKeySystem } from '../../drm/DrmKeySystem';
3
+ import type { DrmKeySystem } from '../DrmKeySystem';
4
4
  import { type EncryptedInitData } from './EncryptedInitData';
5
5
  import type { DrmInitDataType } from '../../streaming/DrmInitDataType';
6
6
  /**