react-native-theoplayer 1.8.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1364) hide show
  1. package/CHANGELOG.md +248 -0
  2. package/README.md +7 -2
  3. package/android/build.gradle +46 -24
  4. package/android/local/com/theoplayer/android-connector/mediasession/4.11.0-local/mediasession-4.11.0-local.aar +0 -0
  5. package/android/local/com/theoplayer/android-connector/mediasession/4.11.0-local/mediasession-4.11.0-local.pom +15 -0
  6. package/android/local/com/theoplayer/android-connector/mediasession/maven-metadata-local.xml +13 -0
  7. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.8.0/ads-wrapper-4.8.0.aar +0 -0
  8. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.8.0/ads-wrapper-4.8.0.pom +9 -0
  9. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/maven-metadata-local.xml +4 -4
  10. package/android/src/main/AndroidManifest.xml +46 -1
  11. package/android/src/main/java/com/theoplayer/PlayerConfigAdapter.kt +3 -1
  12. package/android/src/main/java/com/theoplayer/PlayerEventEmitter.kt +223 -181
  13. package/android/src/main/java/com/theoplayer/ReactTHEOplayerContext.kt +301 -0
  14. package/android/src/main/java/com/theoplayer/ReactTHEOplayerPackage.kt +2 -0
  15. package/android/src/main/java/com/theoplayer/ReactTHEOplayerView.kt +77 -381
  16. package/android/src/main/java/com/theoplayer/ReactTHEOplayerViewManager.kt +5 -78
  17. package/android/src/main/java/com/theoplayer/ads/AdsModule.kt +4 -4
  18. package/android/src/main/java/com/theoplayer/audio/AudioBecomingNoisyManager.kt +32 -0
  19. package/android/src/main/java/com/theoplayer/audio/BackgroundAudioConfig.kt +17 -0
  20. package/android/src/main/java/com/theoplayer/audio/BackgroundAudioConfigAdapter.kt +19 -0
  21. package/android/src/main/java/com/theoplayer/audio/MediaNotificationBuilder.kt +194 -0
  22. package/android/src/main/java/com/theoplayer/audio/MediaPlaybackService.kt +278 -0
  23. package/android/src/main/java/com/theoplayer/cast/CastModule.kt +11 -6
  24. package/android/src/main/java/com/theoplayer/drm/ContentProtectionModule.kt +8 -2
  25. package/android/src/main/java/com/theoplayer/player/PlayerModule.kt +178 -0
  26. package/android/src/main/java/com/theoplayer/presentation/PipConfig.kt +10 -0
  27. package/android/src/main/java/com/theoplayer/presentation/PipConfigAdapter.kt +14 -0
  28. package/android/src/main/java/com/theoplayer/presentation/PresentationManager.kt +249 -0
  29. package/android/src/main/java/com/theoplayer/presentation/PresentationModeChangeContext.kt +17 -0
  30. package/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +6 -2
  31. package/android/src/main/java/com/theoplayer/track/QualityListAdapter.kt +8 -0
  32. package/android/src/main/java/com/theoplayer/track/TextTrackCueEventType.kt +3 -1
  33. package/android/src/main/java/com/theoplayer/track/TrackListAdapter.kt +22 -49
  34. package/android/src/main/java/com/theoplayer/util/PayloadBuilder.kt +242 -0
  35. package/android/src/main/java/com/theoplayer/util/ViewResolver.kt +3 -4
  36. package/android/src/main/res/drawable/ic_close.xml +13 -0
  37. package/android/src/main/res/drawable/ic_notification_small.xml +9 -0
  38. package/android/src/main/res/drawable/ic_pause.xml +13 -0
  39. package/android/src/main/res/drawable/ic_play.xml +13 -0
  40. package/android/src/main/res/values/colors.xml +4 -0
  41. package/android/src/main/res/values/strings.xml +9 -0
  42. package/ios/THEOplayerRCTBridge.m +60 -12
  43. package/ios/THEOplayerRCTDebug.swift +13 -1
  44. package/ios/THEOplayerRCTMainEventHandler.swift +101 -49
  45. package/ios/THEOplayerRCTPlayerAPI.swift +240 -0
  46. package/ios/THEOplayerRCTPresentationModeContext.swift +29 -0
  47. package/ios/THEOplayerRCTTextTrackEventHandler.swift +39 -3
  48. package/ios/THEOplayerRCTTrackEventTypes.swift +2 -0
  49. package/ios/THEOplayerRCTTrackMetadataAggregator.swift +9 -6
  50. package/ios/THEOplayerRCTTypeUtils.swift +42 -0
  51. package/ios/THEOplayerRCTView.swift +130 -288
  52. package/ios/THEOplayerRCTViewManager.swift +1 -1
  53. package/ios/ads/THEOplayerRCTAdAggregator.swift +1 -1
  54. package/ios/ads/THEOplayerRCTAdsAPI.swift +4 -2
  55. package/ios/ads/THEOplayerRCTAdsEventHandler.swift +2 -2
  56. package/ios/ads/THEOplayerRCTSourceDescriptionBuilder+Ads.swift +2 -2
  57. package/ios/ads/THEOplayerRCTView+Ads.swift +14 -1
  58. package/ios/ads/THEOplayerRCTView+AdsConfig.swift +8 -7
  59. package/ios/backgroundAudio/THEOplayerRCTNowPlayingManager.swift +254 -0
  60. package/ios/backgroundAudio/THEOplayerRCTRemoteCommandsManager.swift +238 -0
  61. package/ios/backgroundAudio/THEOplayerRCTView+BackgroundAudioConfig.swift +33 -0
  62. package/ios/casting/THEOplayerRCTCastAPI+Chromecast.swift +1 -1
  63. package/ios/casting/THEOplayerRCTCastEventHandler.swift +2 -2
  64. package/ios/casting/THEOplayerRCTView+Casting.swift +15 -0
  65. package/ios/contentprotection/THEOplayerRCTProxyContentProtectionIntegration.swift +66 -46
  66. package/ios/pip/THEOplayerRCTPipControlsManager.swift +145 -0
  67. package/ios/pip/THEOplayerRCTView+PipConfig.swift +56 -0
  68. package/ios/theofeatures.sh +16 -0
  69. package/lib/commonjs/api/THEOplayerView.js.map +1 -1
  70. package/lib/commonjs/api/abr/barrel.js +0 -2
  71. package/lib/commonjs/api/abr/barrel.js.map +1 -1
  72. package/lib/commonjs/api/ads/barrel.js +0 -16
  73. package/lib/commonjs/api/ads/barrel.js.map +1 -1
  74. package/lib/commonjs/api/backgroundAudio/BackgroundAudioConfiguration.js +2 -0
  75. package/lib/commonjs/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -0
  76. package/lib/commonjs/api/backgroundAudio/barrel.js +17 -0
  77. package/lib/commonjs/api/backgroundAudio/barrel.js.map +1 -0
  78. package/lib/commonjs/api/barrel.js +52 -32
  79. package/lib/commonjs/api/barrel.js.map +1 -1
  80. package/lib/commonjs/api/cast/Airplay.js.map +1 -1
  81. package/lib/commonjs/api/cast/CastAPI.js.map +1 -1
  82. package/lib/commonjs/api/cast/CastState.js +22 -0
  83. package/lib/commonjs/api/cast/CastState.js.map +1 -1
  84. package/lib/commonjs/api/cast/Chromecast.js.map +1 -1
  85. package/lib/commonjs/api/cast/barrel.js +0 -10
  86. package/lib/commonjs/api/cast/barrel.js.map +1 -1
  87. package/lib/commonjs/api/config/PlayerConfiguration.js.map +1 -1
  88. package/lib/commonjs/api/config/barrel.js +0 -2
  89. package/lib/commonjs/api/config/barrel.js.map +1 -1
  90. package/lib/commonjs/api/drm/barrel.js +0 -10
  91. package/lib/commonjs/api/drm/barrel.js.map +1 -1
  92. package/lib/commonjs/api/error/barrel.js +0 -4
  93. package/lib/commonjs/api/error/barrel.js.map +1 -1
  94. package/lib/commonjs/api/event/AdEvent.js +24 -83
  95. package/lib/commonjs/api/event/AdEvent.js.map +1 -1
  96. package/lib/commonjs/api/event/CastEvent.js +8 -15
  97. package/lib/commonjs/api/event/CastEvent.js.map +1 -1
  98. package/lib/commonjs/api/event/Event.js +2 -0
  99. package/lib/commonjs/api/event/Event.js.map +1 -0
  100. package/lib/commonjs/api/event/EventDispatcher.js +6 -0
  101. package/lib/commonjs/api/event/EventDispatcher.js.map +1 -0
  102. package/lib/commonjs/api/event/EventListener.js +6 -0
  103. package/lib/commonjs/api/event/EventListener.js.map +1 -0
  104. package/lib/commonjs/api/event/PlayerEvent.js +7 -0
  105. package/lib/commonjs/api/event/PlayerEvent.js.map +1 -1
  106. package/lib/commonjs/api/event/TrackEvent.js +10 -15
  107. package/lib/commonjs/api/event/TrackEvent.js.map +1 -1
  108. package/lib/commonjs/api/event/barrel.js +11 -8
  109. package/lib/commonjs/api/event/barrel.js.map +1 -1
  110. package/lib/commonjs/api/media/MediaControlConfiguration.js +2 -0
  111. package/lib/commonjs/api/media/MediaControlConfiguration.js.map +1 -0
  112. package/lib/commonjs/api/media/barrel.js +17 -0
  113. package/lib/commonjs/api/media/barrel.js.map +1 -0
  114. package/lib/commonjs/api/pip/PiPConfiguration.js +2 -0
  115. package/lib/commonjs/api/pip/PiPConfiguration.js.map +1 -0
  116. package/lib/commonjs/api/pip/barrel.js +17 -0
  117. package/lib/commonjs/api/pip/barrel.js.map +1 -0
  118. package/lib/commonjs/api/player/PlayerEventMap.js +43 -0
  119. package/lib/commonjs/api/player/PlayerEventMap.js.map +1 -0
  120. package/lib/commonjs/api/player/THEOplayer.js +6 -0
  121. package/lib/commonjs/api/player/THEOplayer.js.map +1 -0
  122. package/lib/commonjs/api/player/barrel.js +28 -0
  123. package/lib/commonjs/api/player/barrel.js.map +1 -0
  124. package/lib/commonjs/api/presentation/PresentationMode.js +22 -0
  125. package/lib/commonjs/api/presentation/PresentationMode.js.map +1 -0
  126. package/lib/commonjs/api/presentation/barrel.js +17 -0
  127. package/lib/commonjs/api/presentation/barrel.js.map +1 -0
  128. package/lib/commonjs/api/source/ads/Ads.js +46 -0
  129. package/lib/commonjs/api/source/ads/Ads.js.map +1 -1
  130. package/lib/commonjs/api/source/ads/FreeWheelAdDescription.js.map +1 -1
  131. package/lib/commonjs/api/source/ads/IMAAdDescription.js.map +1 -1
  132. package/lib/commonjs/api/source/ads/barrel.js +0 -12
  133. package/lib/commonjs/api/source/ads/barrel.js.map +1 -1
  134. package/lib/commonjs/api/source/ads/ssai/barrel.js +0 -8
  135. package/lib/commonjs/api/source/ads/ssai/barrel.js.map +1 -1
  136. package/lib/commonjs/api/source/barrel.js +0 -12
  137. package/lib/commonjs/api/source/barrel.js.map +1 -1
  138. package/lib/commonjs/api/source/dash/barrel.js +0 -2
  139. package/lib/commonjs/api/source/dash/barrel.js.map +1 -1
  140. package/lib/commonjs/api/source/drm/barrel.js +0 -2
  141. package/lib/commonjs/api/source/drm/barrel.js.map +1 -1
  142. package/lib/commonjs/api/source/hls/barrel.js +0 -2
  143. package/lib/commonjs/api/source/hls/barrel.js.map +1 -1
  144. package/lib/commonjs/api/source/metadata/barrel.js +0 -2
  145. package/lib/commonjs/api/source/metadata/barrel.js.map +1 -1
  146. package/lib/commonjs/api/timeranges/barrel.js +0 -2
  147. package/lib/commonjs/api/timeranges/barrel.js.map +1 -1
  148. package/lib/commonjs/api/track/MediaTrack.js +1 -4
  149. package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
  150. package/lib/commonjs/api/track/TextTrack.js +29 -24
  151. package/lib/commonjs/api/track/TextTrack.js.map +1 -1
  152. package/lib/commonjs/api/track/TextTrackStyle.js +2 -0
  153. package/lib/commonjs/api/track/TextTrackStyle.js.map +1 -0
  154. package/lib/commonjs/api/track/Track.js +25 -0
  155. package/lib/commonjs/api/track/Track.js.map +1 -1
  156. package/lib/commonjs/api/track/barrel.js +11 -10
  157. package/lib/commonjs/api/track/barrel.js.map +1 -1
  158. package/lib/commonjs/api/utils/TypeUtils.js +6 -14
  159. package/lib/commonjs/api/utils/TypeUtils.js.map +1 -1
  160. package/lib/commonjs/api/utils/barrel.js +0 -2
  161. package/lib/commonjs/api/utils/barrel.js.map +1 -1
  162. package/lib/commonjs/index.js +12 -4
  163. package/lib/commonjs/index.js.map +1 -1
  164. package/lib/commonjs/internal/THEOplayerView.js +103 -235
  165. package/lib/commonjs/internal/THEOplayerView.js.map +1 -1
  166. package/lib/commonjs/internal/THEOplayerView.style.js +0 -3
  167. package/lib/commonjs/internal/THEOplayerView.style.js.map +1 -1
  168. package/lib/commonjs/internal/THEOplayerView.web.js +69 -589
  169. package/lib/commonjs/internal/THEOplayerView.web.js.map +1 -1
  170. package/lib/commonjs/internal/adapter/NativePlayerState.js +6 -0
  171. package/lib/commonjs/internal/adapter/NativePlayerState.js.map +1 -0
  172. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +392 -0
  173. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -0
  174. package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +233 -0
  175. package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -0
  176. package/lib/commonjs/internal/adapter/WebEventForwarder.js +280 -0
  177. package/lib/commonjs/internal/adapter/WebEventForwarder.js.map +1 -0
  178. package/lib/commonjs/internal/adapter/abr/AbrAdapter.js +40 -0
  179. package/lib/commonjs/internal/adapter/abr/AbrAdapter.js.map +1 -0
  180. package/lib/commonjs/internal/adapter/ads/THEOplayerNativeAdsAdapter.js +41 -0
  181. package/lib/commonjs/internal/adapter/ads/THEOplayerNativeAdsAdapter.js.map +1 -0
  182. package/lib/commonjs/internal/adapter/ads/THEOplayerNativeGoogleDAI.js +26 -0
  183. package/lib/commonjs/internal/adapter/ads/THEOplayerNativeGoogleDAI.js.map +1 -0
  184. package/lib/commonjs/internal/adapter/ads/THEOplayerWebAdsAdapter.js +58 -0
  185. package/lib/commonjs/internal/adapter/ads/THEOplayerWebAdsAdapter.js.map +1 -0
  186. package/lib/commonjs/internal/adapter/ads/THEOplayerWebGoogleDAI.js +25 -0
  187. package/lib/commonjs/internal/adapter/ads/THEOplayerWebGoogleDAI.js.map +1 -0
  188. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeAirplay.js +47 -0
  189. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeAirplay.js.map +1 -0
  190. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js +46 -0
  191. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -0
  192. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeChromecast.js +55 -0
  193. package/lib/commonjs/internal/adapter/cast/THEOplayerNativeChromecast.js.map +1 -0
  194. package/lib/commonjs/internal/adapter/cast/THEOplayerWebCastAdapter.js +29 -0
  195. package/lib/commonjs/internal/adapter/cast/THEOplayerWebCastAdapter.js.map +1 -0
  196. package/lib/commonjs/internal/adapter/event/BaseEvent.js +15 -0
  197. package/lib/commonjs/internal/adapter/event/BaseEvent.js.map +1 -0
  198. package/lib/commonjs/internal/adapter/event/DefaultEventDispatcher.js +42 -0
  199. package/lib/commonjs/internal/adapter/event/DefaultEventDispatcher.js.map +1 -0
  200. package/lib/commonjs/internal/adapter/event/PlayerEvents.js +166 -0
  201. package/lib/commonjs/internal/adapter/event/PlayerEvents.js.map +1 -0
  202. package/lib/commonjs/internal/adapter/event/native/NativeAdEvent.js +6 -0
  203. package/lib/commonjs/internal/adapter/event/native/NativeAdEvent.js.map +1 -0
  204. package/lib/commonjs/internal/adapter/event/native/NativeCastEvent.js +6 -0
  205. package/lib/commonjs/internal/adapter/event/native/NativeCastEvent.js.map +1 -0
  206. package/lib/commonjs/internal/adapter/event/native/NativePlayerEvent.js +6 -0
  207. package/lib/commonjs/internal/adapter/event/native/NativePlayerEvent.js.map +1 -0
  208. package/lib/commonjs/internal/adapter/event/native/NativeTrackEvent.js +74 -0
  209. package/lib/commonjs/internal/adapter/event/native/NativeTrackEvent.js.map +1 -0
  210. package/lib/commonjs/internal/adapter/track/TextTrackStyleAdapter.js +51 -0
  211. package/lib/commonjs/internal/adapter/track/TextTrackStyleAdapter.js.map +1 -0
  212. package/lib/commonjs/internal/adapter/web/TrackUtils.js +87 -0
  213. package/lib/commonjs/internal/adapter/web/TrackUtils.js.map +1 -0
  214. package/lib/commonjs/internal/adapter/web/WebMediaSession.js +188 -0
  215. package/lib/commonjs/internal/adapter/web/WebMediaSession.js.map +1 -0
  216. package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js +101 -0
  217. package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js.map +1 -0
  218. package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +13 -50
  219. package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -1
  220. package/lib/commonjs/internal/drm/ContentProtectionRegistry.web.js +0 -4
  221. package/lib/commonjs/internal/drm/ContentProtectionRegistry.web.js.map +1 -1
  222. package/lib/commonjs/internal/drm/NativeCertificateRequest.js +0 -3
  223. package/lib/commonjs/internal/drm/NativeCertificateRequest.js.map +1 -1
  224. package/lib/commonjs/internal/drm/NativeCertificateResponse.js +0 -4
  225. package/lib/commonjs/internal/drm/NativeCertificateResponse.js.map +1 -1
  226. package/lib/commonjs/internal/drm/NativeLicenseRequest.js +0 -3
  227. package/lib/commonjs/internal/drm/NativeLicenseRequest.js.map +1 -1
  228. package/lib/commonjs/internal/drm/NativeLicenseResponse.js +0 -4
  229. package/lib/commonjs/internal/drm/NativeLicenseResponse.js.map +1 -1
  230. package/lib/commonjs/internal/utils/TypeUtils.js +2 -8
  231. package/lib/commonjs/internal/utils/TypeUtils.js.map +1 -1
  232. package/lib/commonjs/internal/utils/arrayUtil.js +19 -0
  233. package/lib/commonjs/internal/utils/arrayUtil.js.map +1 -0
  234. package/lib/commonjs/ui/THEOplayerDefaultUi.js +82 -0
  235. package/lib/commonjs/ui/THEOplayerDefaultUi.js.map +1 -0
  236. package/lib/commonjs/ui/THEOplayerTheme.js +48 -0
  237. package/lib/commonjs/ui/THEOplayerTheme.js.map +1 -0
  238. package/lib/commonjs/ui/barrel.js +39 -0
  239. package/lib/commonjs/ui/barrel.js.map +1 -0
  240. package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +99 -0
  241. package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +1 -0
  242. package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js +35 -0
  243. package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js.map +1 -0
  244. package/lib/commonjs/ui/components/activityindicator/barrel.js +28 -0
  245. package/lib/commonjs/ui/components/activityindicator/barrel.js.map +1 -0
  246. package/lib/commonjs/ui/components/barrel.js +105 -0
  247. package/lib/commonjs/ui/components/barrel.js.map +1 -0
  248. package/lib/commonjs/ui/components/button/AirplayButton.js +81 -0
  249. package/lib/commonjs/ui/components/button/AirplayButton.js.map +1 -0
  250. package/lib/commonjs/ui/components/button/ChromecastButton.js +66 -0
  251. package/lib/commonjs/ui/components/button/ChromecastButton.js.map +1 -0
  252. package/lib/commonjs/ui/components/button/ChromecastButton.web.js +82 -0
  253. package/lib/commonjs/ui/components/button/ChromecastButton.web.js.map +1 -0
  254. package/lib/commonjs/ui/components/button/FullscreenButton.js +72 -0
  255. package/lib/commonjs/ui/components/button/FullscreenButton.js.map +1 -0
  256. package/lib/commonjs/ui/components/button/MuteButton.js +66 -0
  257. package/lib/commonjs/ui/components/button/MuteButton.js.map +1 -0
  258. package/lib/commonjs/ui/components/button/PipButton.js +72 -0
  259. package/lib/commonjs/ui/components/button/PipButton.js.map +1 -0
  260. package/lib/commonjs/ui/components/button/PlayButton.js +113 -0
  261. package/lib/commonjs/ui/components/button/PlayButton.js.map +1 -0
  262. package/lib/commonjs/ui/components/button/SkipButton.js +122 -0
  263. package/lib/commonjs/ui/components/button/SkipButton.js.map +1 -0
  264. package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js +82 -0
  265. package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js.map +1 -0
  266. package/lib/commonjs/ui/components/button/barrel.js +105 -0
  267. package/lib/commonjs/ui/components/button/barrel.js.map +1 -0
  268. package/lib/commonjs/ui/components/button/svg/AirplaySvg.js +22 -0
  269. package/lib/commonjs/ui/components/button/svg/AirplaySvg.js.map +1 -0
  270. package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js +22 -0
  271. package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js.map +1 -0
  272. package/lib/commonjs/ui/components/button/svg/BackSvg.js +22 -0
  273. package/lib/commonjs/ui/components/button/svg/BackSvg.js.map +1 -0
  274. package/lib/commonjs/ui/components/button/svg/BackwardSvg.js +22 -0
  275. package/lib/commonjs/ui/components/button/svg/BackwardSvg.js.map +1 -0
  276. package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js +22 -0
  277. package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js.map +1 -0
  278. package/lib/commonjs/ui/components/button/svg/ErrorSvg.js +22 -0
  279. package/lib/commonjs/ui/components/button/svg/ErrorSvg.js.map +1 -0
  280. package/lib/commonjs/ui/components/button/svg/ForwardSvg.js +22 -0
  281. package/lib/commonjs/ui/components/button/svg/ForwardSvg.js.map +1 -0
  282. package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js +22 -0
  283. package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js.map +1 -0
  284. package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js +22 -0
  285. package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js.map +1 -0
  286. package/lib/commonjs/ui/components/button/svg/LanguageSvg.js +22 -0
  287. package/lib/commonjs/ui/components/button/svg/LanguageSvg.js.map +1 -0
  288. package/lib/commonjs/ui/components/button/svg/ListSvg.js +22 -0
  289. package/lib/commonjs/ui/components/button/svg/ListSvg.js.map +1 -0
  290. package/lib/commonjs/ui/components/button/svg/PauseSvg.js +22 -0
  291. package/lib/commonjs/ui/components/button/svg/PauseSvg.js.map +1 -0
  292. package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js +22 -0
  293. package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js.map +1 -0
  294. package/lib/commonjs/ui/components/button/svg/PipExitSvg.js +22 -0
  295. package/lib/commonjs/ui/components/button/svg/PipExitSvg.js.map +1 -0
  296. package/lib/commonjs/ui/components/button/svg/PlaySvg.js +22 -0
  297. package/lib/commonjs/ui/components/button/svg/PlaySvg.js.map +1 -0
  298. package/lib/commonjs/ui/components/button/svg/ReplaySvg.js +22 -0
  299. package/lib/commonjs/ui/components/button/svg/ReplaySvg.js.map +1 -0
  300. package/lib/commonjs/ui/components/button/svg/SettingsSvg.js +22 -0
  301. package/lib/commonjs/ui/components/button/svg/SettingsSvg.js.map +1 -0
  302. package/lib/commonjs/ui/components/button/svg/SvgUtils.js +13 -0
  303. package/lib/commonjs/ui/components/button/svg/SvgUtils.js.map +1 -0
  304. package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js +22 -0
  305. package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js.map +1 -0
  306. package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js +22 -0
  307. package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js.map +1 -0
  308. package/lib/commonjs/ui/components/button/svg/barrel.js +226 -0
  309. package/lib/commonjs/ui/components/button/svg/barrel.js.map +1 -0
  310. package/lib/commonjs/ui/components/button/svg/res/AirPlayButton.html +6 -0
  311. package/lib/commonjs/ui/components/button/svg/res/Airplay.svg +1 -0
  312. package/lib/commonjs/ui/components/button/svg/res/ChromecastButton.html +25 -0
  313. package/lib/commonjs/ui/components/button/svg/res/arrow_forward.svg +1 -0
  314. package/lib/commonjs/ui/components/button/svg/res/back.svg +1 -0
  315. package/lib/commonjs/ui/components/button/svg/res/backward.svg +1 -0
  316. package/lib/commonjs/ui/components/button/svg/res/chromecast-48px.svg +1 -0
  317. package/lib/commonjs/ui/components/button/svg/res/close.svg +1 -0
  318. package/lib/commonjs/ui/components/button/svg/res/error.svg +1 -0
  319. package/lib/commonjs/ui/components/button/svg/res/forward.svg +1 -0
  320. package/lib/commonjs/ui/components/button/svg/res/fullscreen-enter.svg +1 -0
  321. package/lib/commonjs/ui/components/button/svg/res/fullscreen-exit.svg +1 -0
  322. package/lib/commonjs/ui/components/button/svg/res/language.svg +1 -0
  323. package/lib/commonjs/ui/components/button/svg/res/list.svg +1 -0
  324. package/lib/commonjs/ui/components/button/svg/res/live.svg +1 -0
  325. package/lib/commonjs/ui/components/button/svg/res/pause.svg +1 -0
  326. package/lib/commonjs/ui/components/button/svg/res/pip_enter.svg +1 -0
  327. package/lib/commonjs/ui/components/button/svg/res/pip_exit.svg +1 -0
  328. package/lib/commonjs/ui/components/button/svg/res/play.svg +1 -0
  329. package/lib/commonjs/ui/components/button/svg/res/replay.svg +1 -0
  330. package/lib/commonjs/ui/components/button/svg/res/settings.svg +1 -0
  331. package/lib/commonjs/ui/components/button/svg/res/skip-next.svg +1 -0
  332. package/lib/commonjs/ui/components/button/svg/res/volume-high.svg +1 -0
  333. package/lib/commonjs/ui/components/button/svg/res/volume-low.svg +1 -0
  334. package/lib/commonjs/ui/components/button/svg/res/volume-off.svg +1 -0
  335. package/lib/commonjs/ui/components/controlbar/ControlBar.js +61 -0
  336. package/lib/commonjs/ui/components/controlbar/ControlBar.js.map +1 -0
  337. package/lib/commonjs/ui/components/controlbar/Spacer.js +21 -0
  338. package/lib/commonjs/ui/components/controlbar/Spacer.js.map +1 -0
  339. package/lib/commonjs/ui/components/controlbar/barrel.js +28 -0
  340. package/lib/commonjs/ui/components/controlbar/barrel.js.map +1 -0
  341. package/lib/commonjs/ui/components/menu/LanguageMenuButton.js +175 -0
  342. package/lib/commonjs/ui/components/menu/LanguageMenuButton.js.map +1 -0
  343. package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js +91 -0
  344. package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js.map +1 -0
  345. package/lib/commonjs/ui/components/menu/QualitySubMenu.js +145 -0
  346. package/lib/commonjs/ui/components/menu/QualitySubMenu.js.map +1 -0
  347. package/lib/commonjs/ui/components/menu/SettingsMenuButton.js +36 -0
  348. package/lib/commonjs/ui/components/menu/SettingsMenuButton.js.map +1 -0
  349. package/lib/commonjs/ui/components/menu/barrel.js +61 -0
  350. package/lib/commonjs/ui/components/menu/barrel.js.map +1 -0
  351. package/lib/commonjs/ui/components/menu/common/MenuButton.js +34 -0
  352. package/lib/commonjs/ui/components/menu/common/MenuButton.js.map +1 -0
  353. package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js +47 -0
  354. package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js.map +1 -0
  355. package/lib/commonjs/ui/components/menu/common/MenuTitle.js +38 -0
  356. package/lib/commonjs/ui/components/menu/common/MenuTitle.js.map +1 -0
  357. package/lib/commonjs/ui/components/menu/common/MenuView.js +75 -0
  358. package/lib/commonjs/ui/components/menu/common/MenuView.js.map +1 -0
  359. package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js +45 -0
  360. package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js.map +1 -0
  361. package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js +65 -0
  362. package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js.map +1 -0
  363. package/lib/commonjs/ui/components/menu/common/barrel.js +72 -0
  364. package/lib/commonjs/ui/components/menu/common/barrel.js.map +1 -0
  365. package/lib/commonjs/ui/components/message/CastMessage.js +79 -0
  366. package/lib/commonjs/ui/components/message/CastMessage.js.map +1 -0
  367. package/lib/commonjs/ui/components/message/ErrorDisplay.js +53 -0
  368. package/lib/commonjs/ui/components/message/ErrorDisplay.js.map +1 -0
  369. package/lib/commonjs/ui/components/message/barrel.js +28 -0
  370. package/lib/commonjs/ui/components/message/barrel.js.map +1 -0
  371. package/lib/commonjs/ui/components/seekbar/SeekBar.js +194 -0
  372. package/lib/commonjs/ui/components/seekbar/SeekBar.js.map +1 -0
  373. package/lib/commonjs/ui/components/seekbar/barrel.js +28 -0
  374. package/lib/commonjs/ui/components/seekbar/barrel.js.map +1 -0
  375. package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js +45 -0
  376. package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +1 -0
  377. package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js +18 -0
  378. package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js.map +1 -0
  379. package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js +256 -0
  380. package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js.map +1 -0
  381. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js +17 -0
  382. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +1 -0
  383. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +17 -0
  384. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +1 -0
  385. package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js +28 -0
  386. package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js.map +1 -0
  387. package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js +55 -0
  388. package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js.map +1 -0
  389. package/lib/commonjs/ui/components/timelabel/TimeLabel.js +88 -0
  390. package/lib/commonjs/ui/components/timelabel/TimeLabel.js.map +1 -0
  391. package/lib/commonjs/ui/components/timelabel/barrel.js +28 -0
  392. package/lib/commonjs/ui/components/timelabel/barrel.js.map +1 -0
  393. package/lib/commonjs/ui/components/uicontroller/UiContainer.js +350 -0
  394. package/lib/commonjs/ui/components/uicontroller/UiContainer.js.map +1 -0
  395. package/lib/commonjs/ui/components/uicontroller/UiControls.js +6 -0
  396. package/lib/commonjs/ui/components/uicontroller/UiControls.js.map +1 -0
  397. package/lib/commonjs/ui/components/uicontroller/barrel.js +28 -0
  398. package/lib/commonjs/ui/components/uicontroller/barrel.js.map +1 -0
  399. package/lib/commonjs/ui/components/util/PlayerContext.js +19 -0
  400. package/lib/commonjs/ui/components/util/PlayerContext.js.map +1 -0
  401. package/lib/commonjs/ui/components/util/TrackUtils.js +69 -0
  402. package/lib/commonjs/ui/components/util/TrackUtils.js.map +1 -0
  403. package/lib/commonjs/ui/components/util/barrel.js +17 -0
  404. package/lib/commonjs/ui/components/util/barrel.js.map +1 -0
  405. package/lib/commonjs/ui/utils/ArrayUtils.js +19 -0
  406. package/lib/commonjs/ui/utils/ArrayUtils.js.map +1 -0
  407. package/lib/commonjs/ui/utils/language/Language.js +38 -0
  408. package/lib/commonjs/ui/utils/language/Language.js.map +1 -0
  409. package/lib/commonjs/ui/utils/language/languages.json +1658 -0
  410. package/lib/commonjs/web/platform/BrowserDetection.js +34 -0
  411. package/lib/commonjs/web/platform/BrowserDetection.js.map +1 -0
  412. package/lib/commonjs/web/platform/browser.d.js +2 -0
  413. package/lib/commonjs/web/platform/browser.d.js.map +1 -0
  414. package/lib/module/api/THEOplayerView.js.map +1 -1
  415. package/lib/module/api/abr/barrel.js.map +1 -1
  416. package/lib/module/api/ads/barrel.js.map +1 -1
  417. package/lib/module/api/backgroundAudio/BackgroundAudioConfiguration.js +2 -0
  418. package/lib/module/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -0
  419. package/lib/module/api/backgroundAudio/barrel.js +2 -0
  420. package/lib/module/api/backgroundAudio/barrel.js.map +1 -0
  421. package/lib/module/api/barrel.js +4 -0
  422. package/lib/module/api/barrel.js.map +1 -1
  423. package/lib/module/api/cast/Airplay.js.map +1 -1
  424. package/lib/module/api/cast/CastAPI.js.map +1 -1
  425. package/lib/module/api/cast/CastState.js +16 -1
  426. package/lib/module/api/cast/CastState.js.map +1 -1
  427. package/lib/module/api/cast/Chromecast.js.map +1 -1
  428. package/lib/module/api/cast/barrel.js.map +1 -1
  429. package/lib/module/api/config/PlayerConfiguration.js.map +1 -1
  430. package/lib/module/api/config/barrel.js.map +1 -1
  431. package/lib/module/api/drm/barrel.js.map +1 -1
  432. package/lib/module/api/error/barrel.js.map +1 -1
  433. package/lib/module/api/event/AdEvent.js +22 -81
  434. package/lib/module/api/event/AdEvent.js.map +1 -1
  435. package/lib/module/api/event/CastEvent.js +6 -13
  436. package/lib/module/api/event/CastEvent.js.map +1 -1
  437. package/lib/module/api/event/Event.js +2 -0
  438. package/lib/module/api/event/Event.js.map +1 -0
  439. package/lib/module/api/event/EventDispatcher.js +2 -0
  440. package/lib/module/api/event/EventDispatcher.js.map +1 -0
  441. package/lib/module/api/event/EventListener.js +2 -0
  442. package/lib/module/api/event/EventListener.js.map +1 -0
  443. package/lib/module/api/event/PlayerEvent.js +5 -1
  444. package/lib/module/api/event/PlayerEvent.js.map +1 -1
  445. package/lib/module/api/event/TrackEvent.js +10 -15
  446. package/lib/module/api/event/TrackEvent.js.map +1 -1
  447. package/lib/module/api/event/barrel.js +1 -0
  448. package/lib/module/api/event/barrel.js.map +1 -1
  449. package/lib/module/api/media/MediaControlConfiguration.js +2 -0
  450. package/lib/module/api/media/MediaControlConfiguration.js.map +1 -0
  451. package/lib/module/api/media/barrel.js +2 -0
  452. package/lib/module/api/media/barrel.js.map +1 -0
  453. package/lib/module/api/pip/PiPConfiguration.js +2 -0
  454. package/lib/module/api/pip/PiPConfiguration.js.map +1 -0
  455. package/lib/module/api/pip/barrel.js +2 -0
  456. package/lib/module/api/pip/barrel.js.map +1 -0
  457. package/lib/module/api/player/PlayerEventMap.js +37 -0
  458. package/lib/module/api/player/PlayerEventMap.js.map +1 -0
  459. package/lib/module/api/player/THEOplayer.js +2 -0
  460. package/lib/module/api/player/THEOplayer.js.map +1 -0
  461. package/lib/module/api/player/barrel.js +3 -0
  462. package/lib/module/api/player/barrel.js.map +1 -0
  463. package/lib/module/api/presentation/PresentationMode.js +16 -0
  464. package/lib/module/api/presentation/PresentationMode.js.map +1 -0
  465. package/lib/module/api/presentation/barrel.js +2 -0
  466. package/lib/module/api/presentation/barrel.js.map +1 -0
  467. package/lib/module/api/source/ads/Ads.js +42 -0
  468. package/lib/module/api/source/ads/Ads.js.map +1 -1
  469. package/lib/module/api/source/ads/FreeWheelAdDescription.js.map +1 -1
  470. package/lib/module/api/source/ads/IMAAdDescription.js.map +1 -1
  471. package/lib/module/api/source/ads/barrel.js.map +1 -1
  472. package/lib/module/api/source/ads/ssai/barrel.js.map +1 -1
  473. package/lib/module/api/source/barrel.js.map +1 -1
  474. package/lib/module/api/source/dash/barrel.js.map +1 -1
  475. package/lib/module/api/source/drm/barrel.js.map +1 -1
  476. package/lib/module/api/source/hls/barrel.js.map +1 -1
  477. package/lib/module/api/source/metadata/barrel.js.map +1 -1
  478. package/lib/module/api/timeranges/barrel.js.map +1 -1
  479. package/lib/module/api/track/MediaTrack.js +1 -1
  480. package/lib/module/api/track/MediaTrack.js.map +1 -1
  481. package/lib/module/api/track/TextTrack.js +25 -11
  482. package/lib/module/api/track/TextTrack.js.map +1 -1
  483. package/lib/module/api/track/TextTrackStyle.js +2 -0
  484. package/lib/module/api/track/TextTrackStyle.js.map +1 -0
  485. package/lib/module/api/track/Track.js +17 -0
  486. package/lib/module/api/track/Track.js.map +1 -1
  487. package/lib/module/api/track/barrel.js +1 -0
  488. package/lib/module/api/track/barrel.js.map +1 -1
  489. package/lib/module/api/utils/TypeUtils.js +8 -4
  490. package/lib/module/api/utils/TypeUtils.js.map +1 -1
  491. package/lib/module/api/utils/barrel.js.map +1 -1
  492. package/lib/module/index.js +1 -0
  493. package/lib/module/index.js.map +1 -1
  494. package/lib/module/internal/THEOplayerView.js +104 -224
  495. package/lib/module/internal/THEOplayerView.js.map +1 -1
  496. package/lib/module/internal/THEOplayerView.style.js.map +1 -1
  497. package/lib/module/internal/THEOplayerView.web.js +69 -578
  498. package/lib/module/internal/THEOplayerView.web.js.map +1 -1
  499. package/lib/module/internal/adapter/NativePlayerState.js +2 -0
  500. package/lib/module/internal/adapter/NativePlayerState.js.map +1 -0
  501. package/lib/module/internal/adapter/THEOplayerAdapter.js +385 -0
  502. package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -0
  503. package/lib/module/internal/adapter/THEOplayerWebAdapter.js +226 -0
  504. package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -0
  505. package/lib/module/internal/adapter/WebEventForwarder.js +273 -0
  506. package/lib/module/internal/adapter/WebEventForwarder.js.map +1 -0
  507. package/lib/module/internal/adapter/abr/AbrAdapter.js +33 -0
  508. package/lib/module/internal/adapter/abr/AbrAdapter.js.map +1 -0
  509. package/lib/module/internal/adapter/ads/THEOplayerNativeAdsAdapter.js +34 -0
  510. package/lib/module/internal/adapter/ads/THEOplayerNativeAdsAdapter.js.map +1 -0
  511. package/lib/module/internal/adapter/ads/THEOplayerNativeGoogleDAI.js +19 -0
  512. package/lib/module/internal/adapter/ads/THEOplayerNativeGoogleDAI.js.map +1 -0
  513. package/lib/module/internal/adapter/ads/THEOplayerWebAdsAdapter.js +51 -0
  514. package/lib/module/internal/adapter/ads/THEOplayerWebAdsAdapter.js.map +1 -0
  515. package/lib/module/internal/adapter/ads/THEOplayerWebGoogleDAI.js +18 -0
  516. package/lib/module/internal/adapter/ads/THEOplayerWebGoogleDAI.js.map +1 -0
  517. package/lib/module/internal/adapter/cast/THEOplayerNativeAirplay.js +40 -0
  518. package/lib/module/internal/adapter/cast/THEOplayerNativeAirplay.js.map +1 -0
  519. package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js +39 -0
  520. package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -0
  521. package/lib/module/internal/adapter/cast/THEOplayerNativeChromecast.js +48 -0
  522. package/lib/module/internal/adapter/cast/THEOplayerNativeChromecast.js.map +1 -0
  523. package/lib/module/internal/adapter/cast/THEOplayerWebCastAdapter.js +22 -0
  524. package/lib/module/internal/adapter/cast/THEOplayerWebCastAdapter.js.map +1 -0
  525. package/lib/module/internal/adapter/event/BaseEvent.js +8 -0
  526. package/lib/module/internal/adapter/event/BaseEvent.js.map +1 -0
  527. package/lib/module/internal/adapter/event/DefaultEventDispatcher.js +35 -0
  528. package/lib/module/internal/adapter/event/DefaultEventDispatcher.js.map +1 -0
  529. package/lib/module/internal/adapter/event/PlayerEvents.js +142 -0
  530. package/lib/module/internal/adapter/event/PlayerEvents.js.map +1 -0
  531. package/lib/module/internal/adapter/event/native/NativeAdEvent.js +2 -0
  532. package/lib/module/internal/adapter/event/native/NativeAdEvent.js.map +1 -0
  533. package/lib/module/internal/adapter/event/native/NativeCastEvent.js +2 -0
  534. package/lib/module/internal/adapter/event/native/NativeCastEvent.js.map +1 -0
  535. package/lib/module/internal/adapter/event/native/NativePlayerEvent.js +2 -0
  536. package/lib/module/internal/adapter/event/native/NativePlayerEvent.js.map +1 -0
  537. package/lib/module/internal/adapter/event/native/NativeTrackEvent.js +60 -0
  538. package/lib/module/internal/adapter/event/native/NativeTrackEvent.js.map +1 -0
  539. package/lib/module/internal/adapter/track/TextTrackStyleAdapter.js +44 -0
  540. package/lib/module/internal/adapter/track/TextTrackStyleAdapter.js.map +1 -0
  541. package/lib/module/internal/adapter/web/TrackUtils.js +75 -0
  542. package/lib/module/internal/adapter/web/TrackUtils.js.map +1 -0
  543. package/lib/module/internal/adapter/web/WebMediaSession.js +182 -0
  544. package/lib/module/internal/adapter/web/WebMediaSession.js.map +1 -0
  545. package/lib/module/internal/adapter/web/WebPresentationModeManager.js +94 -0
  546. package/lib/module/internal/adapter/web/WebPresentationModeManager.js.map +1 -0
  547. package/lib/module/internal/drm/ContentProtectionRegistry.js +13 -32
  548. package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -1
  549. package/lib/module/internal/drm/ContentProtectionRegistry.web.js +0 -1
  550. package/lib/module/internal/drm/ContentProtectionRegistry.web.js.map +1 -1
  551. package/lib/module/internal/drm/NativeCertificateRequest.js.map +1 -1
  552. package/lib/module/internal/drm/NativeCertificateResponse.js.map +1 -1
  553. package/lib/module/internal/drm/NativeLicenseRequest.js.map +1 -1
  554. package/lib/module/internal/drm/NativeLicenseResponse.js.map +1 -1
  555. package/lib/module/internal/utils/TypeUtils.js +2 -3
  556. package/lib/module/internal/utils/TypeUtils.js.map +1 -1
  557. package/lib/module/internal/utils/arrayUtil.js +12 -0
  558. package/lib/module/internal/utils/arrayUtil.js.map +1 -0
  559. package/lib/module/ui/THEOplayerDefaultUi.js +74 -0
  560. package/lib/module/ui/THEOplayerDefaultUi.js.map +1 -0
  561. package/lib/module/ui/THEOplayerTheme.js +41 -0
  562. package/lib/module/ui/THEOplayerTheme.js.map +1 -0
  563. package/lib/module/ui/barrel.js +4 -0
  564. package/lib/module/ui/barrel.js.map +1 -0
  565. package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +90 -0
  566. package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +1 -0
  567. package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js +26 -0
  568. package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js.map +1 -0
  569. package/lib/module/ui/components/activityindicator/barrel.js +3 -0
  570. package/lib/module/ui/components/activityindicator/barrel.js.map +1 -0
  571. package/lib/module/ui/components/barrel.js +10 -0
  572. package/lib/module/ui/components/barrel.js.map +1 -0
  573. package/lib/module/ui/components/button/AirplayButton.js +72 -0
  574. package/lib/module/ui/components/button/AirplayButton.js.map +1 -0
  575. package/lib/module/ui/components/button/ChromecastButton.js +56 -0
  576. package/lib/module/ui/components/button/ChromecastButton.js.map +1 -0
  577. package/lib/module/ui/components/button/ChromecastButton.web.js +72 -0
  578. package/lib/module/ui/components/button/ChromecastButton.web.js.map +1 -0
  579. package/lib/module/ui/components/button/FullscreenButton.js +63 -0
  580. package/lib/module/ui/components/button/FullscreenButton.js.map +1 -0
  581. package/lib/module/ui/components/button/MuteButton.js +57 -0
  582. package/lib/module/ui/components/button/MuteButton.js.map +1 -0
  583. package/lib/module/ui/components/button/PipButton.js +63 -0
  584. package/lib/module/ui/components/button/PipButton.js.map +1 -0
  585. package/lib/module/ui/components/button/PlayButton.js +104 -0
  586. package/lib/module/ui/components/button/PlayButton.js.map +1 -0
  587. package/lib/module/ui/components/button/SkipButton.js +113 -0
  588. package/lib/module/ui/components/button/SkipButton.js.map +1 -0
  589. package/lib/module/ui/components/button/actionbutton/ActionButton.js +72 -0
  590. package/lib/module/ui/components/button/actionbutton/ActionButton.js.map +1 -0
  591. package/lib/module/ui/components/button/barrel.js +10 -0
  592. package/lib/module/ui/components/button/barrel.js.map +1 -0
  593. package/lib/module/ui/components/button/svg/AirplaySvg.js +12 -0
  594. package/lib/module/ui/components/button/svg/AirplaySvg.js.map +1 -0
  595. package/lib/module/ui/components/button/svg/ArrowForwardSvg.js +12 -0
  596. package/lib/module/ui/components/button/svg/ArrowForwardSvg.js.map +1 -0
  597. package/lib/module/ui/components/button/svg/BackSvg.js +12 -0
  598. package/lib/module/ui/components/button/svg/BackSvg.js.map +1 -0
  599. package/lib/module/ui/components/button/svg/BackwardSvg.js +12 -0
  600. package/lib/module/ui/components/button/svg/BackwardSvg.js.map +1 -0
  601. package/lib/module/ui/components/button/svg/ChromecastSvg.js +12 -0
  602. package/lib/module/ui/components/button/svg/ChromecastSvg.js.map +1 -0
  603. package/lib/module/ui/components/button/svg/ErrorSvg.js +12 -0
  604. package/lib/module/ui/components/button/svg/ErrorSvg.js.map +1 -0
  605. package/lib/module/ui/components/button/svg/ForwardSvg.js +12 -0
  606. package/lib/module/ui/components/button/svg/ForwardSvg.js.map +1 -0
  607. package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js +12 -0
  608. package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js.map +1 -0
  609. package/lib/module/ui/components/button/svg/FullscreenExitSvg.js +12 -0
  610. package/lib/module/ui/components/button/svg/FullscreenExitSvg.js.map +1 -0
  611. package/lib/module/ui/components/button/svg/LanguageSvg.js +12 -0
  612. package/lib/module/ui/components/button/svg/LanguageSvg.js.map +1 -0
  613. package/lib/module/ui/components/button/svg/ListSvg.js +12 -0
  614. package/lib/module/ui/components/button/svg/ListSvg.js.map +1 -0
  615. package/lib/module/ui/components/button/svg/PauseSvg.js +12 -0
  616. package/lib/module/ui/components/button/svg/PauseSvg.js.map +1 -0
  617. package/lib/module/ui/components/button/svg/PipEnterSvg.js +12 -0
  618. package/lib/module/ui/components/button/svg/PipEnterSvg.js.map +1 -0
  619. package/lib/module/ui/components/button/svg/PipExitSvg.js +12 -0
  620. package/lib/module/ui/components/button/svg/PipExitSvg.js.map +1 -0
  621. package/lib/module/ui/components/button/svg/PlaySvg.js +12 -0
  622. package/lib/module/ui/components/button/svg/PlaySvg.js.map +1 -0
  623. package/lib/module/ui/components/button/svg/ReplaySvg.js +12 -0
  624. package/lib/module/ui/components/button/svg/ReplaySvg.js.map +1 -0
  625. package/lib/module/ui/components/button/svg/SettingsSvg.js +12 -0
  626. package/lib/module/ui/components/button/svg/SettingsSvg.js.map +1 -0
  627. package/lib/module/ui/components/button/svg/SvgUtils.js +5 -0
  628. package/lib/module/ui/components/button/svg/SvgUtils.js.map +1 -0
  629. package/lib/module/ui/components/button/svg/VolumeOffSvg.js +12 -0
  630. package/lib/module/ui/components/button/svg/VolumeOffSvg.js.map +1 -0
  631. package/lib/module/ui/components/button/svg/VolumeUpSvg.js +12 -0
  632. package/lib/module/ui/components/button/svg/VolumeUpSvg.js.map +1 -0
  633. package/lib/module/ui/components/button/svg/barrel.js +21 -0
  634. package/lib/module/ui/components/button/svg/barrel.js.map +1 -0
  635. package/lib/module/ui/components/button/svg/res/AirPlayButton.html +6 -0
  636. package/lib/module/ui/components/button/svg/res/Airplay.svg +1 -0
  637. package/lib/module/ui/components/button/svg/res/ChromecastButton.html +25 -0
  638. package/lib/module/ui/components/button/svg/res/arrow_forward.svg +1 -0
  639. package/lib/module/ui/components/button/svg/res/back.svg +1 -0
  640. package/lib/module/ui/components/button/svg/res/backward.svg +1 -0
  641. package/lib/module/ui/components/button/svg/res/chromecast-48px.svg +1 -0
  642. package/lib/module/ui/components/button/svg/res/close.svg +1 -0
  643. package/lib/module/ui/components/button/svg/res/error.svg +1 -0
  644. package/lib/module/ui/components/button/svg/res/forward.svg +1 -0
  645. package/lib/module/ui/components/button/svg/res/fullscreen-enter.svg +1 -0
  646. package/lib/module/ui/components/button/svg/res/fullscreen-exit.svg +1 -0
  647. package/lib/module/ui/components/button/svg/res/language.svg +1 -0
  648. package/lib/module/ui/components/button/svg/res/list.svg +1 -0
  649. package/lib/module/ui/components/button/svg/res/live.svg +1 -0
  650. package/lib/module/ui/components/button/svg/res/pause.svg +1 -0
  651. package/lib/module/ui/components/button/svg/res/pip_enter.svg +1 -0
  652. package/lib/module/ui/components/button/svg/res/pip_exit.svg +1 -0
  653. package/lib/module/ui/components/button/svg/res/play.svg +1 -0
  654. package/lib/module/ui/components/button/svg/res/replay.svg +1 -0
  655. package/lib/module/ui/components/button/svg/res/settings.svg +1 -0
  656. package/lib/module/ui/components/button/svg/res/skip-next.svg +1 -0
  657. package/lib/module/ui/components/button/svg/res/volume-high.svg +1 -0
  658. package/lib/module/ui/components/button/svg/res/volume-low.svg +1 -0
  659. package/lib/module/ui/components/button/svg/res/volume-off.svg +1 -0
  660. package/lib/module/ui/components/controlbar/ControlBar.js +52 -0
  661. package/lib/module/ui/components/controlbar/ControlBar.js.map +1 -0
  662. package/lib/module/ui/components/controlbar/Spacer.js +14 -0
  663. package/lib/module/ui/components/controlbar/Spacer.js.map +1 -0
  664. package/lib/module/ui/components/controlbar/barrel.js +3 -0
  665. package/lib/module/ui/components/controlbar/barrel.js.map +1 -0
  666. package/lib/module/ui/components/menu/LanguageMenuButton.js +165 -0
  667. package/lib/module/ui/components/menu/LanguageMenuButton.js.map +1 -0
  668. package/lib/module/ui/components/menu/PlaybackRateSubMenu.js +80 -0
  669. package/lib/module/ui/components/menu/PlaybackRateSubMenu.js.map +1 -0
  670. package/lib/module/ui/components/menu/QualitySubMenu.js +135 -0
  671. package/lib/module/ui/components/menu/QualitySubMenu.js.map +1 -0
  672. package/lib/module/ui/components/menu/SettingsMenuButton.js +28 -0
  673. package/lib/module/ui/components/menu/SettingsMenuButton.js.map +1 -0
  674. package/lib/module/ui/components/menu/barrel.js +6 -0
  675. package/lib/module/ui/components/menu/barrel.js.map +1 -0
  676. package/lib/module/ui/components/menu/common/MenuButton.js +26 -0
  677. package/lib/module/ui/components/menu/common/MenuButton.js.map +1 -0
  678. package/lib/module/ui/components/menu/common/MenuRadioButton.js +38 -0
  679. package/lib/module/ui/components/menu/common/MenuRadioButton.js.map +1 -0
  680. package/lib/module/ui/components/menu/common/MenuTitle.js +29 -0
  681. package/lib/module/ui/components/menu/common/MenuTitle.js.map +1 -0
  682. package/lib/module/ui/components/menu/common/MenuView.js +65 -0
  683. package/lib/module/ui/components/menu/common/MenuView.js.map +1 -0
  684. package/lib/module/ui/components/menu/common/ScrollableMenu.js +36 -0
  685. package/lib/module/ui/components/menu/common/ScrollableMenu.js.map +1 -0
  686. package/lib/module/ui/components/menu/common/SubMenuWithButton.js +56 -0
  687. package/lib/module/ui/components/menu/common/SubMenuWithButton.js.map +1 -0
  688. package/lib/module/ui/components/menu/common/barrel.js +7 -0
  689. package/lib/module/ui/components/menu/common/barrel.js.map +1 -0
  690. package/lib/module/ui/components/message/CastMessage.js +70 -0
  691. package/lib/module/ui/components/message/CastMessage.js.map +1 -0
  692. package/lib/module/ui/components/message/ErrorDisplay.js +46 -0
  693. package/lib/module/ui/components/message/ErrorDisplay.js.map +1 -0
  694. package/lib/module/ui/components/message/barrel.js +3 -0
  695. package/lib/module/ui/components/message/barrel.js.map +1 -0
  696. package/lib/module/ui/components/seekbar/SeekBar.js +184 -0
  697. package/lib/module/ui/components/seekbar/SeekBar.js.map +1 -0
  698. package/lib/module/ui/components/seekbar/barrel.js +3 -0
  699. package/lib/module/ui/components/seekbar/barrel.js.map +1 -0
  700. package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js +37 -0
  701. package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +1 -0
  702. package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js +11 -0
  703. package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js.map +1 -0
  704. package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js +246 -0
  705. package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js.map +1 -0
  706. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js +2 -0
  707. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +1 -0
  708. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +3 -0
  709. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +1 -0
  710. package/lib/module/ui/components/seekbar/thumbnail/barrel.js +3 -0
  711. package/lib/module/ui/components/seekbar/thumbnail/barrel.js.map +1 -0
  712. package/lib/module/ui/components/timelabel/StaticTimeLabel.js +48 -0
  713. package/lib/module/ui/components/timelabel/StaticTimeLabel.js.map +1 -0
  714. package/lib/module/ui/components/timelabel/TimeLabel.js +78 -0
  715. package/lib/module/ui/components/timelabel/TimeLabel.js.map +1 -0
  716. package/lib/module/ui/components/timelabel/barrel.js +3 -0
  717. package/lib/module/ui/components/timelabel/barrel.js.map +1 -0
  718. package/lib/module/ui/components/uicontroller/UiContainer.js +336 -0
  719. package/lib/module/ui/components/uicontroller/UiContainer.js.map +1 -0
  720. package/lib/module/ui/components/uicontroller/UiControls.js +2 -0
  721. package/lib/module/ui/components/uicontroller/UiControls.js.map +1 -0
  722. package/lib/module/ui/components/uicontroller/barrel.js +3 -0
  723. package/lib/module/ui/components/uicontroller/barrel.js.map +1 -0
  724. package/lib/module/ui/components/util/PlayerContext.js +11 -0
  725. package/lib/module/ui/components/util/PlayerContext.js.map +1 -0
  726. package/lib/module/ui/components/util/TrackUtils.js +60 -0
  727. package/lib/module/ui/components/util/TrackUtils.js.map +1 -0
  728. package/lib/module/ui/components/util/barrel.js +2 -0
  729. package/lib/module/ui/components/util/barrel.js.map +1 -0
  730. package/lib/module/ui/utils/ArrayUtils.js +12 -0
  731. package/lib/module/ui/utils/ArrayUtils.js.map +1 -0
  732. package/lib/module/ui/utils/language/Language.js +27 -0
  733. package/lib/module/ui/utils/language/Language.js.map +1 -0
  734. package/lib/module/ui/utils/language/languages.json +1658 -0
  735. package/lib/module/web/platform/BrowserDetection.js +27 -0
  736. package/lib/module/web/platform/BrowserDetection.js.map +1 -0
  737. package/lib/module/web/platform/browser.d.js +2 -0
  738. package/lib/module/web/platform/browser.d.js.map +1 -0
  739. package/lib/typescript/api/THEOplayerView.d.ts +21 -0
  740. package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts +22 -0
  741. package/lib/typescript/api/backgroundAudio/barrel.d.ts +1 -0
  742. package/lib/typescript/api/barrel.d.ts +16 -0
  743. package/lib/typescript/api/cast/Airplay.d.ts +27 -0
  744. package/lib/typescript/api/cast/CastAPI.d.ts +25 -0
  745. package/lib/typescript/api/cast/CastState.d.ts +15 -0
  746. package/lib/typescript/api/cast/Chromecast.d.ts +39 -0
  747. package/lib/typescript/api/config/PlayerConfiguration.d.ts +58 -0
  748. package/lib/typescript/api/event/AdEvent.d.ts +90 -0
  749. package/lib/typescript/api/event/CastEvent.d.ts +29 -0
  750. package/lib/typescript/api/event/Event.d.ts +15 -0
  751. package/lib/typescript/api/event/EventDispatcher.d.ts +44 -0
  752. package/lib/typescript/api/event/EventListener.d.ts +7 -0
  753. package/lib/typescript/api/event/PlayerEvent.d.ts +107 -0
  754. package/lib/typescript/api/event/TrackEvent.d.ts +92 -0
  755. package/lib/typescript/api/event/barrel.d.ts +5 -0
  756. package/lib/typescript/api/media/MediaControlConfiguration.d.ts +26 -0
  757. package/lib/typescript/api/media/barrel.d.ts +1 -0
  758. package/lib/typescript/api/pip/PiPConfiguration.d.ts +13 -0
  759. package/lib/typescript/api/pip/barrel.d.ts +1 -0
  760. package/lib/typescript/api/player/PlayerEventMap.d.ts +158 -0
  761. package/lib/typescript/api/player/THEOplayer.d.ts +154 -0
  762. package/lib/typescript/api/player/barrel.d.ts +2 -0
  763. package/lib/typescript/api/presentation/PresentationMode.d.ts +13 -0
  764. package/lib/typescript/api/presentation/barrel.d.ts +1 -0
  765. package/lib/typescript/api/source/ads/Ads.d.ts +99 -0
  766. package/lib/typescript/api/source/ads/FreeWheelAdDescription.d.ts +85 -0
  767. package/lib/typescript/api/source/ads/IMAAdDescription.d.ts +25 -0
  768. package/lib/typescript/api/track/MediaTrack.d.ts +50 -0
  769. package/lib/typescript/api/track/TextTrack.d.ts +100 -0
  770. package/lib/typescript/api/track/TextTrackStyle.d.ts +71 -0
  771. package/lib/typescript/api/track/Track.d.ts +46 -0
  772. package/lib/typescript/api/track/barrel.d.ts +6 -0
  773. package/lib/typescript/index.d.ts +4 -0
  774. package/lib/typescript/internal/THEOplayerView.d.ts +44 -0
  775. package/lib/typescript/internal/THEOplayerView.web.d.ts +3 -0
  776. package/lib/typescript/internal/adapter/NativePlayerState.d.ts +27 -0
  777. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +73 -0
  778. package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts +70 -0
  779. package/lib/typescript/internal/adapter/WebEventForwarder.d.ts +52 -0
  780. package/lib/typescript/internal/adapter/abr/AbrAdapter.d.ts +12 -0
  781. package/lib/typescript/internal/adapter/ads/THEOplayerNativeAdsAdapter.d.ts +13 -0
  782. package/lib/typescript/internal/adapter/ads/THEOplayerNativeGoogleDAI.d.ts +9 -0
  783. package/lib/typescript/internal/adapter/ads/THEOplayerWebAdsAdapter.d.ts +14 -0
  784. package/lib/typescript/internal/adapter/cast/THEOplayerNativeAirplay.d.ts +15 -0
  785. package/lib/typescript/internal/adapter/cast/THEOplayerNativeCastAdapter.d.ts +14 -0
  786. package/lib/typescript/internal/adapter/cast/THEOplayerNativeChromecast.d.ts +18 -0
  787. package/lib/typescript/internal/adapter/cast/THEOplayerWebCastAdapter.d.ts +9 -0
  788. package/lib/typescript/internal/adapter/event/BaseEvent.d.ts +6 -0
  789. package/lib/typescript/internal/adapter/event/DefaultEventDispatcher.d.ts +9 -0
  790. package/lib/typescript/internal/adapter/event/PlayerEvents.d.ts +99 -0
  791. package/lib/typescript/internal/adapter/event/native/NativeAdEvent.d.ts +11 -0
  792. package/lib/typescript/internal/adapter/event/native/NativeCastEvent.d.ts +15 -0
  793. package/lib/typescript/internal/adapter/event/native/NativePlayerEvent.d.ts +93 -0
  794. package/lib/typescript/internal/adapter/event/native/NativeTrackEvent.d.ts +102 -0
  795. package/lib/typescript/internal/adapter/track/TextTrackStyleAdapter.d.ts +17 -0
  796. package/lib/typescript/internal/adapter/web/TrackUtils.d.ts +9 -0
  797. package/lib/typescript/internal/adapter/web/WebMediaSession.d.ts +33 -0
  798. package/lib/typescript/internal/adapter/web/WebPresentationModeManager.d.ts +15 -0
  799. package/lib/typescript/internal/utils/arrayUtil.d.ts +2 -0
  800. package/lib/typescript/ui/THEOplayerDefaultUi.d.ts +35 -0
  801. package/lib/typescript/ui/THEOplayerTheme.d.ts +84 -0
  802. package/lib/typescript/ui/barrel.d.ts +3 -0
  803. package/lib/typescript/ui/components/activityindicator/CenteredDelayedActivityIndicator.d.ts +25 -0
  804. package/lib/typescript/ui/components/activityindicator/DelayedActivityIndicator.d.ts +9 -0
  805. package/lib/typescript/ui/components/activityindicator/barrel.d.ts +2 -0
  806. package/lib/typescript/ui/components/barrel.d.ts +9 -0
  807. package/lib/typescript/ui/components/button/AirplayButton.d.ts +18 -0
  808. package/lib/typescript/ui/components/button/ChromecastButton.d.ts +19 -0
  809. package/lib/typescript/ui/components/button/ChromecastButton.web.d.ts +19 -0
  810. package/lib/typescript/ui/components/button/FullscreenButton.d.ts +17 -0
  811. package/lib/typescript/ui/components/button/MuteButton.d.ts +16 -0
  812. package/lib/typescript/ui/components/button/PipButton.d.ts +17 -0
  813. package/lib/typescript/ui/components/button/PlayButton.d.ts +28 -0
  814. package/lib/typescript/ui/components/button/SkipButton.d.ts +33 -0
  815. package/lib/typescript/ui/components/button/actionbutton/ActionButton.d.ts +41 -0
  816. package/lib/typescript/ui/components/button/barrel.d.ts +9 -0
  817. package/lib/typescript/ui/components/button/svg/AirplaySvg.d.ts +3 -0
  818. package/lib/typescript/ui/components/button/svg/ArrowForwardSvg.d.ts +3 -0
  819. package/lib/typescript/ui/components/button/svg/BackSvg.d.ts +3 -0
  820. package/lib/typescript/ui/components/button/svg/BackwardSvg.d.ts +3 -0
  821. package/lib/typescript/ui/components/button/svg/ChromecastSvg.d.ts +3 -0
  822. package/lib/typescript/ui/components/button/svg/ErrorSvg.d.ts +3 -0
  823. package/lib/typescript/ui/components/button/svg/ForwardSvg.d.ts +3 -0
  824. package/lib/typescript/ui/components/button/svg/FullscreenEnterSvg.d.ts +3 -0
  825. package/lib/typescript/ui/components/button/svg/FullscreenExitSvg.d.ts +3 -0
  826. package/lib/typescript/ui/components/button/svg/LanguageSvg.d.ts +3 -0
  827. package/lib/typescript/ui/components/button/svg/ListSvg.d.ts +3 -0
  828. package/lib/typescript/ui/components/button/svg/PauseSvg.d.ts +3 -0
  829. package/lib/typescript/ui/components/button/svg/PipEnterSvg.d.ts +3 -0
  830. package/lib/typescript/ui/components/button/svg/PipExitSvg.d.ts +3 -0
  831. package/lib/typescript/ui/components/button/svg/PlaySvg.d.ts +3 -0
  832. package/lib/typescript/ui/components/button/svg/ReplaySvg.d.ts +3 -0
  833. package/lib/typescript/ui/components/button/svg/SettingsSvg.d.ts +3 -0
  834. package/lib/typescript/ui/components/button/svg/SvgUtils.d.ts +3 -0
  835. package/lib/typescript/ui/components/button/svg/VolumeOffSvg.d.ts +3 -0
  836. package/lib/typescript/ui/components/button/svg/VolumeUpSvg.d.ts +3 -0
  837. package/lib/typescript/ui/components/button/svg/barrel.d.ts +20 -0
  838. package/lib/typescript/ui/components/controlbar/ControlBar.d.ts +39 -0
  839. package/lib/typescript/ui/components/controlbar/Spacer.d.ts +5 -0
  840. package/lib/typescript/ui/components/controlbar/barrel.d.ts +2 -0
  841. package/lib/typescript/ui/components/menu/LanguageMenuButton.d.ts +40 -0
  842. package/lib/typescript/ui/components/menu/PlaybackRateSubMenu.d.ts +36 -0
  843. package/lib/typescript/ui/components/menu/QualitySubMenu.d.ts +29 -0
  844. package/lib/typescript/ui/components/menu/SettingsMenuButton.d.ts +12 -0
  845. package/lib/typescript/ui/components/menu/barrel.d.ts +5 -0
  846. package/lib/typescript/ui/components/menu/common/MenuButton.d.ts +25 -0
  847. package/lib/typescript/ui/components/menu/common/MenuRadioButton.d.ts +33 -0
  848. package/lib/typescript/ui/components/menu/common/MenuTitle.d.ts +20 -0
  849. package/lib/typescript/ui/components/menu/common/MenuView.d.ts +21 -0
  850. package/lib/typescript/ui/components/menu/common/ScrollableMenu.d.ts +23 -0
  851. package/lib/typescript/ui/components/menu/common/SubMenuWithButton.d.ts +29 -0
  852. package/lib/typescript/ui/components/menu/common/barrel.d.ts +6 -0
  853. package/lib/typescript/ui/components/message/CastMessage.d.ts +16 -0
  854. package/lib/typescript/ui/components/message/ErrorDisplay.d.ts +12 -0
  855. package/lib/typescript/ui/components/message/barrel.d.ts +2 -0
  856. package/lib/typescript/ui/components/seekbar/SeekBar.d.ts +41 -0
  857. package/lib/typescript/ui/components/seekbar/barrel.d.ts +2 -0
  858. package/lib/typescript/ui/components/seekbar/thumbnail/SingleThumbnailView.d.ts +8 -0
  859. package/lib/typescript/ui/components/seekbar/thumbnail/Thumbnail.d.ts +56 -0
  860. package/lib/typescript/ui/components/seekbar/thumbnail/ThumbnailView.d.ts +60 -0
  861. package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.d.ts +1 -0
  862. package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.web.d.ts +1 -0
  863. package/lib/typescript/ui/components/seekbar/thumbnail/barrel.d.ts +2 -0
  864. package/lib/typescript/ui/components/timelabel/StaticTimeLabel.d.ts +24 -0
  865. package/lib/typescript/ui/components/timelabel/TimeLabel.d.ts +32 -0
  866. package/lib/typescript/ui/components/timelabel/barrel.d.ts +2 -0
  867. package/lib/typescript/ui/components/uicontroller/UiContainer.d.ts +115 -0
  868. package/lib/typescript/ui/components/uicontroller/UiControls.d.ts +14 -0
  869. package/lib/typescript/ui/components/uicontroller/barrel.d.ts +2 -0
  870. package/lib/typescript/ui/components/util/PlayerContext.d.ts +22 -0
  871. package/lib/typescript/ui/components/util/TrackUtils.d.ts +10 -0
  872. package/lib/typescript/ui/components/util/barrel.d.ts +1 -0
  873. package/lib/typescript/ui/utils/ArrayUtils.d.ts +2 -0
  874. package/lib/typescript/ui/utils/language/Language.d.ts +19 -0
  875. package/lib/typescript/web/platform/BrowserDetection.d.ts +23 -0
  876. package/package.json +15 -9
  877. package/react-native-theoplayer.json +8 -0
  878. package/react-native-theoplayer.podspec +32 -6
  879. package/src/api/THEOplayerView.ts +5 -248
  880. package/src/api/backgroundAudio/BackgroundAudioConfiguration.ts +23 -0
  881. package/src/api/backgroundAudio/barrel.ts +1 -0
  882. package/src/api/barrel.ts +4 -0
  883. package/src/api/cast/Airplay.ts +3 -3
  884. package/src/api/cast/CastAPI.ts +3 -4
  885. package/src/api/cast/CastState.ts +6 -1
  886. package/src/api/cast/Chromecast.ts +3 -3
  887. package/src/api/config/PlayerConfiguration.ts +38 -0
  888. package/src/api/event/AdEvent.ts +25 -31
  889. package/src/api/event/CastEvent.ts +14 -20
  890. package/src/api/event/Event.ts +16 -0
  891. package/src/api/event/EventDispatcher.ts +48 -0
  892. package/src/api/event/EventListener.ts +8 -0
  893. package/src/api/event/PlayerEvent.ts +69 -8
  894. package/src/api/event/TrackEvent.ts +28 -29
  895. package/src/api/event/barrel.ts +1 -0
  896. package/src/api/media/MediaControlConfiguration.ts +26 -0
  897. package/src/api/media/barrel.ts +1 -0
  898. package/src/api/pip/PiPConfiguration.ts +13 -0
  899. package/src/api/pip/barrel.ts +1 -0
  900. package/src/api/player/PlayerEventMap.ts +198 -0
  901. package/src/api/player/THEOplayer.ts +185 -0
  902. package/src/api/player/barrel.ts +2 -0
  903. package/src/api/presentation/PresentationMode.ts +14 -0
  904. package/src/api/presentation/barrel.ts +1 -0
  905. package/src/api/source/ads/Ads.ts +6 -1
  906. package/src/api/source/ads/FreeWheelAdDescription.ts +2 -2
  907. package/src/api/source/ads/IMAAdDescription.ts +2 -2
  908. package/src/api/track/MediaTrack.ts +2 -11
  909. package/src/api/track/TextTrack.ts +20 -15
  910. package/src/api/track/TextTrackStyle.ts +77 -0
  911. package/src/api/track/Track.ts +12 -0
  912. package/src/api/track/barrel.ts +1 -0
  913. package/src/index.tsx +1 -0
  914. package/src/internal/THEOplayerView.tsx +209 -236
  915. package/src/internal/THEOplayerView.web.tsx +82 -494
  916. package/src/internal/adapter/NativePlayerState.ts +28 -0
  917. package/src/internal/adapter/THEOplayerAdapter.ts +456 -0
  918. package/src/internal/adapter/THEOplayerWebAdapter.ts +275 -0
  919. package/src/internal/adapter/WebEventForwarder.ts +399 -0
  920. package/src/internal/adapter/abr/AbrAdapter.ts +37 -0
  921. package/src/internal/adapter/ads/THEOplayerNativeAdsAdapter.ts +39 -0
  922. package/src/internal/adapter/ads/THEOplayerNativeGoogleDAI.ts +22 -0
  923. package/src/internal/adapter/ads/THEOplayerWebAdsAdapter.ts +51 -0
  924. package/src/internal/adapter/cast/THEOplayerNativeAirplay.ts +47 -0
  925. package/src/internal/adapter/cast/THEOplayerNativeCastAdapter.ts +39 -0
  926. package/src/internal/adapter/cast/THEOplayerNativeChromecast.ts +57 -0
  927. package/src/internal/adapter/cast/THEOplayerWebCastAdapter.ts +22 -0
  928. package/src/internal/adapter/event/BaseEvent.ts +5 -0
  929. package/src/internal/adapter/event/DefaultEventDispatcher.ts +35 -0
  930. package/src/internal/adapter/event/PlayerEvents.ts +174 -0
  931. package/src/internal/adapter/event/native/NativeAdEvent.ts +13 -0
  932. package/src/internal/adapter/event/native/NativeCastEvent.ts +22 -0
  933. package/src/internal/adapter/event/native/NativePlayerEvent.ts +111 -0
  934. package/src/internal/adapter/event/native/NativeTrackEvent.ts +159 -0
  935. package/src/internal/adapter/track/TextTrackStyleAdapter.ts +55 -0
  936. package/src/internal/adapter/web/TrackUtils.ts +73 -0
  937. package/src/internal/adapter/web/WebMediaSession.ts +193 -0
  938. package/src/internal/adapter/web/WebPresentationModeManager.ts +96 -0
  939. package/src/internal/utils/arrayUtil.ts +12 -0
  940. package/src/ui/THEOplayerDefaultUi.tsx +108 -0
  941. package/src/ui/THEOplayerTheme.ts +112 -0
  942. package/src/ui/barrel.ts +3 -0
  943. package/src/ui/components/activityindicator/CenteredDelayedActivityIndicator.tsx +96 -0
  944. package/src/ui/components/activityindicator/DelayedActivityIndicator.tsx +32 -0
  945. package/src/ui/components/activityindicator/barrel.ts +2 -0
  946. package/src/ui/components/barrel.ts +9 -0
  947. package/src/ui/components/button/AirplayButton.tsx +64 -0
  948. package/src/ui/components/button/ChromecastButton.tsx +60 -0
  949. package/src/ui/components/button/ChromecastButton.web.tsx +66 -0
  950. package/src/ui/components/button/FullscreenButton.tsx +60 -0
  951. package/src/ui/components/button/MuteButton.tsx +52 -0
  952. package/src/ui/components/button/PipButton.tsx +61 -0
  953. package/src/ui/components/button/PlayButton.tsx +107 -0
  954. package/src/ui/components/button/SkipButton.tsx +112 -0
  955. package/src/ui/components/button/actionbutton/ActionButton.tsx +105 -0
  956. package/src/ui/components/button/barrel.ts +9 -0
  957. package/src/ui/components/button/svg/AirplaySvg.tsx +18 -0
  958. package/src/ui/components/button/svg/ArrowForwardSvg.tsx +18 -0
  959. package/src/ui/components/button/svg/BackSvg.tsx +18 -0
  960. package/src/ui/components/button/svg/BackwardSvg.tsx +18 -0
  961. package/src/ui/components/button/svg/ChromecastSvg.tsx +18 -0
  962. package/src/ui/components/button/svg/ErrorSvg.tsx +18 -0
  963. package/src/ui/components/button/svg/ForwardSvg.tsx +18 -0
  964. package/src/ui/components/button/svg/FullscreenEnterSvg.tsx +18 -0
  965. package/src/ui/components/button/svg/FullscreenExitSvg.tsx +18 -0
  966. package/src/ui/components/button/svg/LanguageSvg.tsx +18 -0
  967. package/src/ui/components/button/svg/ListSvg.tsx +18 -0
  968. package/src/ui/components/button/svg/PauseSvg.tsx +18 -0
  969. package/src/ui/components/button/svg/PipEnterSvg.tsx +18 -0
  970. package/src/ui/components/button/svg/PipExitSvg.tsx +18 -0
  971. package/src/ui/components/button/svg/PlaySvg.tsx +18 -0
  972. package/src/ui/components/button/svg/ReplaySvg.tsx +18 -0
  973. package/src/ui/components/button/svg/SettingsSvg.tsx +18 -0
  974. package/src/ui/components/button/svg/SvgUtils.ts +4 -0
  975. package/src/ui/components/button/svg/VolumeOffSvg.tsx +18 -0
  976. package/src/ui/components/button/svg/VolumeUpSvg.tsx +18 -0
  977. package/src/ui/components/button/svg/barrel.ts +20 -0
  978. package/src/ui/components/button/svg/res/AirPlayButton.html +6 -0
  979. package/src/ui/components/button/svg/res/Airplay.svg +1 -0
  980. package/src/ui/components/button/svg/res/ChromecastButton.html +25 -0
  981. package/src/ui/components/button/svg/res/arrow_forward.svg +1 -0
  982. package/src/ui/components/button/svg/res/back.svg +1 -0
  983. package/src/ui/components/button/svg/res/backward.svg +1 -0
  984. package/src/ui/components/button/svg/res/chromecast-48px.svg +1 -0
  985. package/src/ui/components/button/svg/res/close.svg +1 -0
  986. package/src/ui/components/button/svg/res/error.svg +1 -0
  987. package/src/ui/components/button/svg/res/forward.svg +1 -0
  988. package/src/ui/components/button/svg/res/fullscreen-enter.svg +1 -0
  989. package/src/ui/components/button/svg/res/fullscreen-exit.svg +1 -0
  990. package/src/ui/components/button/svg/res/language.svg +1 -0
  991. package/src/ui/components/button/svg/res/list.svg +1 -0
  992. package/src/ui/components/button/svg/res/live.svg +1 -0
  993. package/src/ui/components/button/svg/res/pause.svg +1 -0
  994. package/src/ui/components/button/svg/res/pip_enter.svg +1 -0
  995. package/src/ui/components/button/svg/res/pip_exit.svg +1 -0
  996. package/src/ui/components/button/svg/res/play.svg +1 -0
  997. package/src/ui/components/button/svg/res/replay.svg +1 -0
  998. package/src/ui/components/button/svg/res/settings.svg +1 -0
  999. package/src/ui/components/button/svg/res/skip-next.svg +1 -0
  1000. package/src/ui/components/button/svg/res/volume-high.svg +1 -0
  1001. package/src/ui/components/button/svg/res/volume-low.svg +1 -0
  1002. package/src/ui/components/button/svg/res/volume-off.svg +1 -0
  1003. package/src/ui/components/controlbar/ControlBar.tsx +69 -0
  1004. package/src/ui/components/controlbar/Spacer.tsx +9 -0
  1005. package/src/ui/components/controlbar/barrel.ts +2 -0
  1006. package/src/ui/components/menu/LanguageMenuButton.tsx +192 -0
  1007. package/src/ui/components/menu/PlaybackRateSubMenu.tsx +93 -0
  1008. package/src/ui/components/menu/QualitySubMenu.tsx +148 -0
  1009. package/src/ui/components/menu/SettingsMenuButton.tsx +25 -0
  1010. package/src/ui/components/menu/barrel.ts +5 -0
  1011. package/src/ui/components/menu/common/MenuButton.tsx +49 -0
  1012. package/src/ui/components/menu/common/MenuRadioButton.tsx +65 -0
  1013. package/src/ui/components/menu/common/MenuTitle.tsx +37 -0
  1014. package/src/ui/components/menu/common/MenuView.tsx +62 -0
  1015. package/src/ui/components/menu/common/ScrollableMenu.tsx +43 -0
  1016. package/src/ui/components/menu/common/SubMenuWithButton.tsx +58 -0
  1017. package/src/ui/components/menu/common/barrel.ts +6 -0
  1018. package/src/ui/components/message/CastMessage.tsx +74 -0
  1019. package/src/ui/components/message/ErrorDisplay.tsx +43 -0
  1020. package/src/ui/components/message/barrel.ts +2 -0
  1021. package/src/ui/components/seekbar/SeekBar.tsx +178 -0
  1022. package/src/ui/components/seekbar/barrel.ts +2 -0
  1023. package/src/ui/components/seekbar/thumbnail/SingleThumbnailView.tsx +38 -0
  1024. package/src/ui/components/seekbar/thumbnail/Thumbnail.ts +72 -0
  1025. package/src/ui/components/seekbar/thumbnail/ThumbnailView.tsx +266 -0
  1026. package/src/ui/components/seekbar/thumbnail/Urlpolyfill.ts +1 -0
  1027. package/src/ui/components/seekbar/thumbnail/Urlpolyfill.web.ts +2 -0
  1028. package/src/ui/components/seekbar/thumbnail/barrel.ts +2 -0
  1029. package/src/ui/components/timelabel/StaticTimeLabel.tsx +63 -0
  1030. package/src/ui/components/timelabel/TimeLabel.tsx +79 -0
  1031. package/src/ui/components/timelabel/barrel.ts +2 -0
  1032. package/src/ui/components/uicontroller/UiContainer.tsx +355 -0
  1033. package/src/ui/components/uicontroller/UiControls.ts +31 -0
  1034. package/src/ui/components/uicontroller/barrel.ts +2 -0
  1035. package/src/ui/components/util/PlayerContext.ts +29 -0
  1036. package/src/ui/components/util/TrackUtils.ts +62 -0
  1037. package/src/ui/components/util/barrel.ts +1 -0
  1038. package/src/ui/utils/ArrayUtils.ts +12 -0
  1039. package/src/ui/utils/language/Language.ts +38 -0
  1040. package/src/ui/utils/language/languages.json +1658 -0
  1041. package/src/web/platform/BrowserDetection.ts +38 -0
  1042. package/src/web/platform/browser.d.ts +43 -0
  1043. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.3.0/ads-wrapper-4.3.0.aar +0 -0
  1044. package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.3.0/ads-wrapper-4.3.0.pom +0 -9
  1045. package/ios/custom/Frameworks/ios/put_custom_ios_xcframework_here.txt +0 -2
  1046. package/ios/custom/Frameworks/tvos/put_custom_tvos_xcframework_here.txt +0 -2
  1047. package/ios/custom/react-native-theoplayer_custom.podspec +0 -46
  1048. package/ios/custom/theofeatures.sh +0 -14
  1049. package/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.js +0 -54
  1050. package/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.js.map +0 -1
  1051. package/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.js +0 -34
  1052. package/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.js.map +0 -1
  1053. package/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.js +0 -78
  1054. package/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.js.map +0 -1
  1055. package/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.js +0 -32
  1056. package/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.js.map +0 -1
  1057. package/lib/commonjs/internal/cast/THEOplayerNativeAirplay.js +0 -34
  1058. package/lib/commonjs/internal/cast/THEOplayerNativeAirplay.js.map +0 -1
  1059. package/lib/commonjs/internal/cast/THEOplayerNativeCastApi.js +0 -46
  1060. package/lib/commonjs/internal/cast/THEOplayerNativeCastApi.js.map +0 -1
  1061. package/lib/commonjs/internal/cast/THEOplayerNativeChromecast.js +0 -42
  1062. package/lib/commonjs/internal/cast/THEOplayerNativeChromecast.js.map +0 -1
  1063. package/lib/commonjs/internal/cast/THEOplayerWebCastApi.js +0 -31
  1064. package/lib/commonjs/internal/cast/THEOplayerWebCastApi.js.map +0 -1
  1065. package/lib/commonjs/internal/web/TrackUtils.js +0 -87
  1066. package/lib/commonjs/internal/web/TrackUtils.js.map +0 -1
  1067. package/lib/commonjs/internal/web/stub/CastButtonStub.js +0 -16
  1068. package/lib/commonjs/internal/web/stub/CastButtonStub.js.map +0 -1
  1069. package/lib/module/internal/ads/THEOplayerNativeAdsAPI.js +0 -43
  1070. package/lib/module/internal/ads/THEOplayerNativeAdsAPI.js.map +0 -1
  1071. package/lib/module/internal/ads/THEOplayerNativeGoogleDAI.js +0 -24
  1072. package/lib/module/internal/ads/THEOplayerNativeGoogleDAI.js.map +0 -1
  1073. package/lib/module/internal/ads/THEOplayerWebAdsAPI.js +0 -68
  1074. package/lib/module/internal/ads/THEOplayerWebAdsAPI.js.map +0 -1
  1075. package/lib/module/internal/ads/THEOplayerWebGoogleDAI.js +0 -23
  1076. package/lib/module/internal/ads/THEOplayerWebGoogleDAI.js.map +0 -1
  1077. package/lib/module/internal/cast/THEOplayerNativeAirplay.js +0 -24
  1078. package/lib/module/internal/cast/THEOplayerNativeAirplay.js.map +0 -1
  1079. package/lib/module/internal/cast/THEOplayerNativeCastApi.js +0 -34
  1080. package/lib/module/internal/cast/THEOplayerNativeCastApi.js.map +0 -1
  1081. package/lib/module/internal/cast/THEOplayerNativeChromecast.js +0 -32
  1082. package/lib/module/internal/cast/THEOplayerNativeChromecast.js.map +0 -1
  1083. package/lib/module/internal/cast/THEOplayerWebCastApi.js +0 -22
  1084. package/lib/module/internal/cast/THEOplayerWebCastApi.js.map +0 -1
  1085. package/lib/module/internal/web/TrackUtils.js +0 -72
  1086. package/lib/module/internal/web/TrackUtils.js.map +0 -1
  1087. package/lib/module/internal/web/stub/CastButtonStub.js +0 -6
  1088. package/lib/module/internal/web/stub/CastButtonStub.js.map +0 -1
  1089. package/lib/typescript/babel.config.d.ts +0 -1
  1090. package/lib/typescript/lib/commonjs/api/THEOplayerView.d.ts +0 -1
  1091. package/lib/typescript/lib/commonjs/api/abr/ABRConfiguration.d.ts +0 -0
  1092. package/lib/typescript/lib/commonjs/api/abr/barrel.d.ts +0 -1
  1093. package/lib/typescript/lib/commonjs/api/ads/Ad.d.ts +0 -1
  1094. package/lib/typescript/lib/commonjs/api/ads/AdBreak.d.ts +0 -1
  1095. package/lib/typescript/lib/commonjs/api/ads/AdsAPI.d.ts +0 -1
  1096. package/lib/typescript/lib/commonjs/api/ads/AdsConfiguration.d.ts +0 -1
  1097. package/lib/typescript/lib/commonjs/api/ads/CompanionAd.d.ts +0 -0
  1098. package/lib/typescript/lib/commonjs/api/ads/GoogleDai.d.ts +0 -0
  1099. package/lib/typescript/lib/commonjs/api/ads/GoogleImaAd.d.ts +0 -1
  1100. package/lib/typescript/lib/commonjs/api/ads/GoogleImaConfiguration.d.ts +0 -0
  1101. package/lib/typescript/lib/commonjs/api/ads/barrel.d.ts +0 -1
  1102. package/lib/typescript/lib/commonjs/api/barrel.d.ts +0 -1
  1103. package/lib/typescript/lib/commonjs/api/cast/Airplay.d.ts +0 -1
  1104. package/lib/typescript/lib/commonjs/api/cast/CastAPI.d.ts +0 -1
  1105. package/lib/typescript/lib/commonjs/api/cast/CastConfiguration.d.ts +0 -0
  1106. package/lib/typescript/lib/commonjs/api/cast/CastState.d.ts +0 -0
  1107. package/lib/typescript/lib/commonjs/api/cast/Chromecast.d.ts +0 -1
  1108. package/lib/typescript/lib/commonjs/api/cast/barrel.d.ts +0 -1
  1109. package/lib/typescript/lib/commonjs/api/config/PlayerConfiguration.d.ts +0 -1
  1110. package/lib/typescript/lib/commonjs/api/config/barrel.d.ts +0 -1
  1111. package/lib/typescript/lib/commonjs/api/drm/ContentProtectionAPI.d.ts +0 -1
  1112. package/lib/typescript/lib/commonjs/api/drm/ContentProtectionIntegration.d.ts +0 -1
  1113. package/lib/typescript/lib/commonjs/api/drm/ContentProtectionIntegrationFactory.d.ts +0 -1
  1114. package/lib/typescript/lib/commonjs/api/drm/ContentProtectionRequest.d.ts +0 -0
  1115. package/lib/typescript/lib/commonjs/api/drm/ContentProtectionResponse.d.ts +0 -1
  1116. package/lib/typescript/lib/commonjs/api/drm/barrel.d.ts +0 -1
  1117. package/lib/typescript/lib/commonjs/api/error/ChromecastError.d.ts +0 -0
  1118. package/lib/typescript/lib/commonjs/api/error/PlayerError.d.ts +0 -0
  1119. package/lib/typescript/lib/commonjs/api/error/barrel.d.ts +0 -1
  1120. package/lib/typescript/lib/commonjs/api/event/AdEvent.d.ts +0 -2
  1121. package/lib/typescript/lib/commonjs/api/event/CastEvent.d.ts +0 -2
  1122. package/lib/typescript/lib/commonjs/api/event/PlayerEvent.d.ts +0 -1
  1123. package/lib/typescript/lib/commonjs/api/event/TrackEvent.d.ts +0 -9
  1124. package/lib/typescript/lib/commonjs/api/event/barrel.d.ts +0 -1
  1125. package/lib/typescript/lib/commonjs/api/source/SourceDescription.d.ts +0 -1
  1126. package/lib/typescript/lib/commonjs/api/source/ads/Ads.d.ts +0 -0
  1127. package/lib/typescript/lib/commonjs/api/source/ads/FreeWheelAdDescription.d.ts +0 -1
  1128. package/lib/typescript/lib/commonjs/api/source/ads/IMAAdDescription.d.ts +0 -1
  1129. package/lib/typescript/lib/commonjs/api/source/ads/SpotXAdDescription.d.ts +0 -1
  1130. package/lib/typescript/lib/commonjs/api/source/ads/THEOplayerAdDescription.d.ts +0 -1
  1131. package/lib/typescript/lib/commonjs/api/source/ads/barrel.d.ts +0 -1
  1132. package/lib/typescript/lib/commonjs/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +0 -1
  1133. package/lib/typescript/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +0 -1
  1134. package/lib/typescript/lib/commonjs/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +0 -1
  1135. package/lib/typescript/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +0 -1
  1136. package/lib/typescript/lib/commonjs/api/source/ads/ssai/barrel.d.ts +0 -1
  1137. package/lib/typescript/lib/commonjs/api/source/barrel.d.ts +0 -1
  1138. package/lib/typescript/lib/commonjs/api/source/dash/DashPlaybackConfiguration.d.ts +0 -0
  1139. package/lib/typescript/lib/commonjs/api/source/dash/barrel.d.ts +0 -1
  1140. package/lib/typescript/lib/commonjs/api/source/drm/DRMConfiguration.d.ts +0 -0
  1141. package/lib/typescript/lib/commonjs/api/source/drm/barrel.d.ts +0 -1
  1142. package/lib/typescript/lib/commonjs/api/source/hls/HlsPlaybackConfiguration.d.ts +0 -0
  1143. package/lib/typescript/lib/commonjs/api/source/hls/barrel.d.ts +0 -1
  1144. package/lib/typescript/lib/commonjs/api/source/metadata/MetadataDescription.d.ts +0 -0
  1145. package/lib/typescript/lib/commonjs/api/source/metadata/barrel.d.ts +0 -1
  1146. package/lib/typescript/lib/commonjs/api/timeranges/TimeRange.d.ts +0 -0
  1147. package/lib/typescript/lib/commonjs/api/timeranges/barrel.d.ts +0 -1
  1148. package/lib/typescript/lib/commonjs/api/track/MediaTrack.d.ts +0 -9
  1149. package/lib/typescript/lib/commonjs/api/track/Quality.d.ts +0 -0
  1150. package/lib/typescript/lib/commonjs/api/track/TextTrack.d.ts +0 -21
  1151. package/lib/typescript/lib/commonjs/api/track/TextTrackCue.d.ts +0 -0
  1152. package/lib/typescript/lib/commonjs/api/track/Track.d.ts +0 -0
  1153. package/lib/typescript/lib/commonjs/api/track/barrel.d.ts +0 -1
  1154. package/lib/typescript/lib/commonjs/api/utils/TypeUtils.d.ts +0 -13
  1155. package/lib/typescript/lib/commonjs/api/utils/barrel.d.ts +0 -1
  1156. package/lib/typescript/lib/commonjs/index.d.ts +0 -5
  1157. package/lib/typescript/lib/commonjs/internal/THEOplayerView.d.ts +0 -24
  1158. package/lib/typescript/lib/commonjs/internal/THEOplayerView.style.d.ts +0 -12
  1159. package/lib/typescript/lib/commonjs/internal/THEOplayerView.web.d.ts +0 -24
  1160. package/lib/typescript/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.d.ts +0 -14
  1161. package/lib/typescript/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.d.ts +0 -9
  1162. package/lib/typescript/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.d.ts +0 -14
  1163. package/lib/typescript/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.d.ts +0 -9
  1164. package/lib/typescript/lib/commonjs/internal/cast/THEOplayerNativeAirplay.d.ts +0 -9
  1165. package/lib/typescript/lib/commonjs/internal/cast/THEOplayerNativeCastApi.d.ts +0 -12
  1166. package/lib/typescript/lib/commonjs/internal/cast/THEOplayerNativeChromecast.d.ts +0 -11
  1167. package/lib/typescript/lib/commonjs/internal/cast/THEOplayerWebCastApi.d.ts +0 -8
  1168. package/lib/typescript/lib/commonjs/internal/drm/ContentProtectionRegistry.d.ts +0 -14
  1169. package/lib/typescript/lib/commonjs/internal/drm/ContentProtectionRegistry.web.d.ts +0 -5
  1170. package/lib/typescript/lib/commonjs/internal/drm/NativeCertificateRequest.d.ts +0 -18
  1171. package/lib/typescript/lib/commonjs/internal/drm/NativeCertificateResponse.d.ts +0 -21
  1172. package/lib/typescript/lib/commonjs/internal/drm/NativeContentProtectionEvent.d.ts +0 -0
  1173. package/lib/typescript/lib/commonjs/internal/drm/NativeLicenseRequest.d.ts +0 -20
  1174. package/lib/typescript/lib/commonjs/internal/drm/NativeLicenseResponse.d.ts +0 -22
  1175. package/lib/typescript/lib/commonjs/internal/utils/TypeUtils.d.ts +0 -6
  1176. package/lib/typescript/lib/commonjs/internal/web/TrackUtils.d.ts +0 -32
  1177. package/lib/typescript/lib/commonjs/internal/web/stub/CastButtonStub.d.ts +0 -2
  1178. package/lib/typescript/lib/module/api/THEOplayerView.d.ts +0 -1
  1179. package/lib/typescript/lib/module/api/abr/ABRConfiguration.d.ts +0 -0
  1180. package/lib/typescript/lib/module/api/abr/barrel.d.ts +0 -1
  1181. package/lib/typescript/lib/module/api/ads/Ad.d.ts +0 -1
  1182. package/lib/typescript/lib/module/api/ads/AdBreak.d.ts +0 -1
  1183. package/lib/typescript/lib/module/api/ads/AdsAPI.d.ts +0 -1
  1184. package/lib/typescript/lib/module/api/ads/AdsConfiguration.d.ts +0 -1
  1185. package/lib/typescript/lib/module/api/ads/CompanionAd.d.ts +0 -0
  1186. package/lib/typescript/lib/module/api/ads/GoogleDai.d.ts +0 -0
  1187. package/lib/typescript/lib/module/api/ads/GoogleImaAd.d.ts +0 -1
  1188. package/lib/typescript/lib/module/api/ads/GoogleImaConfiguration.d.ts +0 -0
  1189. package/lib/typescript/lib/module/api/ads/barrel.d.ts +0 -5
  1190. package/lib/typescript/lib/module/api/barrel.d.ts +0 -12
  1191. package/lib/typescript/lib/module/api/cast/Airplay.d.ts +0 -1
  1192. package/lib/typescript/lib/module/api/cast/CastAPI.d.ts +0 -1
  1193. package/lib/typescript/lib/module/api/cast/CastConfiguration.d.ts +0 -0
  1194. package/lib/typescript/lib/module/api/cast/CastState.d.ts +0 -0
  1195. package/lib/typescript/lib/module/api/cast/Chromecast.d.ts +0 -1
  1196. package/lib/typescript/lib/module/api/cast/barrel.d.ts +0 -3
  1197. package/lib/typescript/lib/module/api/config/PlayerConfiguration.d.ts +0 -1
  1198. package/lib/typescript/lib/module/api/config/barrel.d.ts +0 -1
  1199. package/lib/typescript/lib/module/api/drm/ContentProtectionAPI.d.ts +0 -1
  1200. package/lib/typescript/lib/module/api/drm/ContentProtectionIntegration.d.ts +0 -1
  1201. package/lib/typescript/lib/module/api/drm/ContentProtectionIntegrationFactory.d.ts +0 -1
  1202. package/lib/typescript/lib/module/api/drm/ContentProtectionRequest.d.ts +0 -0
  1203. package/lib/typescript/lib/module/api/drm/ContentProtectionResponse.d.ts +0 -1
  1204. package/lib/typescript/lib/module/api/drm/barrel.d.ts +0 -4
  1205. package/lib/typescript/lib/module/api/error/ChromecastError.d.ts +0 -0
  1206. package/lib/typescript/lib/module/api/error/PlayerError.d.ts +0 -0
  1207. package/lib/typescript/lib/module/api/error/barrel.d.ts +0 -1
  1208. package/lib/typescript/lib/module/api/event/AdEvent.d.ts +0 -1
  1209. package/lib/typescript/lib/module/api/event/CastEvent.d.ts +0 -1
  1210. package/lib/typescript/lib/module/api/event/PlayerEvent.d.ts +0 -1
  1211. package/lib/typescript/lib/module/api/event/TrackEvent.d.ts +0 -4
  1212. package/lib/typescript/lib/module/api/event/barrel.d.ts +0 -4
  1213. package/lib/typescript/lib/module/api/source/SourceDescription.d.ts +0 -1
  1214. package/lib/typescript/lib/module/api/source/ads/Ads.d.ts +0 -0
  1215. package/lib/typescript/lib/module/api/source/ads/FreeWheelAdDescription.d.ts +0 -1
  1216. package/lib/typescript/lib/module/api/source/ads/IMAAdDescription.d.ts +0 -1
  1217. package/lib/typescript/lib/module/api/source/ads/SpotXAdDescription.d.ts +0 -1
  1218. package/lib/typescript/lib/module/api/source/ads/THEOplayerAdDescription.d.ts +0 -1
  1219. package/lib/typescript/lib/module/api/source/ads/barrel.d.ts +0 -5
  1220. package/lib/typescript/lib/module/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +0 -1
  1221. package/lib/typescript/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +0 -1
  1222. package/lib/typescript/lib/module/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +0 -1
  1223. package/lib/typescript/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +0 -1
  1224. package/lib/typescript/lib/module/api/source/ads/ssai/barrel.d.ts +0 -4
  1225. package/lib/typescript/lib/module/api/source/barrel.d.ts +0 -6
  1226. package/lib/typescript/lib/module/api/source/dash/DashPlaybackConfiguration.d.ts +0 -0
  1227. package/lib/typescript/lib/module/api/source/dash/barrel.d.ts +0 -1
  1228. package/lib/typescript/lib/module/api/source/drm/DRMConfiguration.d.ts +0 -0
  1229. package/lib/typescript/lib/module/api/source/drm/barrel.d.ts +0 -1
  1230. package/lib/typescript/lib/module/api/source/hls/HlsPlaybackConfiguration.d.ts +0 -0
  1231. package/lib/typescript/lib/module/api/source/hls/barrel.d.ts +0 -1
  1232. package/lib/typescript/lib/module/api/source/metadata/MetadataDescription.d.ts +0 -0
  1233. package/lib/typescript/lib/module/api/source/metadata/barrel.d.ts +0 -1
  1234. package/lib/typescript/lib/module/api/timeranges/TimeRange.d.ts +0 -0
  1235. package/lib/typescript/lib/module/api/timeranges/barrel.d.ts +0 -1
  1236. package/lib/typescript/lib/module/api/track/MediaTrack.d.ts +0 -8
  1237. package/lib/typescript/lib/module/api/track/Quality.d.ts +0 -0
  1238. package/lib/typescript/lib/module/api/track/TextTrack.d.ts +0 -20
  1239. package/lib/typescript/lib/module/api/track/TextTrackCue.d.ts +0 -0
  1240. package/lib/typescript/lib/module/api/track/Track.d.ts +0 -0
  1241. package/lib/typescript/lib/module/api/track/barrel.d.ts +0 -2
  1242. package/lib/typescript/lib/module/api/utils/TypeUtils.d.ts +0 -12
  1243. package/lib/typescript/lib/module/api/utils/barrel.d.ts +0 -1
  1244. package/lib/typescript/lib/module/index.d.ts +0 -3
  1245. package/lib/typescript/lib/module/internal/THEOplayerView.d.ts +0 -25
  1246. package/lib/typescript/lib/module/internal/THEOplayerView.style.d.ts +0 -11
  1247. package/lib/typescript/lib/module/internal/THEOplayerView.web.d.ts +0 -24
  1248. package/lib/typescript/lib/module/internal/ads/THEOplayerNativeAdsAPI.d.ts +0 -13
  1249. package/lib/typescript/lib/module/internal/ads/THEOplayerNativeGoogleDAI.d.ts +0 -8
  1250. package/lib/typescript/lib/module/internal/ads/THEOplayerWebAdsAPI.d.ts +0 -13
  1251. package/lib/typescript/lib/module/internal/ads/THEOplayerWebGoogleDAI.d.ts +0 -8
  1252. package/lib/typescript/lib/module/internal/cast/THEOplayerNativeAirplay.d.ts +0 -8
  1253. package/lib/typescript/lib/module/internal/cast/THEOplayerNativeCastApi.d.ts +0 -11
  1254. package/lib/typescript/lib/module/internal/cast/THEOplayerNativeChromecast.d.ts +0 -10
  1255. package/lib/typescript/lib/module/internal/cast/THEOplayerWebCastApi.d.ts +0 -7
  1256. package/lib/typescript/lib/module/internal/drm/ContentProtectionRegistry.d.ts +0 -13
  1257. package/lib/typescript/lib/module/internal/drm/ContentProtectionRegistry.web.d.ts +0 -4
  1258. package/lib/typescript/lib/module/internal/drm/NativeCertificateRequest.d.ts +0 -17
  1259. package/lib/typescript/lib/module/internal/drm/NativeCertificateResponse.d.ts +0 -20
  1260. package/lib/typescript/lib/module/internal/drm/NativeContentProtectionEvent.d.ts +0 -0
  1261. package/lib/typescript/lib/module/internal/drm/NativeLicenseRequest.d.ts +0 -19
  1262. package/lib/typescript/lib/module/internal/drm/NativeLicenseResponse.d.ts +0 -21
  1263. package/lib/typescript/lib/module/internal/utils/TypeUtils.d.ts +0 -5
  1264. package/lib/typescript/lib/module/internal/web/TrackUtils.d.ts +0 -31
  1265. package/lib/typescript/lib/module/internal/web/stub/CastButtonStub.d.ts +0 -2
  1266. package/lib/typescript/src/api/THEOplayerView.d.ts +0 -217
  1267. package/lib/typescript/src/api/barrel.d.ts +0 -12
  1268. package/lib/typescript/src/api/cast/Airplay.d.ts +0 -27
  1269. package/lib/typescript/src/api/cast/CastAPI.d.ts +0 -25
  1270. package/lib/typescript/src/api/cast/CastState.d.ts +0 -10
  1271. package/lib/typescript/src/api/cast/Chromecast.d.ts +0 -39
  1272. package/lib/typescript/src/api/config/PlayerConfiguration.d.ts +0 -24
  1273. package/lib/typescript/src/api/event/AdEvent.d.ts +0 -13
  1274. package/lib/typescript/src/api/event/CastEvent.d.ts +0 -21
  1275. package/lib/typescript/src/api/event/PlayerEvent.d.ts +0 -56
  1276. package/lib/typescript/src/api/event/TrackEvent.d.ts +0 -92
  1277. package/lib/typescript/src/api/event/barrel.d.ts +0 -4
  1278. package/lib/typescript/src/api/source/ads/Ads.d.ts +0 -94
  1279. package/lib/typescript/src/api/source/ads/FreeWheelAdDescription.d.ts +0 -85
  1280. package/lib/typescript/src/api/source/ads/IMAAdDescription.d.ts +0 -25
  1281. package/lib/typescript/src/api/track/MediaTrack.d.ts +0 -58
  1282. package/lib/typescript/src/api/track/TextTrack.d.ts +0 -86
  1283. package/lib/typescript/src/api/track/Track.d.ts +0 -43
  1284. package/lib/typescript/src/api/track/barrel.d.ts +0 -5
  1285. package/lib/typescript/src/index.d.ts +0 -3
  1286. package/lib/typescript/src/internal/THEOplayerView.d.ts +0 -87
  1287. package/lib/typescript/src/internal/THEOplayerView.web.d.ts +0 -32
  1288. package/lib/typescript/src/internal/ads/THEOplayerNativeAdsAPI.d.ts +0 -17
  1289. package/lib/typescript/src/internal/ads/THEOplayerNativeGoogleDAI.d.ts +0 -10
  1290. package/lib/typescript/src/internal/ads/THEOplayerWebAdsAPI.d.ts +0 -15
  1291. package/lib/typescript/src/internal/cast/THEOplayerNativeAirplay.d.ts +0 -9
  1292. package/lib/typescript/src/internal/cast/THEOplayerNativeCastApi.d.ts +0 -10
  1293. package/lib/typescript/src/internal/cast/THEOplayerNativeChromecast.d.ts +0 -11
  1294. package/lib/typescript/src/internal/cast/THEOplayerWebCastApi.d.ts +0 -9
  1295. package/lib/typescript/src/internal/web/TrackUtils.d.ts +0 -7
  1296. package/lib/typescript/src/internal/web/stub/CastButtonStub.d.ts +0 -3
  1297. package/src/internal/ads/THEOplayerNativeAdsAPI.ts +0 -44
  1298. package/src/internal/ads/THEOplayerNativeGoogleDAI.ts +0 -23
  1299. package/src/internal/ads/THEOplayerWebAdsAPI.ts +0 -51
  1300. package/src/internal/cast/THEOplayerNativeAirplay.ts +0 -22
  1301. package/src/internal/cast/THEOplayerNativeCastApi.ts +0 -28
  1302. package/src/internal/cast/THEOplayerNativeChromecast.ts +0 -30
  1303. package/src/internal/cast/THEOplayerWebCastApi.ts +0 -21
  1304. package/src/internal/web/TrackUtils.ts +0 -65
  1305. package/src/internal/web/stub/CastButtonStub.tsx +0 -7
  1306. /package/lib/typescript/{src/__tests__ → __tests__}/index.test.d.ts +0 -0
  1307. /package/lib/typescript/{src/api → api}/abr/ABRConfiguration.d.ts +0 -0
  1308. /package/lib/typescript/{src/api → api}/abr/barrel.d.ts +0 -0
  1309. /package/lib/typescript/{src/api → api}/ads/Ad.d.ts +0 -0
  1310. /package/lib/typescript/{src/api → api}/ads/AdBreak.d.ts +0 -0
  1311. /package/lib/typescript/{src/api → api}/ads/AdsAPI.d.ts +0 -0
  1312. /package/lib/typescript/{src/api → api}/ads/AdsConfiguration.d.ts +0 -0
  1313. /package/lib/typescript/{src/api → api}/ads/CompanionAd.d.ts +0 -0
  1314. /package/lib/typescript/{src/api → api}/ads/GoogleDai.d.ts +0 -0
  1315. /package/lib/typescript/{src/api → api}/ads/GoogleImaAd.d.ts +0 -0
  1316. /package/lib/typescript/{src/api → api}/ads/GoogleImaConfiguration.d.ts +0 -0
  1317. /package/lib/typescript/{src/api → api}/ads/barrel.d.ts +0 -0
  1318. /package/lib/typescript/{src/api → api}/cast/CastConfiguration.d.ts +0 -0
  1319. /package/lib/typescript/{src/api → api}/cast/barrel.d.ts +0 -0
  1320. /package/lib/typescript/{src/api → api}/config/barrel.d.ts +0 -0
  1321. /package/lib/typescript/{src/api → api}/drm/ContentProtectionAPI.d.ts +0 -0
  1322. /package/lib/typescript/{src/api → api}/drm/ContentProtectionIntegration.d.ts +0 -0
  1323. /package/lib/typescript/{src/api → api}/drm/ContentProtectionIntegrationFactory.d.ts +0 -0
  1324. /package/lib/typescript/{src/api → api}/drm/ContentProtectionRequest.d.ts +0 -0
  1325. /package/lib/typescript/{src/api → api}/drm/ContentProtectionResponse.d.ts +0 -0
  1326. /package/lib/typescript/{src/api → api}/drm/barrel.d.ts +0 -0
  1327. /package/lib/typescript/{src/api → api}/error/ChromecastError.d.ts +0 -0
  1328. /package/lib/typescript/{src/api → api}/error/PlayerError.d.ts +0 -0
  1329. /package/lib/typescript/{src/api → api}/error/barrel.d.ts +0 -0
  1330. /package/lib/typescript/{src/api → api}/source/SourceDescription.d.ts +0 -0
  1331. /package/lib/typescript/{src/api → api}/source/ads/SpotXAdDescription.d.ts +0 -0
  1332. /package/lib/typescript/{src/api → api}/source/ads/THEOplayerAdDescription.d.ts +0 -0
  1333. /package/lib/typescript/{src/api → api}/source/ads/barrel.d.ts +0 -0
  1334. /package/lib/typescript/{src/api → api}/source/ads/ssai/GoogleDAIConfiguration.d.ts +0 -0
  1335. /package/lib/typescript/{src/api → api}/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +0 -0
  1336. /package/lib/typescript/{src/api → api}/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +0 -0
  1337. /package/lib/typescript/{src/api → api}/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +0 -0
  1338. /package/lib/typescript/{src/api → api}/source/ads/ssai/barrel.d.ts +0 -0
  1339. /package/lib/typescript/{src/api → api}/source/barrel.d.ts +0 -0
  1340. /package/lib/typescript/{src/api → api}/source/dash/DashPlaybackConfiguration.d.ts +0 -0
  1341. /package/lib/typescript/{src/api → api}/source/dash/barrel.d.ts +0 -0
  1342. /package/lib/typescript/{src/api → api}/source/drm/DRMConfiguration.d.ts +0 -0
  1343. /package/lib/typescript/{src/api → api}/source/drm/barrel.d.ts +0 -0
  1344. /package/lib/typescript/{src/api → api}/source/hls/HlsPlaybackConfiguration.d.ts +0 -0
  1345. /package/lib/typescript/{src/api → api}/source/hls/barrel.d.ts +0 -0
  1346. /package/lib/typescript/{src/api → api}/source/metadata/MetadataDescription.d.ts +0 -0
  1347. /package/lib/typescript/{src/api → api}/source/metadata/barrel.d.ts +0 -0
  1348. /package/lib/typescript/{src/api → api}/timeranges/TimeRange.d.ts +0 -0
  1349. /package/lib/typescript/{src/api → api}/timeranges/barrel.d.ts +0 -0
  1350. /package/lib/typescript/{src/api → api}/track/Quality.d.ts +0 -0
  1351. /package/lib/typescript/{src/api → api}/track/TextTrackCue.d.ts +0 -0
  1352. /package/lib/typescript/{src/api → api}/utils/TypeUtils.d.ts +0 -0
  1353. /package/lib/typescript/{src/api → api}/utils/barrel.d.ts +0 -0
  1354. /package/lib/typescript/{src/internal → internal}/THEOplayerView.style.d.ts +0 -0
  1355. /package/lib/typescript/{src/internal → internal/adapter}/ads/THEOplayerWebGoogleDAI.d.ts +0 -0
  1356. /package/lib/typescript/{src/internal → internal}/drm/ContentProtectionRegistry.d.ts +0 -0
  1357. /package/lib/typescript/{src/internal → internal}/drm/ContentProtectionRegistry.web.d.ts +0 -0
  1358. /package/lib/typescript/{src/internal → internal}/drm/NativeCertificateRequest.d.ts +0 -0
  1359. /package/lib/typescript/{src/internal → internal}/drm/NativeCertificateResponse.d.ts +0 -0
  1360. /package/lib/typescript/{src/internal → internal}/drm/NativeContentProtectionEvent.d.ts +0 -0
  1361. /package/lib/typescript/{src/internal → internal}/drm/NativeLicenseRequest.d.ts +0 -0
  1362. /package/lib/typescript/{src/internal → internal}/drm/NativeLicenseResponse.d.ts +0 -0
  1363. /package/lib/typescript/{src/internal → internal}/utils/TypeUtils.d.ts +0 -0
  1364. /package/src/internal/{ads → adapter/ads}/THEOplayerWebGoogleDAI.ts +0 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _StaticTimeLabel = require("./StaticTimeLabel");
7
+ Object.keys(_StaticTimeLabel).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _StaticTimeLabel[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _StaticTimeLabel[key];
14
+ }
15
+ });
16
+ });
17
+ var _TimeLabel = require("./TimeLabel");
18
+ Object.keys(_TimeLabel).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _TimeLabel[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _TimeLabel[key];
25
+ }
26
+ });
27
+ });
28
+ //# sourceMappingURL=barrel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_StaticTimeLabel","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_TimeLabel"],"sources":["barrel.ts"],"sourcesContent":["export * from './StaticTimeLabel';\nexport * from './TimeLabel';\n"],"mappings":";;;;;AAAA,IAAAA,gBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,gBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,gBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,gBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,UAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,UAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,UAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,UAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,350 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.UiContainer = exports.UI_CONTAINER_STYLE = exports.TOP_UI_CONTAINER_STYLE = exports.FULLSCREEN_CENTER_STYLE = exports.CENTER_UI_CONTAINER_STYLE = exports.BOTTOM_UI_CONTAINER_STYLE = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _PlayerContext = require("../util/PlayerContext");
10
+ var _reactNativeTheoplayer = require("react-native-theoplayer");
11
+ var _ErrorDisplay = require("../message/ErrorDisplay");
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
17
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
18
+ /**
19
+ * The default style for a fullscreen centered view.
20
+ */
21
+ const FULLSCREEN_CENTER_STYLE = {
22
+ position: 'absolute',
23
+ top: 0,
24
+ left: 0,
25
+ bottom: 0,
26
+ right: 0,
27
+ alignItems: 'center',
28
+ justifyContent: 'center'
29
+ };
30
+
31
+ /**
32
+ * The default style for the center container.
33
+ */
34
+ exports.FULLSCREEN_CENTER_STYLE = FULLSCREEN_CENTER_STYLE;
35
+ const UI_CONTAINER_STYLE = {
36
+ position: 'absolute',
37
+ top: 0,
38
+ left: 0,
39
+ bottom: 0,
40
+ right: 0,
41
+ zIndex: 0,
42
+ justifyContent: 'center',
43
+ overflow: 'hidden'
44
+ };
45
+
46
+ /**
47
+ * The default style for the top container.
48
+ */
49
+ exports.UI_CONTAINER_STYLE = UI_CONTAINER_STYLE;
50
+ const TOP_UI_CONTAINER_STYLE = {
51
+ position: 'absolute',
52
+ top: 0,
53
+ left: 0,
54
+ right: 0,
55
+ zIndex: 1,
56
+ paddingTop: 10,
57
+ paddingLeft: 10,
58
+ paddingRight: 10
59
+ };
60
+
61
+ /**
62
+ * The default style for the center container.
63
+ */
64
+ exports.TOP_UI_CONTAINER_STYLE = TOP_UI_CONTAINER_STYLE;
65
+ const CENTER_UI_CONTAINER_STYLE = {
66
+ alignSelf: 'center',
67
+ width: '60%'
68
+ };
69
+
70
+ /**
71
+ * The default style for the bottom container.
72
+ */
73
+ exports.CENTER_UI_CONTAINER_STYLE = CENTER_UI_CONTAINER_STYLE;
74
+ const BOTTOM_UI_CONTAINER_STYLE = {
75
+ position: 'absolute',
76
+ left: 0,
77
+ right: 0,
78
+ bottom: 0,
79
+ zIndex: 1,
80
+ paddingBottom: 10,
81
+ paddingLeft: 10,
82
+ paddingRight: 10
83
+ };
84
+ exports.BOTTOM_UI_CONTAINER_STYLE = BOTTOM_UI_CONTAINER_STYLE;
85
+ /**
86
+ * A component that does all the coordination between UI components.
87
+ * - It provides all UI components with the PlayerContext, so they can access the styling and player.
88
+ * - It provides slots for UI components to be places in the top/center/bottom positions.
89
+ * - It uses animations to fade the UI in and out when applicable.
90
+ */
91
+ class UiContainer extends _react.PureComponent {
92
+ constructor(props) {
93
+ super(props);
94
+ _defineProperty(this, "_currentFadeOutTimeout", undefined);
95
+ _defineProperty(this, "_menus", []);
96
+ _defineProperty(this, "onPlay", () => {
97
+ this.setState({
98
+ firstPlay: true,
99
+ paused: false
100
+ });
101
+ this.resumeAnimationsIfPossible_();
102
+ });
103
+ _defineProperty(this, "onPause", () => {
104
+ this.setState({
105
+ firstPlay: true,
106
+ paused: true
107
+ });
108
+ this.stopAnimationsAndShowUi_();
109
+ });
110
+ _defineProperty(this, "onSourceChange", () => {
111
+ this.setState({
112
+ paused: this.props.player.paused
113
+ });
114
+ });
115
+ _defineProperty(this, "onLoadStart", () => {
116
+ this.setState({
117
+ error: undefined
118
+ });
119
+ });
120
+ _defineProperty(this, "onError", event => {
121
+ const {
122
+ error
123
+ } = event;
124
+ this.setState({
125
+ error
126
+ });
127
+ });
128
+ _defineProperty(this, "onCastEvent", event => {
129
+ if (event.subType === _reactNativeTheoplayer.CastEventType.CHROMECAST_STATE_CHANGE || event.subType === _reactNativeTheoplayer.CastEventType.AIRPLAY_STATE_CHANGE) {
130
+ this.setState({
131
+ casting: event.state === 'connecting' || event.state === 'connected'
132
+ });
133
+ this.resumeAnimationsIfPossible_();
134
+ }
135
+ });
136
+ _defineProperty(this, "onEnded", () => {
137
+ this.stopAnimationsAndShowUi_();
138
+ });
139
+ _defineProperty(this, "onPresentationModeChange", event => {
140
+ this.setState({
141
+ pip: event.presentationMode === _reactNativeTheoplayer.PresentationMode.pip
142
+ });
143
+ });
144
+ _defineProperty(this, "onUserAction_", () => {
145
+ if (!this.state.firstPlay) {
146
+ return;
147
+ }
148
+ this.stopAnimationsAndShowUi_();
149
+ this.resumeAnimationsIfPossible_();
150
+ });
151
+ _defineProperty(this, "openMenu_", menuConstructor => {
152
+ this._menus.push(menuConstructor);
153
+ this.setState({
154
+ currentMenu: menuConstructor()
155
+ });
156
+ this.stopAnimationsAndShowUi_();
157
+ });
158
+ _defineProperty(this, "closeCurrentMenu_", () => {
159
+ this._menus.pop();
160
+ const nextMenu = this._menus.length > 0 ? this._menus[this._menus.length - 1] : undefined;
161
+ this.setState({
162
+ currentMenu: nextMenu === null || nextMenu === void 0 ? void 0 : nextMenu()
163
+ });
164
+ this.resumeAnimationsIfPossible_();
165
+ });
166
+ _defineProperty(this, "doFadeIn_", () => {
167
+ const {
168
+ fadeAnimation
169
+ } = this.state;
170
+ this.setState({
171
+ showing: true
172
+ });
173
+ _reactNative.Animated.timing(fadeAnimation, {
174
+ useNativeDriver: true,
175
+ toValue: 1,
176
+ duration: 200
177
+ }).start(() => {
178
+ this.setState({
179
+ buttonsEnabled: true
180
+ });
181
+ });
182
+ });
183
+ _defineProperty(this, "doFadeOut_", () => {
184
+ if (this.animationsBlocked_) {
185
+ return;
186
+ }
187
+ clearTimeout(this._currentFadeOutTimeout);
188
+ const {
189
+ fadeAnimation
190
+ } = this.state;
191
+ this.setState({
192
+ buttonsEnabled: false
193
+ });
194
+ _reactNative.Animated.timing(fadeAnimation, {
195
+ useNativeDriver: true,
196
+ toValue: 0,
197
+ duration: 200
198
+ }).start(() => {
199
+ this.setState({
200
+ showing: false
201
+ });
202
+ });
203
+ });
204
+ this.state = UiContainer.initialState;
205
+ }
206
+ componentDidMount() {
207
+ const player = this.props.player;
208
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.LOAD_START, this.onLoadStart);
209
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.ERROR, this.onError);
210
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT, this.onCastEvent);
211
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.PLAY, this.onPlay);
212
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.PLAYING, this.onPlay);
213
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.PAUSE, this.onPause);
214
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
215
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT, this.onCastEvent);
216
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.ENDED, this.onEnded);
217
+ player.addEventListener(_reactNativeTheoplayer.PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
218
+ if (player.source !== undefined && player.currentTime !== 0) {
219
+ this.onPlay();
220
+ }
221
+ this.setState({
222
+ pip: player.presentationMode === 'picture-in-picture'
223
+ });
224
+ }
225
+ componentWillUnmount() {
226
+ const player = this.props.player;
227
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.LOAD_START, this.onLoadStart);
228
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.ERROR, this.onError);
229
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT, this.onCastEvent);
230
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.PLAY, this.onPlay);
231
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.PLAYING, this.onPlay);
232
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.PAUSE, this.onPause);
233
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
234
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT, this.onCastEvent);
235
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.ENDED, this.onEnded);
236
+ player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
237
+ clearTimeout(this._currentFadeOutTimeout);
238
+ }
239
+ get buttonsEnabled_() {
240
+ return this.state.buttonsEnabled;
241
+ }
242
+
243
+ /**
244
+ * Request to show the UI due to user input.
245
+ */
246
+
247
+ stopAnimationsAndShowUi_() {
248
+ clearTimeout(this._currentFadeOutTimeout);
249
+ this._currentFadeOutTimeout = undefined;
250
+ if (!this.state.showing) {
251
+ this.doFadeIn_();
252
+ }
253
+ }
254
+ resumeAnimationsIfPossible_() {
255
+ clearTimeout(this._currentFadeOutTimeout);
256
+ if (this.animationsBlocked_) {
257
+ return;
258
+ }
259
+ // Only resume animation when paused except for web.
260
+ // This is because mobile users can tap away the UI when paused, but desktop users can't.
261
+ if (_reactNative.Platform.OS === 'web' || !this.state.paused) {
262
+ // @ts-ignore
263
+ this._currentFadeOutTimeout = setTimeout(this.doFadeOut_, this.props.theme.fadeAnimationTimoutMs);
264
+ }
265
+ }
266
+ get animationsBlocked_() {
267
+ const {
268
+ firstPlay,
269
+ currentMenu,
270
+ casting,
271
+ pip
272
+ } = this.state;
273
+ return !firstPlay || currentMenu !== undefined || casting || pip;
274
+ }
275
+ render() {
276
+ const {
277
+ player,
278
+ theme,
279
+ top,
280
+ center,
281
+ bottom,
282
+ children,
283
+ style,
284
+ topStyle,
285
+ centerStyle,
286
+ bottomStyle,
287
+ behind
288
+ } = this.props;
289
+ const {
290
+ fadeAnimation,
291
+ currentMenu,
292
+ error,
293
+ firstPlay,
294
+ pip
295
+ } = this.state;
296
+ if (error !== undefined) {
297
+ return /*#__PURE__*/_react.default.createElement(_ErrorDisplay.ErrorDisplay, {
298
+ error: error
299
+ });
300
+ }
301
+ if (_reactNative.Platform.OS !== 'web' && pip) {
302
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
303
+ }
304
+ const combinedContainerStyle = [UI_CONTAINER_STYLE, style];
305
+ return /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Provider, {
306
+ value: {
307
+ player,
308
+ style: theme,
309
+ ui: this
310
+ }
311
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
312
+ style: FULLSCREEN_CENTER_STYLE
313
+ }, behind), /*#__PURE__*/_react.default.createElement(_reactNative.Animated.View, _extends({
314
+ style: [combinedContainerStyle, {
315
+ opacity: fadeAnimation
316
+ }],
317
+ onTouchStart: this.onUserAction_
318
+ }, _reactNative.Platform.OS === 'web' ? {
319
+ onMouseMove: this.onUserAction_,
320
+ onMouseLeave: this.doFadeOut_
321
+ } : {}), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
322
+ style: [combinedContainerStyle, {
323
+ backgroundColor: theme.colors.uiBackground
324
+ }],
325
+ onTouchStart: this.doFadeOut_
326
+ }), currentMenu !== undefined && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
327
+ style: [combinedContainerStyle]
328
+ }, currentMenu), currentMenu === undefined && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, firstPlay && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
329
+ style: [TOP_UI_CONTAINER_STYLE, topStyle]
330
+ }, top), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
331
+ style: [CENTER_UI_CONTAINER_STYLE, centerStyle]
332
+ }, center), firstPlay && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
333
+ style: [BOTTOM_UI_CONTAINER_STYLE, bottomStyle]
334
+ }, bottom), children))));
335
+ }
336
+ }
337
+ exports.UiContainer = UiContainer;
338
+ _defineProperty(UiContainer, "initialState", {
339
+ fadeAnimation: new _reactNative.Animated.Value(1),
340
+ currentMenu: undefined,
341
+ showing: true,
342
+ buttonsEnabled: true,
343
+ error: undefined,
344
+ firstPlay: false,
345
+ paused: true,
346
+ casting: false,
347
+ pip: false
348
+ });
349
+ UiContainer.contextType = _PlayerContext.PlayerContext;
350
+ //# sourceMappingURL=UiContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_PlayerContext","_reactNativeTheoplayer","_ErrorDisplay","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_extends","assign","bind","target","i","arguments","length","source","apply","_defineProperty","value","_toPropertyKey","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","FULLSCREEN_CENTER_STYLE","position","top","left","bottom","right","alignItems","justifyContent","exports","UI_CONTAINER_STYLE","zIndex","overflow","TOP_UI_CONTAINER_STYLE","paddingTop","paddingLeft","paddingRight","CENTER_UI_CONTAINER_STYLE","alignSelf","width","BOTTOM_UI_CONTAINER_STYLE","paddingBottom","UiContainer","PureComponent","constructor","props","setState","firstPlay","paused","resumeAnimationsIfPossible_","stopAnimationsAndShowUi_","player","error","event","subType","CastEventType","CHROMECAST_STATE_CHANGE","AIRPLAY_STATE_CHANGE","casting","state","pip","presentationMode","PresentationMode","menuConstructor","_menus","push","currentMenu","pop","nextMenu","fadeAnimation","showing","Animated","timing","useNativeDriver","toValue","duration","start","buttonsEnabled","animationsBlocked_","clearTimeout","_currentFadeOutTimeout","initialState","componentDidMount","addEventListener","PlayerEventType","LOAD_START","onLoadStart","ERROR","onError","CAST_EVENT","onCastEvent","PLAY","onPlay","PLAYING","PAUSE","onPause","SOURCE_CHANGE","onSourceChange","ENDED","onEnded","PRESENTATIONMODE_CHANGE","onPresentationModeChange","currentTime","componentWillUnmount","removeEventListener","buttonsEnabled_","doFadeIn_","Platform","OS","setTimeout","doFadeOut_","theme","fadeAnimationTimoutMs","render","center","children","style","topStyle","centerStyle","bottomStyle","behind","createElement","ErrorDisplay","Fragment","combinedContainerStyle","PlayerContext","Provider","ui","View","opacity","onTouchStart","onUserAction_","onMouseMove","onMouseLeave","backgroundColor","colors","uiBackground","Value","contextType"],"sources":["UiContainer.tsx"],"sourcesContent":["import React, { PureComponent, ReactNode } from 'react';\nimport { Animated, Platform, StyleProp, View, ViewStyle } from 'react-native';\nimport { PlayerContext } from '../util/PlayerContext';\nimport type { PresentationModeChangeEvent, THEOplayer } from 'react-native-theoplayer';\nimport { CastEvent, CastEventType, ErrorEvent, PlayerError, PlayerEventType, PresentationMode } from 'react-native-theoplayer';\nimport type { THEOplayerTheme } from '../../THEOplayerTheme';\nimport type { MenuConstructor, UiControls } from './UiControls';\nimport { ErrorDisplay } from '../message/ErrorDisplay';\n\ninterface UiContainerProps {\n /**\n * The player that is provided to all children using PlayerContext.\n */\n player: THEOplayer;\n /**\n * The theme that is provided to all children using PlayerContext.\n */\n theme: THEOplayerTheme;\n /**\n * The style of the container.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * The style of the top slot.\n */\n topStyle?: StyleProp<ViewStyle>;\n /**\n * The style of the center slot.\n */\n centerStyle?: StyleProp<ViewStyle>;\n /**\n * The style of the button slot.\n */\n bottomStyle?: StyleProp<ViewStyle>;\n /**\n * The components to be put in the top slot.\n */\n top?: ReactNode;\n /**\n * The components to be put in the center slot.\n */\n center?: ReactNode;\n /**\n * The components to be put in the bottom slot.\n */\n bottom?: ReactNode;\n /**\n * A slot to put components behind the UI background.\n */\n behind?: ReactNode;\n}\n\n/**\n * The default style for a fullscreen centered view.\n */\nexport const FULLSCREEN_CENTER_STYLE: ViewStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n alignItems: 'center',\n justifyContent: 'center',\n};\n\n/**\n * The default style for the center container.\n */\nexport const UI_CONTAINER_STYLE: ViewStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n zIndex: 0,\n justifyContent: 'center',\n overflow: 'hidden',\n};\n\n/**\n * The default style for the top container.\n */\nexport const TOP_UI_CONTAINER_STYLE: ViewStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n zIndex: 1,\n paddingTop: 10,\n paddingLeft: 10,\n paddingRight: 10,\n};\n\n/**\n * The default style for the center container.\n */\nexport const CENTER_UI_CONTAINER_STYLE: ViewStyle = {\n alignSelf: 'center',\n width: '60%',\n};\n\n/**\n * The default style for the bottom container.\n */\nexport const BOTTOM_UI_CONTAINER_STYLE: ViewStyle = {\n position: 'absolute',\n left: 0,\n right: 0,\n bottom: 0,\n zIndex: 1,\n paddingBottom: 10,\n paddingLeft: 10,\n paddingRight: 10,\n};\n\ninterface UiContainerState {\n fadeAnimation: Animated.Value;\n currentMenu: ReactNode | undefined;\n showing: boolean;\n buttonsEnabled: boolean;\n error: PlayerError | undefined;\n firstPlay: boolean;\n paused: boolean;\n casting: boolean;\n pip: boolean;\n}\n\n/**\n * A component that does all the coordination between UI components.\n * - It provides all UI components with the PlayerContext, so they can access the styling and player.\n * - It provides slots for UI components to be places in the top/center/bottom positions.\n * - It uses animations to fade the UI in and out when applicable.\n */\nexport class UiContainer extends PureComponent<React.PropsWithChildren<UiContainerProps>, UiContainerState> implements UiControls {\n private _currentFadeOutTimeout: number | undefined = undefined;\n\n private _menus: MenuConstructor[] = [];\n\n static initialState: UiContainerState = {\n fadeAnimation: new Animated.Value(1),\n currentMenu: undefined,\n showing: true,\n buttonsEnabled: true,\n error: undefined,\n firstPlay: false,\n paused: true,\n casting: false,\n pip: false,\n };\n\n constructor(props: UiContainerProps) {\n super(props);\n this.state = UiContainer.initialState;\n }\n\n componentDidMount() {\n const player = this.props.player;\n player.addEventListener(PlayerEventType.LOAD_START, this.onLoadStart);\n player.addEventListener(PlayerEventType.ERROR, this.onError);\n player.addEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.addEventListener(PlayerEventType.PLAY, this.onPlay);\n player.addEventListener(PlayerEventType.PLAYING, this.onPlay);\n player.addEventListener(PlayerEventType.PAUSE, this.onPause);\n player.addEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);\n player.addEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.addEventListener(PlayerEventType.ENDED, this.onEnded);\n player.addEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n if (player.source !== undefined && player.currentTime !== 0) {\n this.onPlay();\n }\n this.setState({ pip: player.presentationMode === 'picture-in-picture' });\n }\n\n componentWillUnmount() {\n const player = this.props.player;\n player.removeEventListener(PlayerEventType.LOAD_START, this.onLoadStart);\n player.removeEventListener(PlayerEventType.ERROR, this.onError);\n player.removeEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.removeEventListener(PlayerEventType.PLAY, this.onPlay);\n player.removeEventListener(PlayerEventType.PLAYING, this.onPlay);\n player.removeEventListener(PlayerEventType.PAUSE, this.onPause);\n player.removeEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);\n player.removeEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.removeEventListener(PlayerEventType.ENDED, this.onEnded);\n player.removeEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n clearTimeout(this._currentFadeOutTimeout);\n }\n\n private onPlay = () => {\n this.setState({ firstPlay: true, paused: false });\n this.resumeAnimationsIfPossible_();\n };\n\n private onPause = () => {\n this.setState({ firstPlay: true, paused: true });\n this.stopAnimationsAndShowUi_();\n };\n\n private onSourceChange = () => {\n this.setState({ paused: this.props.player.paused });\n };\n\n private onLoadStart = () => {\n this.setState({ error: undefined });\n };\n\n private onError = (event: ErrorEvent) => {\n const { error } = event;\n this.setState({ error });\n };\n\n private onCastEvent = (event: CastEvent) => {\n if (event.subType === CastEventType.CHROMECAST_STATE_CHANGE || event.subType === CastEventType.AIRPLAY_STATE_CHANGE) {\n this.setState({ casting: event.state === 'connecting' || event.state === 'connected' });\n this.resumeAnimationsIfPossible_();\n }\n };\n\n private onEnded = () => {\n this.stopAnimationsAndShowUi_();\n };\n\n private onPresentationModeChange = (event: PresentationModeChangeEvent) => {\n this.setState({ pip: event.presentationMode === PresentationMode.pip });\n };\n\n get buttonsEnabled_(): boolean {\n return this.state.buttonsEnabled;\n }\n\n /**\n * Request to show the UI due to user input.\n */\n public onUserAction_ = () => {\n if (!this.state.firstPlay) {\n return;\n }\n this.stopAnimationsAndShowUi_();\n this.resumeAnimationsIfPossible_();\n };\n\n public openMenu_ = (menuConstructor: () => ReactNode) => {\n this._menus.push(menuConstructor);\n this.setState({ currentMenu: menuConstructor() });\n this.stopAnimationsAndShowUi_();\n };\n\n public closeCurrentMenu_ = () => {\n this._menus.pop();\n const nextMenu = this._menus.length > 0 ? this._menus[this._menus.length - 1] : undefined;\n this.setState({ currentMenu: nextMenu?.() });\n this.resumeAnimationsIfPossible_();\n };\n\n private stopAnimationsAndShowUi_() {\n clearTimeout(this._currentFadeOutTimeout);\n this._currentFadeOutTimeout = undefined;\n if (!this.state.showing) {\n this.doFadeIn_();\n }\n }\n\n private resumeAnimationsIfPossible_() {\n clearTimeout(this._currentFadeOutTimeout);\n if (this.animationsBlocked_) {\n return;\n }\n // Only resume animation when paused except for web.\n // This is because mobile users can tap away the UI when paused, but desktop users can't.\n if (Platform.OS === 'web' || !this.state.paused) {\n // @ts-ignore\n this._currentFadeOutTimeout = setTimeout(this.doFadeOut_, this.props.theme.fadeAnimationTimoutMs);\n }\n }\n\n private doFadeIn_ = () => {\n const { fadeAnimation } = this.state;\n this.setState({ showing: true });\n Animated.timing(fadeAnimation, {\n useNativeDriver: true,\n toValue: 1,\n duration: 200,\n }).start(() => {\n this.setState({ buttonsEnabled: true });\n });\n };\n\n private doFadeOut_ = () => {\n if (this.animationsBlocked_) {\n return;\n }\n clearTimeout(this._currentFadeOutTimeout);\n const { fadeAnimation } = this.state;\n this.setState({ buttonsEnabled: false });\n Animated.timing(fadeAnimation, {\n useNativeDriver: true,\n toValue: 0,\n duration: 200,\n }).start(() => {\n this.setState({ showing: false });\n });\n };\n\n private get animationsBlocked_(): boolean {\n const { firstPlay, currentMenu, casting, pip } = this.state;\n return !firstPlay || currentMenu !== undefined || casting || pip;\n }\n\n render() {\n const { player, theme, top, center, bottom, children, style, topStyle, centerStyle, bottomStyle, behind } = this.props;\n const { fadeAnimation, currentMenu, error, firstPlay, pip } = this.state;\n\n if (error !== undefined) {\n return <ErrorDisplay error={error} />;\n }\n\n if (Platform.OS !== 'web' && pip) {\n return <></>;\n }\n\n const combinedContainerStyle = [UI_CONTAINER_STYLE, style];\n\n return (\n <PlayerContext.Provider value={{ player, style: theme, ui: this }}>\n {/* The View behind the UI, that is always visible.*/}\n <View style={FULLSCREEN_CENTER_STYLE}>{behind}</View>\n {/* The Animated.View is for showing and hiding the UI*/}\n <Animated.View\n style={[combinedContainerStyle, { opacity: fadeAnimation }]}\n onTouchStart={this.onUserAction_}\n {...(Platform.OS === 'web' ? { onMouseMove: this.onUserAction_, onMouseLeave: this.doFadeOut_ } : {})}>\n <>\n {/* The UI background */}\n <View style={[combinedContainerStyle, { backgroundColor: theme.colors.uiBackground }]} onTouchStart={this.doFadeOut_} />\n\n {/* The Settings Menu */}\n {currentMenu !== undefined && <View style={[combinedContainerStyle]}>{currentMenu}</View>}\n\n {/* The UI control bars*/}\n {currentMenu === undefined && (\n <>\n {firstPlay && <View style={[TOP_UI_CONTAINER_STYLE, topStyle]}>{top}</View>}\n <View style={[CENTER_UI_CONTAINER_STYLE, centerStyle]}>{center}</View>\n {firstPlay && <View style={[BOTTOM_UI_CONTAINER_STYLE, bottomStyle]}>{bottom}</View>}\n {children}\n </>\n )}\n </>\n </Animated.View>\n </PlayerContext.Provider>\n );\n }\n}\n\nUiContainer.contextType = PlayerContext;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,sBAAA,GAAAH,OAAA;AAGA,IAAAI,aAAA,GAAAJ,OAAA;AAAuD,SAAAK,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAP,wBAAAW,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAd,GAAA,EAAAW,GAAA,SAAAI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@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sources":["UiControls.ts"],"sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * A callback function to render a menu when needed.\n */\nexport type MenuConstructor = () => ReactNode;\n\n/**\n * The API provided to all UI components in `react-native-theoplayer` so they can communicate with the UI.\n */\nexport interface UiControls {\n /*\n * Whether the UI buttons are enabled.\n */\n readonly buttonsEnabled_: boolean;\n\n /*\n * Used to notify the UI that a user pressed did an action, so the UI can be faded in.\n */\n onUserAction_: () => void;\n\n /*\n * Opens a new menu on top of the player.\n */\n openMenu_: (menuConstructor: MenuConstructor) => void;\n\n /*\n * Closes the current menu. If this was a sub-menu, the parent menu will re-open.\n */\n closeCurrentMenu_: () => void;\n}\n"],"mappings":""}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _UiContainer = require("./UiContainer");
7
+ Object.keys(_UiContainer).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _UiContainer[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _UiContainer[key];
14
+ }
15
+ });
16
+ });
17
+ var _UiControls = require("./UiControls");
18
+ Object.keys(_UiControls).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _UiControls[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _UiControls[key];
25
+ }
26
+ });
27
+ });
28
+ //# sourceMappingURL=barrel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_UiContainer","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_UiControls"],"sources":["barrel.ts"],"sourcesContent":["export * from './UiContainer';\nexport * from './UiControls';\n"],"mappings":";;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,WAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,WAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,WAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,WAAA,CAAAL,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.PlayerContext = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _THEOplayerTheme = require("../../THEOplayerTheme");
9
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
10
+ /**
11
+ * The context for all UI components of `react-native-theoplayer`.
12
+ */
13
+ const PlayerContext = /*#__PURE__*/_react.default.createContext({
14
+ player: undefined,
15
+ style: _THEOplayerTheme.DEFAULT_THEOPLAYER_THEME,
16
+ ui: undefined
17
+ });
18
+ exports.PlayerContext = PlayerContext;
19
+ //# sourceMappingURL=PlayerContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_THEOplayerTheme","obj","__esModule","default","PlayerContext","React","createContext","player","undefined","style","DEFAULT_THEOPLAYER_THEME","ui","exports"],"sources":["PlayerContext.ts"],"sourcesContent":["import React from 'react';\nimport type { THEOplayer } from 'react-native-theoplayer';\nimport type { THEOplayerTheme } from '../../THEOplayerTheme';\nimport { DEFAULT_THEOPLAYER_THEME } from '../../THEOplayerTheme';\nimport type { UiControls } from '../uicontroller/UiControls';\n\nexport interface UiContext {\n /**\n * The THEOplayer from the THEOplayerView.\n */\n readonly player: THEOplayer;\n /**\n * The configured THEOplayerTheme.\n */\n readonly style: THEOplayerTheme;\n /**\n * UI controls for the components to communicate with the UI.\n */\n readonly ui: UiControls;\n}\n\n/**\n * The context for all UI components of `react-native-theoplayer`.\n */\nexport const PlayerContext = React.createContext<UiContext>({\n player: undefined as unknown as THEOplayer,\n style: DEFAULT_THEOPLAYER_THEME,\n ui: undefined as unknown as UiControls,\n});\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,gBAAA,GAAAD,OAAA;AAAiE,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAkBjE;AACA;AACA;AACO,MAAMG,aAAa,gBAAGC,cAAK,CAACC,aAAa,CAAY;EAC1DC,MAAM,EAAEC,SAAkC;EAC1CC,KAAK,EAAEC,yCAAwB;EAC/BC,EAAE,EAAEH;AACN,CAAC,CAAC;AAACI,OAAA,CAAAR,aAAA,GAAAA,aAAA"}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.filterRenderableTracks = filterRenderableTracks;
7
+ exports.getTrackLabel = getTrackLabel;
8
+ exports.getVideoQualityLabel = getVideoQualityLabel;
9
+ exports.stringFromTextTrackListEvent = stringFromTextTrackListEvent;
10
+ var _reactNativeTheoplayer = require("react-native-theoplayer");
11
+ var _Language = require("../../utils/language/Language");
12
+ function getTrackLabel(track) {
13
+ if (track.label) {
14
+ return track.label;
15
+ }
16
+ const languageCode = track.language;
17
+ if (languageCode) {
18
+ const iso639Language = (0, _Language.getISO639LanguageByCode)(languageCode);
19
+ if (iso639Language) {
20
+ return iso639Language.local;
21
+ }
22
+ }
23
+ return languageCode || '';
24
+ }
25
+ function stringFromTextTrackListEvent(type) {
26
+ switch (type) {
27
+ case _reactNativeTheoplayer.TrackListEventType.ADD_TRACK:
28
+ return 'AddTrack';
29
+ case _reactNativeTheoplayer.TrackListEventType.REMOVE_TRACK:
30
+ return 'RemoveTrack';
31
+ case _reactNativeTheoplayer.TrackListEventType.CHANGE_TRACK:
32
+ return 'ChangeTrack';
33
+ }
34
+ }
35
+
36
+ /**
37
+ * Retain renderable tracks.
38
+ * https://html.spec.whatwg.org/multipage/embedded-content.html#text-track-showing
39
+ */
40
+ function filterRenderableTracks(textTracks) {
41
+ return textTracks.filter(textTrack => textTrack.kind === 'subtitles' || textTrack.kind === 'captions');
42
+ }
43
+ function getVideoQualityLabel(quality) {
44
+ let withBandWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
45
+ if (!quality) {
46
+ return 'auto';
47
+ }
48
+ if (quality.label && quality.label !== '') {
49
+ return quality.label;
50
+ }
51
+ let label = '';
52
+ if (quality.height) {
53
+ label = quality.height + 'p';
54
+ }
55
+ if (!withBandWidth || !quality.bandwidth) {
56
+ return label;
57
+ }
58
+ let bandwidth;
59
+ if (quality.bandwidth > 1e7) {
60
+ bandwidth = (quality.bandwidth / 1e6).toFixed(0) + 'Mbps';
61
+ } else if (quality.bandwidth > 1e6) {
62
+ bandwidth = (quality.bandwidth / 1e6).toFixed(1) + 'Mbps';
63
+ } else {
64
+ bandwidth = (quality.bandwidth / 1e3).toFixed(0) + 'kbps';
65
+ }
66
+ const isHD = quality.height ? quality.height >= 720 : false;
67
+ return `${label} - ${bandwidth} ${isHD ? '(HD)' : ''}`;
68
+ }
69
+ //# sourceMappingURL=TrackUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeTheoplayer","require","_Language","getTrackLabel","track","label","languageCode","language","iso639Language","getISO639LanguageByCode","local","stringFromTextTrackListEvent","type","TrackListEventType","ADD_TRACK","REMOVE_TRACK","CHANGE_TRACK","filterRenderableTracks","textTracks","filter","textTrack","kind","getVideoQualityLabel","quality","withBandWidth","arguments","length","undefined","height","bandwidth","toFixed","isHD"],"sources":["TrackUtils.ts"],"sourcesContent":["import type { MediaTrack, TextTrack } from 'react-native-theoplayer';\nimport { TrackListEventType, VideoQuality } from 'react-native-theoplayer';\nimport { getISO639LanguageByCode } from '../../utils/language/Language';\n\nexport function getTrackLabel(track: MediaTrack | TextTrack): string {\n if (track.label) {\n return track.label;\n }\n const languageCode: string = track.language;\n if (languageCode) {\n const iso639Language = getISO639LanguageByCode(languageCode);\n if (iso639Language) {\n return iso639Language.local;\n }\n }\n return languageCode || '';\n}\n\nexport function stringFromTextTrackListEvent(type: TrackListEventType): string {\n switch (type) {\n case TrackListEventType.ADD_TRACK:\n return 'AddTrack';\n case TrackListEventType.REMOVE_TRACK:\n return 'RemoveTrack';\n case TrackListEventType.CHANGE_TRACK:\n return 'ChangeTrack';\n }\n}\n\n/**\n * Retain renderable tracks.\n * https://html.spec.whatwg.org/multipage/embedded-content.html#text-track-showing\n */\nexport function filterRenderableTracks(textTracks: TextTrack[]): TextTrack[] {\n return textTracks.filter((textTrack) => textTrack.kind === 'subtitles' || textTrack.kind === 'captions');\n}\n\nexport function getVideoQualityLabel(quality: VideoQuality | undefined, withBandWidth = true): string {\n if (!quality) {\n return 'auto';\n }\n if (quality.label && quality.label !== '') {\n return quality.label;\n }\n let label = '';\n if (quality.height) {\n label = quality.height + 'p';\n }\n if (!withBandWidth || !quality.bandwidth) {\n return label;\n }\n let bandwidth;\n if (quality.bandwidth > 1e7) {\n bandwidth = (quality.bandwidth / 1e6).toFixed(0) + 'Mbps';\n } else if (quality.bandwidth > 1e6) {\n bandwidth = (quality.bandwidth / 1e6).toFixed(1) + 'Mbps';\n } else {\n bandwidth = (quality.bandwidth / 1e3).toFixed(0) + 'kbps';\n }\n const isHD = quality.height ? quality.height >= 720 : false;\n return `${label} - ${bandwidth} ${isHD ? '(HD)' : ''}`;\n}\n"],"mappings":";;;;;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAEO,SAASE,aAAaA,CAACC,KAA6B,EAAU;EACnE,IAAIA,KAAK,CAACC,KAAK,EAAE;IACf,OAAOD,KAAK,CAACC,KAAK;EACpB;EACA,MAAMC,YAAoB,GAAGF,KAAK,CAACG,QAAQ;EAC3C,IAAID,YAAY,EAAE;IAChB,MAAME,cAAc,GAAG,IAAAC,iCAAuB,EAACH,YAAY,CAAC;IAC5D,IAAIE,cAAc,EAAE;MAClB,OAAOA,cAAc,CAACE,KAAK;IAC7B;EACF;EACA,OAAOJ,YAAY,IAAI,EAAE;AAC3B;AAEO,SAASK,4BAA4BA,CAACC,IAAwB,EAAU;EAC7E,QAAQA,IAAI;IACV,KAAKC,yCAAkB,CAACC,SAAS;MAC/B,OAAO,UAAU;IACnB,KAAKD,yCAAkB,CAACE,YAAY;MAClC,OAAO,aAAa;IACtB,KAAKF,yCAAkB,CAACG,YAAY;MAClC,OAAO,aAAa;EAAC;AAE3B;;AAEA;AACA;AACA;AACA;AACO,SAASC,sBAAsBA,CAACC,UAAuB,EAAe;EAC3E,OAAOA,UAAU,CAACC,MAAM,CAAEC,SAAS,IAAKA,SAAS,CAACC,IAAI,KAAK,WAAW,IAAID,SAAS,CAACC,IAAI,KAAK,UAAU,CAAC;AAC1G;AAEO,SAASC,oBAAoBA,CAACC,OAAiC,EAAgC;EAAA,IAA9BC,aAAa,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI;EAC1F,IAAI,CAACF,OAAO,EAAE;IACZ,OAAO,MAAM;EACf;EACA,IAAIA,OAAO,CAAClB,KAAK,IAAIkB,OAAO,CAAClB,KAAK,KAAK,EAAE,EAAE;IACzC,OAAOkB,OAAO,CAAClB,KAAK;EACtB;EACA,IAAIA,KAAK,GAAG,EAAE;EACd,IAAIkB,OAAO,CAACK,MAAM,EAAE;IAClBvB,KAAK,GAAGkB,OAAO,CAACK,MAAM,GAAG,GAAG;EAC9B;EACA,IAAI,CAACJ,aAAa,IAAI,CAACD,OAAO,CAACM,SAAS,EAAE;IACxC,OAAOxB,KAAK;EACd;EACA,IAAIwB,SAAS;EACb,IAAIN,OAAO,CAACM,SAAS,GAAG,GAAG,EAAE;IAC3BA,SAAS,GAAG,CAACN,OAAO,CAACM,SAAS,GAAG,GAAG,EAAEC,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM;EAC3D,CAAC,MAAM,IAAIP,OAAO,CAACM,SAAS,GAAG,GAAG,EAAE;IAClCA,SAAS,GAAG,CAACN,OAAO,CAACM,SAAS,GAAG,GAAG,EAAEC,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM;EAC3D,CAAC,MAAM;IACLD,SAAS,GAAG,CAACN,OAAO,CAACM,SAAS,GAAG,GAAG,EAAEC,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM;EAC3D;EACA,MAAMC,IAAI,GAAGR,OAAO,CAACK,MAAM,GAAGL,OAAO,CAACK,MAAM,IAAI,GAAG,GAAG,KAAK;EAC3D,OAAQ,GAAEvB,KAAM,MAAKwB,SAAU,IAAGE,IAAI,GAAG,MAAM,GAAG,EAAG,EAAC;AACxD"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _PlayerContext = require("./PlayerContext");
7
+ Object.keys(_PlayerContext).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _PlayerContext[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _PlayerContext[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=barrel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_PlayerContext","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["barrel.ts"],"sourcesContent":["export * from './PlayerContext';\n"],"mappings":";;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,cAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.arrayRemoveAt = arrayRemoveAt;
7
+ exports.arrayRemoveElement = arrayRemoveElement;
8
+ function arrayRemoveElement(array, element) {
9
+ const index = array.indexOf(element);
10
+ if (index === -1) {
11
+ return false;
12
+ }
13
+ arrayRemoveAt(array, index);
14
+ return true;
15
+ }
16
+ function arrayRemoveAt(array, index) {
17
+ array.splice(index, 1);
18
+ }
19
+ //# sourceMappingURL=ArrayUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["arrayRemoveElement","array","element","index","indexOf","arrayRemoveAt","splice"],"sources":["ArrayUtils.ts"],"sourcesContent":["export function arrayRemoveElement<T>(array: T[], element: T): boolean {\n const index = array.indexOf(element);\n if (index === -1) {\n return false;\n }\n arrayRemoveAt(array, index);\n return true;\n}\n\nexport function arrayRemoveAt<T>(array: T[], index: number): void {\n array.splice(index, 1);\n}\n"],"mappings":";;;;;;;AAAO,SAASA,kBAAkBA,CAAIC,KAAU,EAAEC,OAAU,EAAW;EACrE,MAAMC,KAAK,GAAGF,KAAK,CAACG,OAAO,CAACF,OAAO,CAAC;EACpC,IAAIC,KAAK,KAAK,CAAC,CAAC,EAAE;IAChB,OAAO,KAAK;EACd;EACAE,aAAa,CAACJ,KAAK,EAAEE,KAAK,CAAC;EAC3B,OAAO,IAAI;AACb;AAEO,SAASE,aAAaA,CAAIJ,KAAU,EAAEE,KAAa,EAAQ;EAChEF,KAAK,CAACK,MAAM,CAACH,KAAK,EAAE,CAAC,CAAC;AACxB"}