@bitmovin/player-web-x 10.0.0-beta.16 → 10.0.0-beta.18

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 (264) hide show
  1. package/README.md +44 -135
  2. package/bundles/playerx-bitmovin-v8-core.js +2 -2
  3. package/bundles/playerx-bitmovin-v8.js +2 -2
  4. package/bundles/playerx-core.js +2 -2
  5. package/bundles/playerx-dash.js +2 -2
  6. package/bundles/playerx-hls.js +2 -2
  7. package/bundles/playerx-tv.js +2 -2
  8. package/package.json +2 -2
  9. package/packages/playerx-adaptation.package.d.ts +1 -1
  10. package/packages/playerx-adaptation.package.js +2 -2
  11. package/packages/playerx-bitmovin-source-api.package.d.ts +1 -1
  12. package/packages/playerx-bitmovin-source-api.package.js +2 -2
  13. package/packages/playerx-bitmovin-ui.package.d.ts +1 -1
  14. package/packages/playerx-bitmovin-ui.package.js +2 -2
  15. package/packages/playerx-bitmovin-v8-core.package.d.ts +1 -1
  16. package/packages/playerx-bitmovin-v8-core.package.js +2 -2
  17. package/packages/playerx-bitmovin-v8-static-api.package.d.ts +1 -1
  18. package/packages/playerx-bitmovin-v8-static-api.package.js +2 -2
  19. package/packages/playerx-bitmovin-video-element-utils.package.d.ts +1 -1
  20. package/packages/playerx-bitmovin-video-element-utils.package.js +2 -2
  21. package/packages/playerx-capabilities.package.d.ts +1 -1
  22. package/packages/playerx-capabilities.package.js +2 -2
  23. package/packages/playerx-container-mp4.package.d.ts +1 -1
  24. package/packages/playerx-container-mp4.package.js +2 -2
  25. package/packages/playerx-container-ts.package.d.ts +1 -1
  26. package/packages/playerx-container-ts.package.js +2 -2
  27. package/packages/playerx-core.package.d.ts +1 -1
  28. package/packages/playerx-core.package.js +2 -2
  29. package/packages/playerx-dash-parsing.package.d.ts +1 -1
  30. package/packages/playerx-dash-parsing.package.js +2 -2
  31. package/packages/playerx-dash-translation.package.d.ts +1 -1
  32. package/packages/playerx-dash-translation.package.js +2 -2
  33. package/packages/playerx-dash.package.d.ts +1 -1
  34. package/packages/playerx-dash.package.js +2 -2
  35. package/packages/playerx-data.package.d.ts +1 -1
  36. package/packages/playerx-data.package.js +2 -2
  37. package/packages/playerx-event-bus.package.d.ts +1 -1
  38. package/packages/playerx-event-bus.package.js +2 -2
  39. package/packages/playerx-hls-parsing.package.d.ts +1 -1
  40. package/packages/playerx-hls-parsing.package.js +2 -2
  41. package/packages/playerx-hls-translation.package.d.ts +1 -1
  42. package/packages/playerx-hls-translation.package.js +2 -2
  43. package/packages/playerx-hls.package.d.ts +1 -1
  44. package/packages/playerx-hls.package.js +2 -2
  45. package/packages/playerx-network.package.d.ts +1 -1
  46. package/packages/playerx-network.package.js +2 -2
  47. package/packages/playerx-player-api.package.d.ts +1 -1
  48. package/packages/playerx-player-api.package.js +2 -2
  49. package/packages/playerx-presentation.package.d.ts +1 -1
  50. package/packages/playerx-presentation.package.js +2 -2
  51. package/packages/playerx-segment-processing.package.d.ts +1 -1
  52. package/packages/playerx-segment-processing.package.js +2 -2
  53. package/packages/playerx-source.package.d.ts +1 -1
  54. package/packages/playerx-source.package.js +2 -2
  55. package/packages/playerx-sources-api.package.d.ts +1 -1
  56. package/packages/playerx-sources-api.package.js +2 -2
  57. package/packages/playerx-trick-play.package.d.ts +1 -1
  58. package/packages/playerx-trick-play.package.js +2 -2
  59. package/packages/playerx-ts-transmuxer.package.d.ts +1 -1
  60. package/packages/playerx-ts-transmuxer.package.js +2 -2
  61. package/packages/playerx-tv.package.d.ts +1 -1
  62. package/packages/playerx-tv.package.js +2 -2
  63. package/packages/playerx-view-mode.package.d.ts +1 -1
  64. package/packages/playerx-view-mode.package.js +2 -2
  65. package/playerx-framework-utils.d.ts +1 -1
  66. package/playerx-framework-utils.js +1 -1
  67. package/types/FrameworkUtils.d.ts +3 -0
  68. package/types/{BaseTypes.d.ts → Types.d.ts} +0 -3
  69. package/types/bundles/BitmovinV8.bundle.d.ts +2 -2
  70. package/types/bundles/BitmovinV8Core.bundle.d.ts +2 -2
  71. package/types/bundles/Core.bundle.d.ts +1 -1
  72. package/types/bundles/Dash.bundle.d.ts +7 -8
  73. package/types/bundles/Hls.bundle.d.ts +7 -8
  74. package/types/bundles/Types.d.ts +5 -1
  75. package/types/{framework/core → packages}/Types.d.ts +2 -2
  76. package/types/packages/adaptation/Adaptation.package.d.ts +33 -0
  77. package/types/{framework/core → packages}/adaptation/AdaptationStateAtom.d.ts +4 -4
  78. package/types/packages/adaptation/AdaptationTask.d.ts +5 -0
  79. package/types/packages/adaptation/Types.d.ts +37 -0
  80. package/types/{framework/core → packages}/adaptation/WishConfigAtom.d.ts +4 -4
  81. package/types/{framework/core → packages}/capabilities/Capabilities.package.d.ts +4 -4
  82. package/types/packages/container/container-mp4/ContainerMp4.package.d.ts +35 -0
  83. package/types/packages/container/container-ts/ContainerTs.package.d.ts +32 -0
  84. package/types/packages/container/ts-transmuxer/TsTransmuxer.package.d.ts +33 -0
  85. package/types/{framework/core/source/Source.package.d.ts → packages/core/Core.package.d.ts} +8 -18
  86. package/types/packages/core/Types.d.ts +133 -0
  87. package/types/{framework/core → packages}/core/effects/EventListenerEffectFactory.d.ts +4 -4
  88. package/types/{framework/core → packages}/core/metrics/MetricsAtom.d.ts +4 -5
  89. package/types/{framework/core → packages}/core/network/NetworkAtom.d.ts +1 -1
  90. package/types/{framework/core → packages}/core/state/ArrayStateAtom.d.ts +1 -1
  91. package/types/{framework/core → packages}/core/state/QueueAtom.d.ts +1 -1
  92. package/types/packages/core/state/StoreEffectFactory.d.ts +5 -0
  93. package/types/{framework/core → packages}/core/state/Types.d.ts +1 -1
  94. package/types/{framework/core → packages}/core/state/codec-map/CodecMapAtom.d.ts +5 -5
  95. package/types/{framework/core → packages}/core/state/data-ranges/DataRangesAtom.d.ts +4 -4
  96. package/types/{framework/core → packages}/core/state/segment/SegmentAtom.d.ts +1 -1
  97. package/types/{framework/core → packages}/core/state/segment/SegmentDataAtom.d.ts +6 -7
  98. package/types/{framework/core → packages}/core/state/segment/SegmentTimingAtom.d.ts +1 -1
  99. package/types/{framework/core → packages}/core/state/segment/SegmentUtils.d.ts +4 -4
  100. package/types/{framework/core → packages}/core/state/selection-group/SelectionGroupAtom.d.ts +5 -5
  101. package/types/{framework/core → packages}/core/state/state-effect/StateEffectFactory.d.ts +4 -4
  102. package/types/{framework/core → packages}/core/state/state-effect/Types.d.ts +3 -3
  103. package/types/{framework/core → packages}/core/state/stream-timeline/StreamSectionAtom.d.ts +6 -6
  104. package/types/{framework/core → packages}/core/state/track/TrackAtom.d.ts +8 -8
  105. package/types/{framework/core → packages}/core/utils/CodecStringHelper.d.ts +6 -6
  106. package/types/{framework/core → packages}/core/utils/StateUtils.d.ts +6 -6
  107. package/types/packages/data/Data.package.d.ts +15 -0
  108. package/types/packages/data/Types.d.ts +46 -0
  109. package/types/packages/event-bus/EventBus.package.d.ts +16 -0
  110. package/types/{framework/core → packages}/event-bus/Types.d.ts +5 -5
  111. package/types/{framework/core → packages}/manifest/dash/parsing/DashParsing.package.d.ts +8 -7
  112. package/types/packages/manifest/dash/parsing/DashParsingTask.d.ts +2 -0
  113. package/types/packages/manifest/dash/root/Dash.package.d.ts +15 -0
  114. package/types/packages/manifest/dash/root/Types.d.ts +38 -0
  115. package/types/{framework/core → packages}/manifest/dash/translation/DashTranslation.package.d.ts +3 -22
  116. package/types/packages/manifest/dash/translation/Types.d.ts +22 -0
  117. package/types/packages/manifest/dash/translation/manifests/DashPlaylistTranslatorTask.d.ts +3 -0
  118. package/types/{framework/core → packages}/manifest/hls/parsing/HlsParsing.package.d.ts +8 -7
  119. package/types/packages/manifest/hls/parsing/HlsParsingTask.d.ts +2 -0
  120. package/types/packages/manifest/hls/root/Hls.package.d.ts +56 -0
  121. package/types/{framework/core → packages}/manifest/hls/translation/HlsTranslation.package.d.ts +11 -10
  122. package/types/{framework/core → packages}/manifest/hls/translation/manifests/HlsMultivariantPlaylistTranslatorTask.d.ts +1 -1
  123. package/types/{framework/core → packages}/manifest/hls/translation/manifests/HlsVariantTranslationTask.d.ts +1 -1
  124. package/types/packages/network/FetchTask.d.ts +4 -0
  125. package/types/packages/network/Network.package.d.ts +12 -0
  126. package/types/{framework/core → packages}/network/NetworkTask.d.ts +2 -3
  127. package/types/{framework/core → packages}/network/Types.d.ts +29 -2
  128. package/types/packages/player-api/PlayerApi.package.d.ts +29 -0
  129. package/types/packages/presentation/Presentation.package.d.ts +62 -0
  130. package/types/packages/segment-processing/SegmentProcessing.package.d.ts +28 -0
  131. package/types/{framework/core → packages}/segment-processing/Types.d.ts +9 -9
  132. package/types/packages/source/Source.package.d.ts +25 -0
  133. package/types/{framework/core → packages}/source/SourceReference.d.ts +9 -8
  134. package/types/{framework/core → packages}/source/Types.d.ts +12 -11
  135. package/types/{framework/core → packages}/source/atoms/BufferConfigAtom.d.ts +5 -5
  136. package/types/{framework/core → packages}/source/atoms/MediaTypeMapAtom.d.ts +5 -5
  137. package/types/{framework/core → packages}/source/atoms/PlaybackConfigAtom.d.ts +1 -1
  138. package/types/{framework/core → packages}/source/atoms/SourceStateAtom.d.ts +8 -8
  139. package/types/packages/sources-api/SourcesApi.package.d.ts +12 -0
  140. package/types/packages/sources-api/Types.d.ts +102 -0
  141. package/types/{framework/core → packages}/sources-api/VideoElementUtils.d.ts +1 -1
  142. package/types/packages/trick-play/TrickPlay.package.d.ts +37 -0
  143. package/types/packages/tv/Tv.package.d.ts +28 -0
  144. package/types/packages/v8-compat/BitmovinUi.package.d.ts +20 -0
  145. package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/BitmovinV8Core.package.d.ts +2 -2
  146. package/types/packages/v8-compat/BitmovinV8StaticApi.package.d.ts +49 -0
  147. package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/event-handling/EventListenerAtom.d.ts +2 -2
  148. package/types/packages/v8-compat/source-api/BitmovinSourceApi.package.d.ts +39 -0
  149. package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/Types.d.ts +1 -1
  150. package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/video-element/BitmovinVideoElementUtils.package.d.ts +12 -10
  151. package/types/packages/view-mode/ViewMode.package.d.ts +36 -0
  152. package/bundles/playerx-playlist.d.ts +0 -1
  153. package/bundles/playerx-playlist.js +0 -10
  154. package/packages/playerx-playback-state.package.d.ts +0 -1
  155. package/packages/playerx-playback-state.package.js +0 -10
  156. package/packages/playerx-playlist.package.d.ts +0 -1
  157. package/packages/playerx-playlist.package.js +0 -10
  158. package/packages/playerx-resize-tracker.package.d.ts +0 -1
  159. package/packages/playerx-resize-tracker.package.js +0 -10
  160. package/types/bundles/Playlist.bundle.d.ts +0 -23
  161. package/types/framework/FrameworkUtils.d.ts +0 -3
  162. package/types/framework/Types.d.ts +0 -50
  163. package/types/framework/core/adaptation/Adaptation.package.d.ts +0 -64
  164. package/types/framework/core/container/container-mp4/ContainerMp4.package.d.ts +0 -34
  165. package/types/framework/core/container/container-ts/ContainerTs.package.d.ts +0 -31
  166. package/types/framework/core/container/ts-transmuxer/TsTransmuxer.package.d.ts +0 -32
  167. package/types/framework/core/core/Core.package.d.ts +0 -138
  168. package/types/framework/core/core/state/StoreEffectFactory.d.ts +0 -5
  169. package/types/framework/core/data/Data.package.d.ts +0 -53
  170. package/types/framework/core/event-bus/EventBus.package.d.ts +0 -8
  171. package/types/framework/core/manifest/dash/parsing/DashParsingTask.d.ts +0 -2
  172. package/types/framework/core/manifest/dash/root/Dash.package.d.ts +0 -47
  173. package/types/framework/core/manifest/dash/root/Types.d.ts +0 -3
  174. package/types/framework/core/manifest/dash/translation/Types.d.ts +0 -3
  175. package/types/framework/core/manifest/dash/translation/manifests/DashPlaylistTranslatorTask.d.ts +0 -3
  176. package/types/framework/core/manifest/hls/parsing/HlsParsingTask.d.ts +0 -2
  177. package/types/framework/core/manifest/hls/root/Hls.package.d.ts +0 -52
  178. package/types/framework/core/network/FetchTask.d.ts +0 -5
  179. package/types/framework/core/network/Network.package.d.ts +0 -33
  180. package/types/framework/core/player-api/PlayerApi.package.d.ts +0 -19
  181. package/types/framework/core/presentation/Presentation.package.d.ts +0 -59
  182. package/types/framework/core/segment-processing/SegmentProcessing.package.d.ts +0 -28
  183. package/types/framework/core/sources-api/SourcesApi.package.d.ts +0 -63
  184. package/types/framework/core/sources-api/Types.d.ts +0 -68
  185. package/types/framework/core/trick-play/TrickPlay.package.d.ts +0 -35
  186. package/types/framework/core/view-mode/ViewMode.package.d.ts +0 -23
  187. package/types/framework/player/bitmovin-v8-compat/BitmovinUi.package.d.ts +0 -20
  188. package/types/framework/player/bitmovin-v8-compat/BitmovinV8StaticApi.package.d.ts +0 -47
  189. package/types/framework/player/bitmovin-v8-compat/source-api/BitmovinSourceApi.package.d.ts +0 -37
  190. package/types/framework/player/playback-state/PlaybackState.package.d.ts +0 -40
  191. package/types/framework/player/playback-state/PlaybackStateAtom.d.ts +0 -40
  192. package/types/framework/player/playback-state/Types.d.ts +0 -7
  193. package/types/framework/player/playback-state/VideoElementStateAtom.d.ts +0 -9
  194. package/types/framework/player/playlist/Playlist.package.d.ts +0 -31
  195. package/types/framework/player/playlist/Types.d.ts +0 -13
  196. package/types/framework/player/resize-tracker/ResizeObserverEffectFactory.d.ts +0 -11
  197. package/types/framework/player/resize-tracker/ResizeTracker.package.d.ts +0 -38
  198. package/types/framework/player/resize-tracker/ResizeTrackerStateAtom.d.ts +0 -9
  199. package/types/framework/player/resize-tracker/VideoElementStateAtom.d.ts +0 -9
  200. package/types/framework/player/tv/Tv.package.d.ts +0 -26
  201. /package/types/{framework/core → packages}/adaptation/RingBufferAtom.d.ts +0 -0
  202. /package/types/{framework/core → packages}/adaptation/WishDataAtom.d.ts +0 -0
  203. /package/types/{framework/core → packages}/capabilities/Types.d.ts +0 -0
  204. /package/types/{framework/core → packages}/container/container-ts/processors/Constants.d.ts +0 -0
  205. /package/types/{framework/core → packages}/container/container-ts/processors/Types.d.ts +0 -0
  206. /package/types/{framework/core → packages}/container/container-ts/processors/packet-parsing/PacketParserData.d.ts +0 -0
  207. /package/types/{framework/core → packages}/container/container-ts/processors/payload-parsing/Types.d.ts +0 -0
  208. /package/types/{framework/core → packages}/container/container-ts/processors/readers/ChunkCursor.d.ts +0 -0
  209. /package/types/{framework/core → packages}/container/container-ts/processors/readers/PacketCursor.d.ts +0 -0
  210. /package/types/{framework/core → packages}/core/Constants.d.ts +0 -0
  211. /package/types/{framework/core → packages}/core/FrameworkError.d.ts +0 -0
  212. /package/types/{framework/core → packages}/core/metrics/network/NetworkSampleAtom.d.ts +0 -0
  213. /package/types/{framework/core → packages}/core/state/MapStateAtom.d.ts +0 -0
  214. /package/types/{framework/core → packages}/core/state/PrimitiveAtom.d.ts +0 -0
  215. /package/types/{framework/core → packages}/core/state/Symbols.d.ts +0 -0
  216. /package/types/{framework/core → packages}/core/state/data-stream/DataStreamAtom.d.ts +0 -0
  217. /package/types/{framework/core → packages}/core/state/segment/SegmentTypeGuards.d.ts +0 -0
  218. /package/types/{framework/core → packages}/core/state/selection-group/SelectionGroupTypeGuards.d.ts +0 -0
  219. /package/types/{framework/core → packages}/core/state/selection-group/SelectionGroupUtils.d.ts +0 -0
  220. /package/types/{framework/core → packages}/core/state/stream/StreamAtom.d.ts +0 -0
  221. /package/types/{framework/core → packages}/core/state/stream-timeline/StreamSequenceMapAtom.d.ts +0 -0
  222. /package/types/{framework/core → packages}/core/state/stream-timeline/StreamTimelineMapAtom.d.ts +0 -0
  223. /package/types/{framework/core → packages}/core/state/track/TrackTypeGuards.d.ts +0 -0
  224. /package/types/{framework/core → packages}/core/utils/ArrayHelper.d.ts +0 -0
  225. /package/types/{framework/core → packages}/core/utils/FormatError.d.ts +0 -0
  226. /package/types/{framework/core → packages}/core/utils/Logger.d.ts +0 -0
  227. /package/types/{framework/core → packages}/core/utils/RangesHelper.d.ts +0 -0
  228. /package/types/{framework/core → packages}/core/utils/StringHelper.d.ts +0 -0
  229. /package/types/{framework/core → packages}/core/utils/TypedArrayHelper.d.ts +0 -0
  230. /package/types/{framework/core → packages}/core/utils/Types.d.ts +0 -0
  231. /package/types/{framework/core → packages}/core/utils/UrlHelper.d.ts +0 -0
  232. /package/types/{framework/core → packages}/event-bus/EventBus.d.ts +0 -0
  233. /package/types/{framework/core → packages}/manifest/dash/parsing/Errors.d.ts +0 -0
  234. /package/types/{framework/core → packages}/manifest/dash/parsing/Types.d.ts +0 -0
  235. /package/types/{framework/core → packages}/manifest/hls/parsing/Errors.d.ts +0 -0
  236. /package/types/{framework/core → packages}/manifest/hls/parsing/HlsParsingFunctions.d.ts +0 -0
  237. /package/types/{framework/core → packages}/manifest/hls/parsing/Types.d.ts +0 -0
  238. /package/types/{framework/core → packages}/manifest/hls/parsing/m3u8/AbstractStream.d.ts +0 -0
  239. /package/types/{framework/core → packages}/manifest/hls/parsing/m3u8/DefaultTagParsers.d.ts +0 -0
  240. /package/types/{framework/core → packages}/manifest/hls/parsing/m3u8/TranslatorStream.d.ts +0 -0
  241. /package/types/{framework/core → packages}/manifest/hls/root/Types.d.ts +0 -0
  242. /package/types/{framework/core → packages}/manifest/hls/translation/Types.d.ts +0 -0
  243. /package/types/{framework/core → packages}/network/NetworkMessageTypes.d.ts +0 -0
  244. /package/types/{framework/core → packages}/player-api/Types.d.ts +0 -0
  245. /package/types/{framework/core → packages}/presentation/Types.d.ts +0 -0
  246. /package/types/{framework/core → packages}/presentation/cache/Types.d.ts +0 -0
  247. /package/types/{framework/core → packages}/segment-processing/Errors.d.ts +0 -0
  248. /package/types/{framework/core → packages}/segment-processing/SegmentProcessingComponent.d.ts +0 -0
  249. /package/types/{framework/core → packages}/source/atoms/PlaybackAtom.d.ts +0 -0
  250. /package/types/{framework/core → packages}/source/atoms/PlayheadAtom.d.ts +0 -0
  251. /package/types/{framework/core → packages}/source/atoms/SourceConfigAtom.d.ts +0 -0
  252. /package/types/{framework/core → packages}/source/atoms/StartupOptionsAtom.d.ts +0 -0
  253. /package/types/{framework/core → packages}/source/atoms/VideoElementAtom.d.ts +0 -0
  254. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/BufferApi.d.ts +0 -0
  255. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/DrmApi.d.ts +0 -0
  256. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/ManifestApi.d.ts +0 -0
  257. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/apis/SubtitleApi.d.ts +0 -0
  258. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/enums/PlayerExports.d.ts +0 -0
  259. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/AdvertisingConfig.d.ts +0 -0
  260. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/DrmConfig.d.ts +0 -0
  261. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/NetworkConfig.d.ts +0 -0
  262. /package/types/{framework/player/bitmovin-v8-compat → packages/v8-compat}/types/PlayerConfig.d.ts +0 -0
  263. /package/types/{framework/core → packages}/view-mode/Types.d.ts +0 -0
  264. /package/types/{framework/core → packages}/view-mode/ViewModeAtom.d.ts +0 -0
package/README.md CHANGED
@@ -2,141 +2,51 @@
2
2
 
3
3
  The next-gen Bitmovin web player.
4
4
 
5
- Welcome to the future!
5
+ Player Web X (PWX for short) is a new video player for the web that we at Bitmovin developed. It is based on an in-house developed library that we call the Phoenix Framework.
6
6
 
7
- This package is several things.
7
+ The Phoenix Framework is built from the ground up with fundamentals such as structured concurrency, an effect system and a package first architecture in mind that facilitates extensibility. Player Web X is built on a state-driven architecture that is built on top of the framework. Player Web X is developed with focus on making a highly performant player, with different, smaller and purpose built bundles comprised of different packages, as well as a Package API. Package API allows custom behaviours and functionalities to be built externally to the player, enabling our customers to support their own use cases without ever needing our help.
8
8
 
9
- The first thing is simply a web streaming video player. Currently, this player can play HLS streams using the fMP4 segment format.
9
+ Currently, Player Web X has support for HLS streams that use the fMP4 and TS segment formats and partial support for DASH streams and muxed content. For a more detailed and complete listing of supported features, please refer to the [Support Matrix](https://developer.bitmovin.com/playback/docs/player-web-x-support-matrix).
10
10
 
11
- If that's what you need, you are in luck, as it's a high performance player. So let's dive into how to implement it in your web application or page.
12
11
 
13
- You will need a Bitmovin player account, you can sign up for either Player or Streams here: https://dashboard.bitmovin.com/signup. If you just want to kick the tyres, don't worry, we offer a fully featured trial account, no credit card needed.
12
+ To learn more about the framework and the player, checkout our [full documentation](https://developer.bitmovin.com/playback/docs/about-player-web-x).
14
13
 
15
- Once you have a licence key, all you need to do is to include the player in your web application, and run it:
14
+ ## Getting started
16
15
 
17
- ### Simple Usage Example
16
+ The easiest way of getting started with Player Web X is to use our bundles from cdn and a simple HTML page to embed the player on.
17
+ You can read more about different approaches in our [getting started page](https://developer.bitmovin.com/playback/docs/player-web-x-getting-started).
18
18
 
19
- This is an example of the HTML that would be required to run the player in a page as a monolith. This leverages our build system to compile together multiple packages into one loadable file.
19
+ But here we will cover only be covering the use of npm package to bundle the player into your app.
20
20
 
21
- Once the file is loaded, the player is available on the namespace `bitmovin.playerx.Player` and can be instantiated by passing a config to the constructor function.
21
+ ### Using the npm package
22
22
 
23
- This returns an object which exposes the api through which playback can be controlled.
23
+ This example shows how to use the monolithic player from npm. First you will need to install the player to your project
24
24
 
25
- ```html
26
- <!DOCTYPE html>
27
- <html lang="en">
28
- <head>
29
- <title>Bitmovin Player Web X Demo</title>
30
- <script type="text/javascript" src="./bundles/playerx-hls.js"></script>
31
- <style>
32
- #player-container {
33
- width: 95%;
34
- margin: 20px auto;
35
- }
36
- video {
37
- display: block;
38
- }
39
- </style>
40
- </head>
41
- <body>
42
- <div id="player-container"></div>
43
-
44
- <script type="text/javascript">
45
- const player = bitmovin.playerx.Player({
46
- key: 'YOUR-PLAYER-KEY',
47
- });
48
-
49
- const source = player.sources.add('https://cdn.bitmovin.com/content/assets/streams-sample-video/tos/m3u8/index.m3u8');
50
- </script>
51
- </body>
52
- </html>
53
- ```
54
-
55
- The following example, by contrast, loads the packages one by one, effectively building a player out of its constituent parts. This would allow you to build targeted players for streams with different formats or features for example, while remaining as lightweight as possible.
56
-
57
- All our packages are connected to the `bitmovin.playerx` namespace here, but that is a configuration choice. Third-party package authors can use different namespaces without a problem.
58
-
59
- ### Package Example
60
- ```html
61
- <!DOCTYPE html>
62
- <html lang="en">
63
- <head>
64
- <title>Bitmovin Player Web X Demo</title>
65
- <meta charset="UTF-8"/>
66
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
67
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
68
- <script type="text/javascript" src="./bundles/playerx-core.js"></script>
69
- <script type="text/javascript" src="./packages/playerx-capabilities.package.js"></script>
70
- <script type="text/javascript" src="./packages/playerx-segment-processing.package.js"></script>
71
- <script type="text/javascript" src="./packages/playerx-container-mp4.package.js"></script>
72
- <script type="text/javascript" src="./packages/playerx-data.package.js"></script>
73
- <script type="text/javascript" src="./packages/playerx-network.package.js"></script>
74
- <script type="text/javascript" src="./packages/playerx-hls-translation.package.js"></script>
75
- <script type="text/javascript" src="./packages/playerx-hls-parsing.package.js"></script>
76
- <script type="text/javascript" src="./packages/playerx-hls.package.js"></script>
77
- <script type="text/javascript" src="./packages/playerx-presentation.package.js"></script>
78
- <script type="text/javascript" src="./packages/playerx-source.package.js"></script>
79
- <script type="text/javascript" src="./packages/playerx-sources-api.package.js"></script>
80
- <script type="text/javascript" src="./packages/playerx-adaptation.package.js"></script>
81
-
82
- <style>
83
- #player-container {
84
- width: 95%;
85
- margin: 20px auto;
86
- box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
87
- }
88
- video {
89
- display: block;
90
- }
91
- </style>
92
- </head>
93
- <body>
94
- <div id="player-container"></div>
95
- <script type="text/javascript">
96
- const player = bitmovin.playerx.Player({
97
- key: 'YOUR-PLAYER-KEY',
98
- });
99
-
100
- player.packages.add(bitmovin.playerx['capabilities'].default);
101
- player.packages.add(bitmovin.playerx['segment-processing'].default);
102
- player.packages.add(bitmovin.playerx['container-mp4'].default);
103
- player.packages.add(bitmovin.playerx['data'].default);
104
- player.packages.add(bitmovin.playerx['network'].default);
105
- player.packages.add(bitmovin.playerx['hls-translation'].default);
106
- player.packages.add(bitmovin.playerx['hls-parsing'].default);
107
- player.packages.add(bitmovin.playerx['hls'].default);
108
- player.packages.add(bitmovin.playerx['presentation'].default);
109
- player.packages.add(bitmovin.playerx['source'].default);
110
- player.packages.add(bitmovin.playerx['sources-api'].default);
111
- player.packages.add(bitmovin.playerx['adaptation'].default);
112
-
113
- player.sources.add('https://cdn.bitmovin.com/content/assets/streams-sample-video/sintel/m3u8/index.m3u8');
114
- </script>
115
- </body>
116
- </html>
117
25
  ```
118
- ### Simple TypeScript Usage Example
119
-
120
- This example shows how to use the monolithic player from npm. First you will need to install the player (this package) to your project:
121
-
122
- ```shell
123
26
  npm install @bitmovin/player-web-x
124
27
  ```
125
28
 
126
29
  ```typescript
127
30
  import { Player } from '@bitmovin/player-web-x/bundles/playerx-hls';
128
- import type { PlayerAndSourcesApi } from '@bitmovin/player-web-x/types/framework/core/sources-api/Types';
129
31
 
130
- const player = Player({ key: 'YOUR-PLAYER-KEY' }) as PlayerAndSourcesApi;
32
+ const player = Player({
33
+ key: 'YOUR-PLAYER-KEY',
34
+ defaultContainer: document.getElementById('player-container')
35
+ });
131
36
 
132
- player.sources.add('https://cdn.bitmovin.com/content/assets/streams-sample-video/sintel/m3u8/index.m3u8');
133
- ```
37
+ const sourceConfig = {
38
+ resources: [{
39
+ url: 'https://cdn.bitmovin.com/content/assets/streams-sample-video/tos/m3u8/index.m3u8',
40
+ }]
41
+ }
134
42
 
135
- ### TypeScript Package Example
43
+ player.sources.add(sourceConfig);
44
+ ```
136
45
 
137
- This is the same, but with the packages.
46
+ Or using the packages. In this case, you need to merge the API type yourself.
138
47
 
139
48
  ```typescript
49
+
140
50
  import { Player } from '@bitmovin/player-web-x/bundles/playerx-core';
141
51
  import { AdaptationPackage } from '@bitmovin/player-web-x/packages/playerx-adaptation.package';
142
52
  import { CapabilitiesPackage } from '@bitmovin/player-web-x/packages/playerx-capabilities.package';
@@ -149,10 +59,19 @@ import { NetworkPackage } from '@bitmovin/player-web-x/packages/playerx-network.
149
59
  import { PresentationPackage } from '@bitmovin/player-web-x/packages/playerx-presentation.package';
150
60
  import { SegmentProcessingPackage } from '@bitmovin/player-web-x/packages/playerx-segment-processing.package';
151
61
  import { SourcePackage } from '@bitmovin/player-web-x/packages/playerx-source.package';
152
- import { SourcesApiPackage } from '@bitmovin/player-web-x/packages/playerx-sources-api.package';
153
- import type { PlayerAndSourcesApi } from '@bitmovin/player-web-x/types/framework/core/sources-api/Types';
62
+ import { SourcesApiPackage } from '@bitmovin/player-web-x/packages/playerx-sources-api.package';
63
+ import { ViewModePackage } from '@bitmovin/player-web-x/packages/playerx-view-mode.package';
64
+ import type { ViewModeApi } from '@bitmovin/player-web-x/types/framework/core/view-mode/Types'
65
+ import type { SourceApiBase, SourcesApi } from '@bitmovin/player-web-x/types/framework/core/sources-api/Types'
66
+ import type { PlayerApi } from '@bitmovin/player-web-x/types/framework/core/player-api/Types'
67
+
68
+ type SourceApi = SourceApiBase & ViewModeApi;
69
+ type MyApi = PlayerApi & SourcesApi<SourceApi>;
154
70
 
155
- const player = Player({ key: 'YOUR-PLAYER-KEY' }) as PlayerAndSourcesApi;
71
+ const player = Player({
72
+ key: 'YOUR-PLAYER-KEY',
73
+ defaultContainer: document.getElementById('player-container')
74
+ }) as MyApi
156
75
 
157
76
  player.packages.add(CapabilitiesPackage);
158
77
  player.packages.add(SegmentProcessingPackage);
@@ -166,31 +85,21 @@ player.packages.add(PresentationPackage);
166
85
  player.packages.add(SourcePackage);
167
86
  player.packages.add(AdaptationPackage);
168
87
  player.packages.add(SourcesApiPackage);
88
+ player.packages.add(ViewModePackage);
169
89
 
170
- player.sources.add('https://cdn.bitmovin.com/content/assets/streams-sample-video/sintel/m3u8/index.m3u8');
90
+ const sourceConfig = {
91
+ resources: [{
92
+ url: 'https://cdn.bitmovin.com/content/assets/streams-sample-video/tos/m3u8/index.m3u8',
93
+ }]
94
+ }
95
+
96
+ player.sources.add(sourceConfig);
171
97
  ```
172
98
 
173
99
  ## Bitmovin Player V8 compatibility
174
100
 
175
- To avoid disruption, we have also built a compatibility layer to allow you to use this player as a dropin for v8.
176
-
177
- > [!CAUTION]
178
- > This Player is not yet feature complete. Only use it as a replacement for V8 if it covers your use case.
179
- >
180
- > To find out how to use this compatibility mode, please see [COMPAT.md](/COMPAT.md).
101
+ To avoid disruption, we have also built a compatibility layer to allow you to use this player as a dropin for v8 - read more about it in our [documentation](https://developer.bitmovin.com/playback/docs/player-web-x-v8-compatibility)
181
102
 
182
103
  ## Package template repository
183
104
 
184
105
  To find out more about packages and how to build them, please check out our [package template repository](https://github.com/bitmovin/pwx-package-template). It includes examples of packages of various types, and also functions as a package build system.
185
-
186
- ## Why is this player different?
187
-
188
- Above, it was mentioned that this package is several things. Let's return to that statement a bit. More than just being a player, PWX can also be seen as a playback platform.
189
- This is because it is built using our custom framework, Phoenix (now you know where that namespace comes from).
190
- The framework is a structured concurrency implementation which is designed to be plugin first: on its own it doesn't implement any business logic, which is all loaded via packages.
191
- That is what the call to `bitmovin.playerx.Player` does in fact, it just loads the framework. You can see that all functionality, even network requests, are added subsequently.
192
- What this means for our users is that by using packages, any conceivable integration is possible (and usually fairly easy) to accomplish. We will soon release some examples of adding functionality via packages.
193
-
194
- That is what is meant by playback platform. If your app or website is based around playback, Player Web X will allow you to build a tailored, powerful and performant integration to support your business needs.
195
-
196
- We're very excited about that.