@nomercy-entertainment/nomercy-player-core 2.0.0-rc.2

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 (717) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/CODE_OF_CONDUCT.md +39 -0
  3. package/CONTRIBUTING.md +38 -0
  4. package/LICENSE +190 -0
  5. package/MIGRATION.md +184 -0
  6. package/README.md +56 -0
  7. package/RELEASING.md +47 -0
  8. package/SECURITY.md +36 -0
  9. package/dist/adapters/clock/IClock.d.ts +12 -0
  10. package/dist/adapters/clock/IClock.d.ts.map +1 -0
  11. package/dist/adapters/clock/IClock.js +2 -0
  12. package/dist/adapters/clock/IClock.js.map +1 -0
  13. package/dist/adapters/clock/index.d.ts +3 -0
  14. package/dist/adapters/clock/index.d.ts.map +1 -0
  15. package/dist/adapters/clock/index.js +2 -0
  16. package/dist/adapters/clock/index.js.map +1 -0
  17. package/dist/adapters/clock/system.d.ts +7 -0
  18. package/dist/adapters/clock/system.d.ts.map +1 -0
  19. package/dist/adapters/clock/system.js +8 -0
  20. package/dist/adapters/clock/system.js.map +1 -0
  21. package/dist/adapters/cue-parser/ICueParser.d.ts +31 -0
  22. package/dist/adapters/cue-parser/ICueParser.d.ts.map +1 -0
  23. package/dist/adapters/cue-parser/ICueParser.js +2 -0
  24. package/dist/adapters/cue-parser/ICueParser.js.map +1 -0
  25. package/dist/adapters/cue-parser/ICueParserRegistry.d.ts +15 -0
  26. package/dist/adapters/cue-parser/ICueParserRegistry.d.ts.map +1 -0
  27. package/dist/adapters/cue-parser/ICueParserRegistry.js +2 -0
  28. package/dist/adapters/cue-parser/ICueParserRegistry.js.map +1 -0
  29. package/dist/adapters/cue-parser/built-ins.d.ts +29 -0
  30. package/dist/adapters/cue-parser/built-ins.d.ts.map +1 -0
  31. package/dist/adapters/cue-parser/built-ins.js +76 -0
  32. package/dist/adapters/cue-parser/built-ins.js.map +1 -0
  33. package/dist/adapters/cue-parser/index.d.ts +8 -0
  34. package/dist/adapters/cue-parser/index.d.ts.map +1 -0
  35. package/dist/adapters/cue-parser/index.js +4 -0
  36. package/dist/adapters/cue-parser/index.js.map +1 -0
  37. package/dist/adapters/cue-parser/lrc.d.ts +27 -0
  38. package/dist/adapters/cue-parser/lrc.d.ts.map +1 -0
  39. package/dist/adapters/cue-parser/lrc.js +121 -0
  40. package/dist/adapters/cue-parser/lrc.js.map +1 -0
  41. package/dist/adapters/cue-parser/registry.d.ts +31 -0
  42. package/dist/adapters/cue-parser/registry.d.ts.map +1 -0
  43. package/dist/adapters/cue-parser/registry.js +57 -0
  44. package/dist/adapters/cue-parser/registry.js.map +1 -0
  45. package/dist/adapters/cue-parser/vtt.d.ts +66 -0
  46. package/dist/adapters/cue-parser/vtt.d.ts.map +1 -0
  47. package/dist/adapters/cue-parser/vtt.js +260 -0
  48. package/dist/adapters/cue-parser/vtt.js.map +1 -0
  49. package/dist/adapters/element-factory/dom.d.ts +44 -0
  50. package/dist/adapters/element-factory/dom.d.ts.map +1 -0
  51. package/dist/adapters/element-factory/dom.js +114 -0
  52. package/dist/adapters/element-factory/dom.js.map +1 -0
  53. package/dist/adapters/element-factory/index.d.ts +3 -0
  54. package/dist/adapters/element-factory/index.d.ts.map +1 -0
  55. package/dist/adapters/element-factory/index.js +2 -0
  56. package/dist/adapters/element-factory/index.js.map +1 -0
  57. package/dist/adapters/event-bus/IEventBus.d.ts +20 -0
  58. package/dist/adapters/event-bus/IEventBus.d.ts.map +1 -0
  59. package/dist/adapters/event-bus/IEventBus.js +2 -0
  60. package/dist/adapters/event-bus/IEventBus.js.map +1 -0
  61. package/dist/adapters/event-bus/default.d.ts +125 -0
  62. package/dist/adapters/event-bus/default.d.ts.map +1 -0
  63. package/dist/adapters/event-bus/default.js +164 -0
  64. package/dist/adapters/event-bus/default.js.map +1 -0
  65. package/dist/adapters/event-bus/index.d.ts +3 -0
  66. package/dist/adapters/event-bus/index.d.ts.map +1 -0
  67. package/dist/adapters/event-bus/index.js +2 -0
  68. package/dist/adapters/event-bus/index.js.map +1 -0
  69. package/dist/adapters/fetch/IFetch.d.ts +17 -0
  70. package/dist/adapters/fetch/IFetch.d.ts.map +1 -0
  71. package/dist/adapters/fetch/IFetch.js +2 -0
  72. package/dist/adapters/fetch/IFetch.js.map +1 -0
  73. package/dist/adapters/fetch/default.d.ts +8 -0
  74. package/dist/adapters/fetch/default.d.ts.map +1 -0
  75. package/dist/adapters/fetch/default.js +7 -0
  76. package/dist/adapters/fetch/default.js.map +1 -0
  77. package/dist/adapters/fetch/index.d.ts +3 -0
  78. package/dist/adapters/fetch/index.d.ts.map +1 -0
  79. package/dist/adapters/fetch/index.js +2 -0
  80. package/dist/adapters/fetch/index.js.map +1 -0
  81. package/dist/adapters/id-generator/IIdGenerator.d.ts +9 -0
  82. package/dist/adapters/id-generator/IIdGenerator.d.ts.map +1 -0
  83. package/dist/adapters/id-generator/IIdGenerator.js +2 -0
  84. package/dist/adapters/id-generator/IIdGenerator.js.map +1 -0
  85. package/dist/adapters/id-generator/default.d.ts +8 -0
  86. package/dist/adapters/id-generator/default.d.ts.map +1 -0
  87. package/dist/adapters/id-generator/default.js +15 -0
  88. package/dist/adapters/id-generator/default.js.map +1 -0
  89. package/dist/adapters/id-generator/index.d.ts +3 -0
  90. package/dist/adapters/id-generator/index.d.ts.map +1 -0
  91. package/dist/adapters/id-generator/index.js +2 -0
  92. package/dist/adapters/id-generator/index.js.map +1 -0
  93. package/dist/adapters/language-matcher/ILanguageMatcher.d.ts +11 -0
  94. package/dist/adapters/language-matcher/ILanguageMatcher.d.ts.map +1 -0
  95. package/dist/adapters/language-matcher/ILanguageMatcher.js +2 -0
  96. package/dist/adapters/language-matcher/ILanguageMatcher.js.map +1 -0
  97. package/dist/adapters/language-matcher/bcp47.d.ts +9 -0
  98. package/dist/adapters/language-matcher/bcp47.d.ts.map +1 -0
  99. package/dist/adapters/language-matcher/bcp47.js +18 -0
  100. package/dist/adapters/language-matcher/bcp47.js.map +1 -0
  101. package/dist/adapters/language-matcher/index.d.ts +3 -0
  102. package/dist/adapters/language-matcher/index.d.ts.map +1 -0
  103. package/dist/adapters/language-matcher/index.js +2 -0
  104. package/dist/adapters/language-matcher/index.js.map +1 -0
  105. package/dist/adapters/lifecycle-registry/ILifecycleRegistry.d.ts +19 -0
  106. package/dist/adapters/lifecycle-registry/ILifecycleRegistry.d.ts.map +1 -0
  107. package/dist/adapters/lifecycle-registry/ILifecycleRegistry.js +2 -0
  108. package/dist/adapters/lifecycle-registry/ILifecycleRegistry.js.map +1 -0
  109. package/dist/adapters/lifecycle-registry/default.d.ts +105 -0
  110. package/dist/adapters/lifecycle-registry/default.d.ts.map +1 -0
  111. package/dist/adapters/lifecycle-registry/default.js +258 -0
  112. package/dist/adapters/lifecycle-registry/default.js.map +1 -0
  113. package/dist/adapters/lifecycle-registry/index.d.ts +3 -0
  114. package/dist/adapters/lifecycle-registry/index.d.ts.map +1 -0
  115. package/dist/adapters/lifecycle-registry/index.js +2 -0
  116. package/dist/adapters/lifecycle-registry/index.js.map +1 -0
  117. package/dist/adapters/logger/ILogger.d.ts +77 -0
  118. package/dist/adapters/logger/ILogger.d.ts.map +1 -0
  119. package/dist/adapters/logger/ILogger.js +21 -0
  120. package/dist/adapters/logger/ILogger.js.map +1 -0
  121. package/dist/adapters/logger/default.d.ts +59 -0
  122. package/dist/adapters/logger/default.d.ts.map +1 -0
  123. package/dist/adapters/logger/default.js +120 -0
  124. package/dist/adapters/logger/default.js.map +1 -0
  125. package/dist/adapters/logger/index.d.ts +3 -0
  126. package/dist/adapters/logger/index.d.ts.map +1 -0
  127. package/dist/adapters/logger/index.js +2 -0
  128. package/dist/adapters/logger/index.js.map +1 -0
  129. package/dist/adapters/media-list/IMediaList.d.ts +43 -0
  130. package/dist/adapters/media-list/IMediaList.d.ts.map +1 -0
  131. package/dist/adapters/media-list/IMediaList.js +13 -0
  132. package/dist/adapters/media-list/IMediaList.js.map +1 -0
  133. package/dist/adapters/media-list/default.d.ts +172 -0
  134. package/dist/adapters/media-list/default.d.ts.map +1 -0
  135. package/dist/adapters/media-list/default.js +329 -0
  136. package/dist/adapters/media-list/default.js.map +1 -0
  137. package/dist/adapters/media-list/index.d.ts +3 -0
  138. package/dist/adapters/media-list/index.d.ts.map +1 -0
  139. package/dist/adapters/media-list/index.js +2 -0
  140. package/dist/adapters/media-list/index.js.map +1 -0
  141. package/dist/adapters/platform/IPlatform.d.ts +159 -0
  142. package/dist/adapters/platform/IPlatform.d.ts.map +1 -0
  143. package/dist/adapters/platform/IPlatform.js +11 -0
  144. package/dist/adapters/platform/IPlatform.js.map +1 -0
  145. package/dist/adapters/platform/browser.d.ts +21 -0
  146. package/dist/adapters/platform/browser.d.ts.map +1 -0
  147. package/dist/adapters/platform/browser.js +271 -0
  148. package/dist/adapters/platform/browser.js.map +1 -0
  149. package/dist/adapters/platform/index.d.ts +3 -0
  150. package/dist/adapters/platform/index.d.ts.map +1 -0
  151. package/dist/adapters/platform/index.js +2 -0
  152. package/dist/adapters/platform/index.js.map +1 -0
  153. package/dist/adapters/preload/default.d.ts +244 -0
  154. package/dist/adapters/preload/default.d.ts.map +1 -0
  155. package/dist/adapters/preload/default.js +125 -0
  156. package/dist/adapters/preload/default.js.map +1 -0
  157. package/dist/adapters/preload/index.d.ts +4 -0
  158. package/dist/adapters/preload/index.d.ts.map +1 -0
  159. package/dist/adapters/preload/index.js +2 -0
  160. package/dist/adapters/preload/index.js.map +1 -0
  161. package/dist/adapters/realtime/IRealtimeChannel.d.ts +75 -0
  162. package/dist/adapters/realtime/IRealtimeChannel.d.ts.map +1 -0
  163. package/dist/adapters/realtime/IRealtimeChannel.js +2 -0
  164. package/dist/adapters/realtime/IRealtimeChannel.js.map +1 -0
  165. package/dist/adapters/realtime/index.d.ts +3 -0
  166. package/dist/adapters/realtime/index.d.ts.map +1 -0
  167. package/dist/adapters/realtime/index.js +2 -0
  168. package/dist/adapters/realtime/index.js.map +1 -0
  169. package/dist/adapters/realtime/websocket.d.ts +14 -0
  170. package/dist/adapters/realtime/websocket.d.ts.map +1 -0
  171. package/dist/adapters/realtime/websocket.js +59 -0
  172. package/dist/adapters/realtime/websocket.js.map +1 -0
  173. package/dist/adapters/retry-policy/IRetryPolicy.d.ts +27 -0
  174. package/dist/adapters/retry-policy/IRetryPolicy.d.ts.map +1 -0
  175. package/dist/adapters/retry-policy/IRetryPolicy.js +2 -0
  176. package/dist/adapters/retry-policy/IRetryPolicy.js.map +1 -0
  177. package/dist/adapters/retry-policy/default.d.ts +11 -0
  178. package/dist/adapters/retry-policy/default.d.ts.map +1 -0
  179. package/dist/adapters/retry-policy/default.js +52 -0
  180. package/dist/adapters/retry-policy/default.js.map +1 -0
  181. package/dist/adapters/retry-policy/index.d.ts +3 -0
  182. package/dist/adapters/retry-policy/index.d.ts.map +1 -0
  183. package/dist/adapters/retry-policy/index.js +2 -0
  184. package/dist/adapters/retry-policy/index.js.map +1 -0
  185. package/dist/adapters/shuffle-strategy/IShuffleStrategy.d.ts +29 -0
  186. package/dist/adapters/shuffle-strategy/IShuffleStrategy.d.ts.map +1 -0
  187. package/dist/adapters/shuffle-strategy/IShuffleStrategy.js +2 -0
  188. package/dist/adapters/shuffle-strategy/IShuffleStrategy.js.map +1 -0
  189. package/dist/adapters/shuffle-strategy/default.d.ts +16 -0
  190. package/dist/adapters/shuffle-strategy/default.d.ts.map +1 -0
  191. package/dist/adapters/shuffle-strategy/default.js +21 -0
  192. package/dist/adapters/shuffle-strategy/default.js.map +1 -0
  193. package/dist/adapters/shuffle-strategy/index.d.ts +3 -0
  194. package/dist/adapters/shuffle-strategy/index.d.ts.map +1 -0
  195. package/dist/adapters/shuffle-strategy/index.js +2 -0
  196. package/dist/adapters/shuffle-strategy/index.js.map +1 -0
  197. package/dist/adapters/storage/IStorage.d.ts +31 -0
  198. package/dist/adapters/storage/IStorage.d.ts.map +1 -0
  199. package/dist/adapters/storage/IStorage.js +2 -0
  200. package/dist/adapters/storage/IStorage.js.map +1 -0
  201. package/dist/adapters/storage/index.d.ts +5 -0
  202. package/dist/adapters/storage/index.d.ts.map +1 -0
  203. package/dist/adapters/storage/index.js +4 -0
  204. package/dist/adapters/storage/index.js.map +1 -0
  205. package/dist/adapters/storage/indexed-db.d.ts +39 -0
  206. package/dist/adapters/storage/indexed-db.d.ts.map +1 -0
  207. package/dist/adapters/storage/indexed-db.js +113 -0
  208. package/dist/adapters/storage/indexed-db.js.map +1 -0
  209. package/dist/adapters/storage/local-storage.d.ts +29 -0
  210. package/dist/adapters/storage/local-storage.d.ts.map +1 -0
  211. package/dist/adapters/storage/local-storage.js +90 -0
  212. package/dist/adapters/storage/local-storage.js.map +1 -0
  213. package/dist/adapters/storage/memory.d.ts +22 -0
  214. package/dist/adapters/storage/memory.d.ts.map +1 -0
  215. package/dist/adapters/storage/memory.js +42 -0
  216. package/dist/adapters/storage/memory.js.map +1 -0
  217. package/dist/adapters/stream/IStreamRegistry.d.ts +16 -0
  218. package/dist/adapters/stream/IStreamRegistry.d.ts.map +1 -0
  219. package/dist/adapters/stream/IStreamRegistry.js +2 -0
  220. package/dist/adapters/stream/IStreamRegistry.js.map +1 -0
  221. package/dist/adapters/stream/IStreamSource.d.ts +160 -0
  222. package/dist/adapters/stream/IStreamSource.d.ts.map +1 -0
  223. package/dist/adapters/stream/IStreamSource.js +8 -0
  224. package/dist/adapters/stream/IStreamSource.js.map +1 -0
  225. package/dist/adapters/stream/hls.d.ts +60 -0
  226. package/dist/adapters/stream/hls.d.ts.map +1 -0
  227. package/dist/adapters/stream/hls.js +354 -0
  228. package/dist/adapters/stream/hls.js.map +1 -0
  229. package/dist/adapters/stream/index.d.ts +6 -0
  230. package/dist/adapters/stream/index.d.ts.map +1 -0
  231. package/dist/adapters/stream/index.js +4 -0
  232. package/dist/adapters/stream/index.js.map +1 -0
  233. package/dist/adapters/stream/native.d.ts +19 -0
  234. package/dist/adapters/stream/native.d.ts.map +1 -0
  235. package/dist/adapters/stream/native.js +129 -0
  236. package/dist/adapters/stream/native.js.map +1 -0
  237. package/dist/adapters/stream/registry.d.ts +59 -0
  238. package/dist/adapters/stream/registry.d.ts.map +1 -0
  239. package/dist/adapters/stream/registry.js +115 -0
  240. package/dist/adapters/stream/registry.js.map +1 -0
  241. package/dist/adapters/subtitle-renderer/ISubtitleRenderer.d.ts +20 -0
  242. package/dist/adapters/subtitle-renderer/ISubtitleRenderer.d.ts.map +1 -0
  243. package/dist/adapters/subtitle-renderer/ISubtitleRenderer.js +2 -0
  244. package/dist/adapters/subtitle-renderer/ISubtitleRenderer.js.map +1 -0
  245. package/dist/adapters/subtitle-renderer/dom.d.ts +15 -0
  246. package/dist/adapters/subtitle-renderer/dom.d.ts.map +1 -0
  247. package/dist/adapters/subtitle-renderer/dom.js +55 -0
  248. package/dist/adapters/subtitle-renderer/dom.js.map +1 -0
  249. package/dist/adapters/subtitle-renderer/index.d.ts +3 -0
  250. package/dist/adapters/subtitle-renderer/index.d.ts.map +1 -0
  251. package/dist/adapters/subtitle-renderer/index.js +2 -0
  252. package/dist/adapters/subtitle-renderer/index.js.map +1 -0
  253. package/dist/adapters/translator/ITranslator.d.ts +64 -0
  254. package/dist/adapters/translator/ITranslator.d.ts.map +1 -0
  255. package/dist/adapters/translator/ITranslator.js +2 -0
  256. package/dist/adapters/translator/ITranslator.js.map +1 -0
  257. package/dist/adapters/translator/index.d.ts +7 -0
  258. package/dist/adapters/translator/index.d.ts.map +1 -0
  259. package/dist/adapters/translator/index.js +4 -0
  260. package/dist/adapters/translator/index.js.map +1 -0
  261. package/dist/adapters/translator/loaders/ITranslationLoader.d.ts +3 -0
  262. package/dist/adapters/translator/loaders/ITranslationLoader.d.ts.map +1 -0
  263. package/dist/adapters/translator/loaders/ITranslationLoader.js +2 -0
  264. package/dist/adapters/translator/loaders/ITranslationLoader.js.map +1 -0
  265. package/dist/adapters/translator/loaders/index.d.ts +5 -0
  266. package/dist/adapters/translator/loaders/index.d.ts.map +1 -0
  267. package/dist/adapters/translator/loaders/index.js +3 -0
  268. package/dist/adapters/translator/loaders/index.js.map +1 -0
  269. package/dist/adapters/translator/loaders/translation-loader.d.ts +56 -0
  270. package/dist/adapters/translator/loaders/translation-loader.d.ts.map +1 -0
  271. package/dist/adapters/translator/loaders/translation-loader.js +37 -0
  272. package/dist/adapters/translator/loaders/translation-loader.js.map +1 -0
  273. package/dist/adapters/translator/loaders/translations-glob.d.ts +71 -0
  274. package/dist/adapters/translator/loaders/translations-glob.d.ts.map +1 -0
  275. package/dist/adapters/translator/loaders/translations-glob.js +134 -0
  276. package/dist/adapters/translator/loaders/translations-glob.js.map +1 -0
  277. package/dist/adapters/translator/translator.d.ts +52 -0
  278. package/dist/adapters/translator/translator.d.ts.map +1 -0
  279. package/dist/adapters/translator/translator.js +142 -0
  280. package/dist/adapters/translator/translator.js.map +1 -0
  281. package/dist/adapters/url-resolver/IUrlResolver.d.ts +91 -0
  282. package/dist/adapters/url-resolver/IUrlResolver.d.ts.map +1 -0
  283. package/dist/adapters/url-resolver/IUrlResolver.js +29 -0
  284. package/dist/adapters/url-resolver/IUrlResolver.js.map +1 -0
  285. package/dist/adapters/url-resolver/index.d.ts +2 -0
  286. package/dist/adapters/url-resolver/index.d.ts.map +1 -0
  287. package/dist/adapters/url-resolver/index.js +2 -0
  288. package/dist/adapters/url-resolver/index.js.map +1 -0
  289. package/dist/base-player.d.ts +41 -0
  290. package/dist/base-player.d.ts.map +1 -0
  291. package/dist/base-player.js +39 -0
  292. package/dist/base-player.js.map +1 -0
  293. package/dist/compat.d.ts +42 -0
  294. package/dist/compat.d.ts.map +1 -0
  295. package/dist/compat.js +51 -0
  296. package/dist/compat.js.map +1 -0
  297. package/dist/core/append-auth-token-param.d.ts +20 -0
  298. package/dist/core/append-auth-token-param.d.ts.map +1 -0
  299. package/dist/core/append-auth-token-param.js +27 -0
  300. package/dist/core/append-auth-token-param.js.map +1 -0
  301. package/dist/core/auth-fetch/attempt.d.ts +33 -0
  302. package/dist/core/auth-fetch/attempt.d.ts.map +1 -0
  303. package/dist/core/auth-fetch/attempt.js +159 -0
  304. package/dist/core/auth-fetch/attempt.js.map +1 -0
  305. package/dist/core/auth-fetch/decode.d.ts +11 -0
  306. package/dist/core/auth-fetch/decode.d.ts.map +1 -0
  307. package/dist/core/auth-fetch/decode.js +52 -0
  308. package/dist/core/auth-fetch/decode.js.map +1 -0
  309. package/dist/core/auth-fetch/index.d.ts +19 -0
  310. package/dist/core/auth-fetch/index.d.ts.map +1 -0
  311. package/dist/core/auth-fetch/index.js +22 -0
  312. package/dist/core/auth-fetch/index.js.map +1 -0
  313. package/dist/core/auth-fetch/orchestrator.d.ts +25 -0
  314. package/dist/core/auth-fetch/orchestrator.d.ts.map +1 -0
  315. package/dist/core/auth-fetch/orchestrator.js +57 -0
  316. package/dist/core/auth-fetch/orchestrator.js.map +1 -0
  317. package/dist/core/auth-fetch/prepare.d.ts +27 -0
  318. package/dist/core/auth-fetch/prepare.d.ts.map +1 -0
  319. package/dist/core/auth-fetch/prepare.js +149 -0
  320. package/dist/core/auth-fetch/prepare.js.map +1 -0
  321. package/dist/core/auth-fetch/types.d.ts +116 -0
  322. package/dist/core/auth-fetch/types.d.ts.map +1 -0
  323. package/dist/core/auth-fetch/types.js +2 -0
  324. package/dist/core/auth-fetch/types.js.map +1 -0
  325. package/dist/core/compose.d.ts +31 -0
  326. package/dist/core/compose.d.ts.map +1 -0
  327. package/dist/core/compose.js +38 -0
  328. package/dist/core/compose.js.map +1 -0
  329. package/dist/core/config-merge.d.ts +16 -0
  330. package/dist/core/config-merge.d.ts.map +1 -0
  331. package/dist/core/config-merge.js +52 -0
  332. package/dist/core/config-merge.js.map +1 -0
  333. package/dist/core/constructor.d.ts +46 -0
  334. package/dist/core/constructor.d.ts.map +1 -0
  335. package/dist/core/constructor.js +77 -0
  336. package/dist/core/constructor.js.map +1 -0
  337. package/dist/core/cues/cue.d.ts +63 -0
  338. package/dist/core/cues/cue.d.ts.map +1 -0
  339. package/dist/core/cues/cue.js +172 -0
  340. package/dist/core/cues/cue.js.map +1 -0
  341. package/dist/core/cues/tracker.d.ts +81 -0
  342. package/dist/core/cues/tracker.d.ts.map +1 -0
  343. package/dist/core/cues/tracker.js +184 -0
  344. package/dist/core/cues/tracker.js.map +1 -0
  345. package/dist/core/dispatch.d.ts +96 -0
  346. package/dist/core/dispatch.d.ts.map +1 -0
  347. package/dist/core/dispatch.js +140 -0
  348. package/dist/core/dispatch.js.map +1 -0
  349. package/dist/core/index.d.ts +235 -0
  350. package/dist/core/index.d.ts.map +1 -0
  351. package/dist/core/index.js +98 -0
  352. package/dist/core/index.js.map +1 -0
  353. package/dist/core/kit-version.d.ts +11 -0
  354. package/dist/core/kit-version.d.ts.map +1 -0
  355. package/dist/core/kit-version.js +11 -0
  356. package/dist/core/kit-version.js.map +1 -0
  357. package/dist/core/mixins/abr.d.ts +36 -0
  358. package/dist/core/mixins/abr.d.ts.map +1 -0
  359. package/dist/core/mixins/abr.js +38 -0
  360. package/dist/core/mixins/abr.js.map +1 -0
  361. package/dist/core/mixins/audio-output.d.ts +38 -0
  362. package/dist/core/mixins/audio-output.d.ts.map +1 -0
  363. package/dist/core/mixins/audio-output.js +64 -0
  364. package/dist/core/mixins/audio-output.js.map +1 -0
  365. package/dist/core/mixins/auth.d.ts +63 -0
  366. package/dist/core/mixins/auth.d.ts.map +1 -0
  367. package/dist/core/mixins/auth.js +145 -0
  368. package/dist/core/mixins/auth.js.map +1 -0
  369. package/dist/core/mixins/base-url-audio-context.d.ts +40 -0
  370. package/dist/core/mixins/base-url-audio-context.d.ts.map +1 -0
  371. package/dist/core/mixins/base-url-audio-context.js +27 -0
  372. package/dist/core/mixins/base-url-audio-context.js.map +1 -0
  373. package/dist/core/mixins/cast.d.ts +42 -0
  374. package/dist/core/mixins/cast.d.ts.map +1 -0
  375. package/dist/core/mixins/cast.js +227 -0
  376. package/dist/core/mixins/cast.js.map +1 -0
  377. package/dist/core/mixins/container-class-emit.d.ts +15 -0
  378. package/dist/core/mixins/container-class-emit.d.ts.map +1 -0
  379. package/dist/core/mixins/container-class-emit.js +154 -0
  380. package/dist/core/mixins/container-class-emit.js.map +1 -0
  381. package/dist/core/mixins/cue-parser.d.ts +29 -0
  382. package/dist/core/mixins/cue-parser.d.ts.map +1 -0
  383. package/dist/core/mixins/cue-parser.js +22 -0
  384. package/dist/core/mixins/cue-parser.js.map +1 -0
  385. package/dist/core/mixins/device.d.ts +35 -0
  386. package/dist/core/mixins/device.d.ts.map +1 -0
  387. package/dist/core/mixins/device.js +106 -0
  388. package/dist/core/mixins/device.js.map +1 -0
  389. package/dist/core/mixins/dom-mixin.d.ts +33 -0
  390. package/dist/core/mixins/dom-mixin.d.ts.map +1 -0
  391. package/dist/core/mixins/dom-mixin.js +48 -0
  392. package/dist/core/mixins/dom-mixin.js.map +1 -0
  393. package/dist/core/mixins/experimental.d.ts +35 -0
  394. package/dist/core/mixins/experimental.d.ts.map +1 -0
  395. package/dist/core/mixins/experimental.js +102 -0
  396. package/dist/core/mixins/experimental.js.map +1 -0
  397. package/dist/core/mixins/i18n.d.ts +80 -0
  398. package/dist/core/mixins/i18n.d.ts.map +1 -0
  399. package/dist/core/mixins/i18n.js +168 -0
  400. package/dist/core/mixins/i18n.js.map +1 -0
  401. package/dist/core/mixins/lifecycle.d.ts +80 -0
  402. package/dist/core/mixins/lifecycle.d.ts.map +1 -0
  403. package/dist/core/mixins/lifecycle.js +907 -0
  404. package/dist/core/mixins/lifecycle.js.map +1 -0
  405. package/dist/core/mixins/loading.d.ts +51 -0
  406. package/dist/core/mixins/loading.d.ts.map +1 -0
  407. package/dist/core/mixins/loading.js +199 -0
  408. package/dist/core/mixins/loading.js.map +1 -0
  409. package/dist/core/mixins/media-tracks.d.ts +217 -0
  410. package/dist/core/mixins/media-tracks.d.ts.map +1 -0
  411. package/dist/core/mixins/media-tracks.js +878 -0
  412. package/dist/core/mixins/media-tracks.js.map +1 -0
  413. package/dist/core/mixins/metrics.d.ts +36 -0
  414. package/dist/core/mixins/metrics.d.ts.map +1 -0
  415. package/dist/core/mixins/metrics.js +57 -0
  416. package/dist/core/mixins/metrics.js.map +1 -0
  417. package/dist/core/mixins/play-queue.d.ts +43 -0
  418. package/dist/core/mixins/play-queue.d.ts.map +1 -0
  419. package/dist/core/mixins/play-queue.js +70 -0
  420. package/dist/core/mixins/play-queue.js.map +1 -0
  421. package/dist/core/mixins/player-state.d.ts +136 -0
  422. package/dist/core/mixins/player-state.d.ts.map +1 -0
  423. package/dist/core/mixins/player-state.js +182 -0
  424. package/dist/core/mixins/player-state.js.map +1 -0
  425. package/dist/core/mixins/plugin-registration.d.ts +133 -0
  426. package/dist/core/mixins/plugin-registration.d.ts.map +1 -0
  427. package/dist/core/mixins/plugin-registration.js +497 -0
  428. package/dist/core/mixins/plugin-registration.js.map +1 -0
  429. package/dist/core/mixins/preload-strategy-mixin.d.ts +35 -0
  430. package/dist/core/mixins/preload-strategy-mixin.d.ts.map +1 -0
  431. package/dist/core/mixins/preload-strategy-mixin.js +37 -0
  432. package/dist/core/mixins/preload-strategy-mixin.js.map +1 -0
  433. package/dist/core/mixins/queue.d.ts +164 -0
  434. package/dist/core/mixins/queue.d.ts.map +1 -0
  435. package/dist/core/mixins/queue.js +294 -0
  436. package/dist/core/mixins/queue.js.map +1 -0
  437. package/dist/core/mixins/state-mutators.d.ts +105 -0
  438. package/dist/core/mixins/state-mutators.d.ts.map +1 -0
  439. package/dist/core/mixins/state-mutators.js +220 -0
  440. package/dist/core/mixins/state-mutators.js.map +1 -0
  441. package/dist/core/mixins/stream-registration.d.ts +34 -0
  442. package/dist/core/mixins/stream-registration.d.ts.map +1 -0
  443. package/dist/core/mixins/stream-registration.js +48 -0
  444. package/dist/core/mixins/stream-registration.js.map +1 -0
  445. package/dist/core/mixins/time.d.ts +90 -0
  446. package/dist/core/mixins/time.d.ts.map +1 -0
  447. package/dist/core/mixins/time.js +143 -0
  448. package/dist/core/mixins/time.js.map +1 -0
  449. package/dist/core/mixins/transport.d.ts +115 -0
  450. package/dist/core/mixins/transport.d.ts.map +1 -0
  451. package/dist/core/mixins/transport.js +290 -0
  452. package/dist/core/mixins/transport.js.map +1 -0
  453. package/dist/core/mixins/volume.d.ts +56 -0
  454. package/dist/core/mixins/volume.d.ts.map +1 -0
  455. package/dist/core/mixins/volume.js +86 -0
  456. package/dist/core/mixins/volume.js.map +1 -0
  457. package/dist/core/plugin/base.d.ts +560 -0
  458. package/dist/core/plugin/base.d.ts.map +1 -0
  459. package/dist/core/plugin/base.js +770 -0
  460. package/dist/core/plugin/base.js.map +1 -0
  461. package/dist/core/plugin/dispatch.d.ts +12 -0
  462. package/dist/core/plugin/dispatch.d.ts.map +1 -0
  463. package/dist/core/plugin/dispatch.js +2 -0
  464. package/dist/core/plugin/dispatch.js.map +1 -0
  465. package/dist/core/plugin/fetch.d.ts +44 -0
  466. package/dist/core/plugin/fetch.d.ts.map +1 -0
  467. package/dist/core/plugin/fetch.js +23 -0
  468. package/dist/core/plugin/fetch.js.map +1 -0
  469. package/dist/core/plugin/index.d.ts +7 -0
  470. package/dist/core/plugin/index.d.ts.map +1 -0
  471. package/dist/core/plugin/index.js +6 -0
  472. package/dist/core/plugin/index.js.map +1 -0
  473. package/dist/core/plugin/lifecycle.d.ts +12 -0
  474. package/dist/core/plugin/lifecycle.d.ts.map +1 -0
  475. package/dist/core/plugin/lifecycle.js +2 -0
  476. package/dist/core/plugin/lifecycle.js.map +1 -0
  477. package/dist/core/plugin/throw.d.ts +43 -0
  478. package/dist/core/plugin/throw.d.ts.map +1 -0
  479. package/dist/core/plugin/throw.js +21 -0
  480. package/dist/core/plugin/throw.js.map +1 -0
  481. package/dist/core/plugin/translations.d.ts +15 -0
  482. package/dist/core/plugin/translations.d.ts.map +1 -0
  483. package/dist/core/plugin/translations.js +15 -0
  484. package/dist/core/plugin/translations.js.map +1 -0
  485. package/dist/core/resolved-url.d.ts +29 -0
  486. package/dist/core/resolved-url.d.ts.map +1 -0
  487. package/dist/core/resolved-url.js +92 -0
  488. package/dist/core/resolved-url.js.map +1 -0
  489. package/dist/core/state.d.ts +234 -0
  490. package/dist/core/state.d.ts.map +1 -0
  491. package/dist/core/state.js +100 -0
  492. package/dist/core/state.js.map +1 -0
  493. package/dist/core/volume-curve.d.ts +51 -0
  494. package/dist/core/volume-curve.d.ts.map +1 -0
  495. package/dist/core/volume-curve.js +57 -0
  496. package/dist/core/volume-curve.js.map +1 -0
  497. package/dist/errors/auth.d.ts +11 -0
  498. package/dist/errors/auth.d.ts.map +1 -0
  499. package/dist/errors/auth.js +11 -0
  500. package/dist/errors/auth.js.map +1 -0
  501. package/dist/errors/code.d.ts +56 -0
  502. package/dist/errors/code.d.ts.map +1 -0
  503. package/dist/errors/code.js +31 -0
  504. package/dist/errors/code.js.map +1 -0
  505. package/dist/errors/drm.d.ts +10 -0
  506. package/dist/errors/drm.d.ts.map +1 -0
  507. package/dist/errors/drm.js +10 -0
  508. package/dist/errors/drm.js.map +1 -0
  509. package/dist/errors/index.d.ts +24 -0
  510. package/dist/errors/index.d.ts.map +1 -0
  511. package/dist/errors/index.js +20 -0
  512. package/dist/errors/index.js.map +1 -0
  513. package/dist/errors/media.d.ts +47 -0
  514. package/dist/errors/media.d.ts.map +1 -0
  515. package/dist/errors/media.js +63 -0
  516. package/dist/errors/media.js.map +1 -0
  517. package/dist/errors/network.d.ts +10 -0
  518. package/dist/errors/network.d.ts.map +1 -0
  519. package/dist/errors/network.js +10 -0
  520. package/dist/errors/network.js.map +1 -0
  521. package/dist/errors/not-implemented.d.ts +19 -0
  522. package/dist/errors/not-implemented.d.ts.map +1 -0
  523. package/dist/errors/not-implemented.js +27 -0
  524. package/dist/errors/not-implemented.js.map +1 -0
  525. package/dist/errors/player.d.ts +98 -0
  526. package/dist/errors/player.d.ts.map +1 -0
  527. package/dist/errors/player.js +88 -0
  528. package/dist/errors/player.js.map +1 -0
  529. package/dist/errors/plugin.d.ts +28 -0
  530. package/dist/errors/plugin.d.ts.map +1 -0
  531. package/dist/errors/plugin.js +36 -0
  532. package/dist/errors/plugin.js.map +1 -0
  533. package/dist/errors/policy.d.ts +24 -0
  534. package/dist/errors/policy.d.ts.map +1 -0
  535. package/dist/errors/policy.js +30 -0
  536. package/dist/errors/policy.js.map +1 -0
  537. package/dist/errors/severity.d.ts +16 -0
  538. package/dist/errors/severity.d.ts.map +1 -0
  539. package/dist/errors/severity.js +19 -0
  540. package/dist/errors/severity.js.map +1 -0
  541. package/dist/i18n/en.d.ts +31 -0
  542. package/dist/i18n/en.d.ts.map +1 -0
  543. package/dist/i18n/en.js +71 -0
  544. package/dist/i18n/en.js.map +1 -0
  545. package/dist/i18n/nl.d.ts +16 -0
  546. package/dist/i18n/nl.d.ts.map +1 -0
  547. package/dist/i18n/nl.js +56 -0
  548. package/dist/i18n/nl.js.map +1 -0
  549. package/dist/index.d.ts +77 -0
  550. package/dist/index.d.ts.map +1 -0
  551. package/dist/index.js +70 -0
  552. package/dist/index.js.map +1 -0
  553. package/dist/plugins/audio-graph/index.d.ts +257 -0
  554. package/dist/plugins/audio-graph/index.d.ts.map +1 -0
  555. package/dist/plugins/audio-graph/index.js +541 -0
  556. package/dist/plugins/audio-graph/index.js.map +1 -0
  557. package/dist/plugins/canvas/index.d.ts +234 -0
  558. package/dist/plugins/canvas/index.d.ts.map +1 -0
  559. package/dist/plugins/canvas/index.js +309 -0
  560. package/dist/plugins/canvas/index.js.map +1 -0
  561. package/dist/plugins/cast-sender/i18n/en.d.ts +24 -0
  562. package/dist/plugins/cast-sender/i18n/en.d.ts.map +1 -0
  563. package/dist/plugins/cast-sender/i18n/en.js +23 -0
  564. package/dist/plugins/cast-sender/i18n/en.js.map +1 -0
  565. package/dist/plugins/cast-sender/i18n/nl.d.ts +19 -0
  566. package/dist/plugins/cast-sender/i18n/nl.d.ts.map +1 -0
  567. package/dist/plugins/cast-sender/i18n/nl.js +18 -0
  568. package/dist/plugins/cast-sender/i18n/nl.js.map +1 -0
  569. package/dist/plugins/cast-sender/index.d.ts +223 -0
  570. package/dist/plugins/cast-sender/index.d.ts.map +1 -0
  571. package/dist/plugins/cast-sender/index.js +451 -0
  572. package/dist/plugins/cast-sender/index.js.map +1 -0
  573. package/dist/plugins/embed/index.d.ts +266 -0
  574. package/dist/plugins/embed/index.d.ts.map +1 -0
  575. package/dist/plugins/embed/index.js +275 -0
  576. package/dist/plugins/embed/index.js.map +1 -0
  577. package/dist/plugins/equalizer/index.d.ts +277 -0
  578. package/dist/plugins/equalizer/index.d.ts.map +1 -0
  579. package/dist/plugins/equalizer/index.js +528 -0
  580. package/dist/plugins/equalizer/index.js.map +1 -0
  581. package/dist/plugins/equalizer/presets.d.ts +60 -0
  582. package/dist/plugins/equalizer/presets.d.ts.map +1 -0
  583. package/dist/plugins/equalizer/presets.js +329 -0
  584. package/dist/plugins/equalizer/presets.js.map +1 -0
  585. package/dist/plugins/key-handler/index.d.ts +206 -0
  586. package/dist/plugins/key-handler/index.d.ts.map +1 -0
  587. package/dist/plugins/key-handler/index.js +325 -0
  588. package/dist/plugins/key-handler/index.js.map +1 -0
  589. package/dist/plugins/media-session/index.d.ts +182 -0
  590. package/dist/plugins/media-session/index.d.ts.map +1 -0
  591. package/dist/plugins/media-session/index.js +351 -0
  592. package/dist/plugins/media-session/index.js.map +1 -0
  593. package/dist/plugins/message/index.d.ts +140 -0
  594. package/dist/plugins/message/index.d.ts.map +1 -0
  595. package/dist/plugins/message/index.js +218 -0
  596. package/dist/plugins/message/index.js.map +1 -0
  597. package/dist/plugins/mixer/index.d.ts +143 -0
  598. package/dist/plugins/mixer/index.d.ts.map +1 -0
  599. package/dist/plugins/mixer/index.js +221 -0
  600. package/dist/plugins/mixer/index.js.map +1 -0
  601. package/dist/plugins/spectrum/index.d.ts +218 -0
  602. package/dist/plugins/spectrum/index.d.ts.map +1 -0
  603. package/dist/plugins/spectrum/index.js +327 -0
  604. package/dist/plugins/spectrum/index.js.map +1 -0
  605. package/dist/plugins/tab-leader/index.d.ts +147 -0
  606. package/dist/plugins/tab-leader/index.d.ts.map +1 -0
  607. package/dist/plugins/tab-leader/index.js +178 -0
  608. package/dist/plugins/tab-leader/index.js.map +1 -0
  609. package/dist/plugins/visualization/index.d.ts +198 -0
  610. package/dist/plugins/visualization/index.d.ts.map +1 -0
  611. package/dist/plugins/visualization/index.js +238 -0
  612. package/dist/plugins/visualization/index.js.map +1 -0
  613. package/dist/testing/contract.d.ts +41 -0
  614. package/dist/testing/contract.d.ts.map +1 -0
  615. package/dist/testing/contract.js +244 -0
  616. package/dist/testing/contract.js.map +1 -0
  617. package/dist/testing/describe-plugin-against.d.ts +47 -0
  618. package/dist/testing/describe-plugin-against.d.ts.map +1 -0
  619. package/dist/testing/describe-plugin-against.js +120 -0
  620. package/dist/testing/describe-plugin-against.js.map +1 -0
  621. package/dist/testing/describe-plugin.d.ts +53 -0
  622. package/dist/testing/describe-plugin.d.ts.map +1 -0
  623. package/dist/testing/describe-plugin.js +92 -0
  624. package/dist/testing/describe-plugin.js.map +1 -0
  625. package/dist/testing/index.d.ts +28 -0
  626. package/dist/testing/index.d.ts.map +1 -0
  627. package/dist/testing/index.js +23 -0
  628. package/dist/testing/index.js.map +1 -0
  629. package/dist/testing/leak-harness.d.ts +69 -0
  630. package/dist/testing/leak-harness.d.ts.map +1 -0
  631. package/dist/testing/leak-harness.js +96 -0
  632. package/dist/testing/leak-harness.js.map +1 -0
  633. package/dist/testing/mock-fetch.d.ts +57 -0
  634. package/dist/testing/mock-fetch.d.ts.map +1 -0
  635. package/dist/testing/mock-fetch.js +42 -0
  636. package/dist/testing/mock-fetch.js.map +1 -0
  637. package/dist/testing/player-test-internals.d.ts +25 -0
  638. package/dist/testing/player-test-internals.d.ts.map +1 -0
  639. package/dist/testing/player-test-internals.js +2 -0
  640. package/dist/testing/player-test-internals.js.map +1 -0
  641. package/dist/testing/stub-player.d.ts +287 -0
  642. package/dist/testing/stub-player.d.ts.map +1 -0
  643. package/dist/testing/stub-player.js +641 -0
  644. package/dist/testing/stub-player.js.map +1 -0
  645. package/dist/types/chapter.d.ts +16 -0
  646. package/dist/types/chapter.d.ts.map +1 -0
  647. package/dist/types/chapter.js +2 -0
  648. package/dist/types/chapter.js.map +1 -0
  649. package/dist/types/config.d.ts +352 -0
  650. package/dist/types/config.d.ts.map +1 -0
  651. package/dist/types/config.js +2 -0
  652. package/dist/types/config.js.map +1 -0
  653. package/dist/types/cues.d.ts +53 -0
  654. package/dist/types/cues.d.ts.map +1 -0
  655. package/dist/types/cues.js +2 -0
  656. package/dist/types/cues.js.map +1 -0
  657. package/dist/types/device.d.ts +32 -0
  658. package/dist/types/device.d.ts.map +1 -0
  659. package/dist/types/device.js +2 -0
  660. package/dist/types/device.js.map +1 -0
  661. package/dist/types/events.d.ts +456 -0
  662. package/dist/types/events.d.ts.map +1 -0
  663. package/dist/types/events.js +2 -0
  664. package/dist/types/events.js.map +1 -0
  665. package/dist/types/experimental.d.ts +26 -0
  666. package/dist/types/experimental.d.ts.map +1 -0
  667. package/dist/types/experimental.js +2 -0
  668. package/dist/types/experimental.js.map +1 -0
  669. package/dist/types/index.d.ts +17 -0
  670. package/dist/types/index.d.ts.map +1 -0
  671. package/dist/types/index.js +2 -0
  672. package/dist/types/index.js.map +1 -0
  673. package/dist/types/log.d.ts +2 -0
  674. package/dist/types/log.d.ts.map +1 -0
  675. package/dist/types/log.js +2 -0
  676. package/dist/types/log.js.map +1 -0
  677. package/dist/types/metrics.d.ts +61 -0
  678. package/dist/types/metrics.d.ts.map +1 -0
  679. package/dist/types/metrics.js +2 -0
  680. package/dist/types/metrics.js.map +1 -0
  681. package/dist/types/playback.d.ts +25 -0
  682. package/dist/types/playback.d.ts.map +1 -0
  683. package/dist/types/playback.js +2 -0
  684. package/dist/types/playback.js.map +1 -0
  685. package/dist/types/player.d.ts +837 -0
  686. package/dist/types/player.d.ts.map +1 -0
  687. package/dist/types/player.js +6 -0
  688. package/dist/types/player.js.map +1 -0
  689. package/dist/types/playlist.d.ts +29 -0
  690. package/dist/types/playlist.d.ts.map +1 -0
  691. package/dist/types/playlist.js +2 -0
  692. package/dist/types/playlist.js.map +1 -0
  693. package/dist/types/plugin.d.ts +89 -0
  694. package/dist/types/plugin.d.ts.map +1 -0
  695. package/dist/types/plugin.js +2 -0
  696. package/dist/types/plugin.js.map +1 -0
  697. package/dist/types/state.d.ts +119 -0
  698. package/dist/types/state.d.ts.map +1 -0
  699. package/dist/types/state.js +128 -0
  700. package/dist/types/state.js.map +1 -0
  701. package/dist/types/tracks.d.ts +143 -0
  702. package/dist/types/tracks.d.ts.map +1 -0
  703. package/dist/types/tracks.js +2 -0
  704. package/dist/types/tracks.js.map +1 -0
  705. package/dist/types/translations.d.ts +19 -0
  706. package/dist/types/translations.d.ts.map +1 -0
  707. package/dist/types/translations.js +2 -0
  708. package/dist/types/translations.js.map +1 -0
  709. package/dist/types/url.d.ts +2 -0
  710. package/dist/types/url.d.ts.map +1 -0
  711. package/dist/types/url.js +2 -0
  712. package/dist/types/url.js.map +1 -0
  713. package/dist/vite-plugin.d.ts +61 -0
  714. package/dist/vite-plugin.d.ts.map +1 -0
  715. package/dist/vite-plugin.js +92 -0
  716. package/dist/vite-plugin.js.map +1 -0
  717. package/package.json +233 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,91 @@
1
+ # Changelog — @nomercy-entertainment/nomercy-player-core
2
+
3
+ ## [2.0.0-rc.2] — 2026-06-14
4
+
5
+ ### Changed
6
+
7
+ - API-unification consolidation. `url` is now a field on the `BasePlaylistItem`
8
+ base type as the canonical media source, so `load()` no longer needs an
9
+ intersection constraint and call sites no longer cast to read it.
10
+ - The base event map is generic over the item type; the queue-item selection
11
+ event is shared across both player libraries.
12
+
13
+ ### Added
14
+
15
+ - Perceptual volume curve, the `play-queue` and `shuffle-strategy` adapters, and
16
+ the auth-token URL helper.
17
+
18
+ ### Fixed
19
+
20
+ - The audio-graph reconciles a single shared `AudioContext`; the analyser tap is
21
+ wired correctly across backends.
22
+
23
+ ## [2.0.0-beta.1] — 2026-05-30
24
+
25
+ ### Breaking
26
+
27
+ - `currentSubtitle()`, `currentAudioTrack()`, and `currentQuality()` no longer
28
+ return a bare index number. The getter forms now return `CurrentSubtitleSelection |
29
+ null`, `CurrentAudioTrackSelection | null`, and `CurrentQualitySelection | 'auto'`
30
+ respectively. Read `.index` for the number and `.track` for the full metadata.
31
+ Setter overloads (`currentSubtitle(idx)` etc.) are unchanged.
32
+
33
+ ### Added
34
+
35
+ - `player.t(PluginClass, key, vars?)` — class-typed overload. Prepends
36
+ `plugin.<id>.` automatically so plugin code never hand-rolls the namespace.
37
+ - `CurrentSubtitleSelection`, `CurrentAudioTrackSelection`, `CurrentQualitySelection`
38
+ interfaces exported from the main entry.
39
+ - `ICapabilitiesProbe.supportedCodecs()` implemented in `browserPlatform` via a
40
+ `MediaSource.isTypeSupported` sweep (H.264 baseline/main/high, H.265, VP8, VP9,
41
+ AV1, AAC, Opus, Vorbis, FLAC).
42
+ - `./plugins/cast-sender` added to the `exports` map (was built but not exported).
43
+
44
+ ### Fixed
45
+
46
+ - `KIT_VERSION` bumped to `2.0.0-beta.1` to reflect the breaking change above.
47
+ - `hls.js` dependency pinned to `^1.6.0` (was `>=1.6.0` — would have accepted a future 2.x).
48
+ - README subpath examples corrected: `cues/parsers/vtt` → `adapters/cue-parser/vtt`;
49
+ platform sub-port subpaths that do not exist as individual exports removed from the table;
50
+ empty `testing` import example replaced with real named exports.
51
+ - `contributors` email updated to GitHub noreply address.
52
+
53
+ ---
54
+
55
+ ## [2.0.0-beta.0] — 2026-05-16
56
+
57
+ First public pre-release of the shared player core extracted from the monolithic v1 players.
58
+
59
+ ### Added
60
+
61
+ - Plugin runtime with full lifecycle (`use`, `dispose`, `enable`, `disable`, event forwarding)
62
+ - Event system (`EventEmitter`) with typed `EventMap` generic, `on`/`once`/`off`/`emit`
63
+ - 28 named adapter ports replacing all hardcoded concrete dependencies in v1:
64
+ `auth`, `class-manager`, `clock`, `cue-parser`, `drm`, `element-factory`, `event-bus`,
65
+ `fetch`, `id-generator`, `language-matcher`, `lifecycle-registry`, `logger`, `media-list`,
66
+ `platform` (+ capabilities / fullscreen / network / pip / visibility / wake-lock),
67
+ `preload`, `realtime`, `retry-policy`, `storage`, `stream`, `subtitle-renderer`,
68
+ `translator`, `url-resolver`
69
+ - 11 built-in plugins: `audio-graph`, `canvas`, `embed`, `equalizer`, `key-handler`,
70
+ `media-session`, `message`, `mixer`, `spectrum`, `tab-leader`, `visualization`
71
+ - Subpath exports for all adapters and plugins — consumers who import subpaths get
72
+ tree-shaken bundles; barrel imports still work unchanged
73
+ - `composeMixins` / `playerCoreMethods` — mixin system that composes shared player
74
+ logic onto `NMVideoPlayer` and `NMMusicPlayer` prototypes without inheritance
75
+ - `CrossfadeTransitionStrategy`, `GaplessTransitionStrategy`, `DefaultPreloadStrategy`
76
+ - `authFetch` — auth-aware fetch wrapper shared by `Plugin.fetch` and setup-time loads
77
+ - VTT and LRC cue parsers
78
+ - `nomercyTranslationsPlugin` — Vite plugin for i18n glob bundling
79
+ - Full TypeScript declaration + declaration-map output (every subpath has `.d.ts`)
80
+ - `testing` subpath with stub player for unit tests
81
+
82
+ ### Architecture
83
+
84
+ The 12-wave restructure (W1–W12, 2026-05-15) extracted all adapter implementations from
85
+ the original monolithic root files into `src/adapters/` and `src/plugins/` folders, each
86
+ with their own `index.ts` barrel. Breaking changes relative to the v1 monolithic model are
87
+ limited to internal imports — the public `index.ts` barrel export surface is unchanged.
88
+
89
+ ---
90
+
91
+ See `MIGRATION.md` for the full v1→v2 migration guide.
@@ -0,0 +1,39 @@
1
+ # Code of Conduct
2
+
3
+ This project adheres to the [Contributor Covenant 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).
4
+
5
+ By participating, you are expected to uphold this code. Report unacceptable behavior to **conduct@nomercy.tv**.
6
+
7
+ ## Our Pledge
8
+
9
+ We pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
10
+
11
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
12
+
13
+ ## Standards
14
+
15
+ Examples of behavior that contributes to a positive environment:
16
+
17
+ - Demonstrating empathy and kindness toward other people
18
+ - Being respectful of differing opinions, viewpoints, and experiences
19
+ - Giving and gracefully accepting constructive feedback
20
+ - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
21
+ - Focusing on what is best not just for us as individuals, but for the overall community
22
+
23
+ Examples of unacceptable behavior:
24
+
25
+ - The use of sexualized language or imagery, and sexual attention or advances of any kind
26
+ - Trolling, insulting or derogatory comments, and personal or political attacks
27
+ - Public or private harassment
28
+ - Publishing others' private information, such as a physical or email address, without their explicit permission
29
+ - Other conduct which could reasonably be considered inappropriate in a professional setting
30
+
31
+ ## Enforcement
32
+
33
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
34
+
35
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to **conduct@nomercy.tv**. All complaints will be reviewed and investigated promptly and fairly.
36
+
37
+ ## Attribution
38
+
39
+ Adapted from the Contributor Covenant, version 2.1, available at https://www.contributor-covenant.org/version/2/1/code_of_conduct/.
@@ -0,0 +1,38 @@
1
+ # Contributing
2
+
3
+ Thanks for your interest in `@nomercy-entertainment/nomercy-player-core`. This package is the shared core for the NoMercy v2 player trio (`nomercy-video-player`, `nomercy-music-player`).
4
+
5
+ ## Reporting issues
6
+
7
+ - Bug? File a [GitHub issue](https://github.com/NoMercy-Entertainment/nomercy-player-kit/issues) with a minimal reproduction. Include kit version, browser, and a stack trace if you have one.
8
+ - Security? Do not file a public issue — see [SECURITY.md](./SECURITY.md).
9
+ - Question? The full docs live at [docs.nomercy.tv/player/](https://docs.nomercy.tv/player/).
10
+
11
+ ## Local development
12
+
13
+ ```bash
14
+ git clone https://github.com/NoMercy-Entertainment/nomercy-player-kit.git
15
+ cd nomercy-player-kit
16
+ npm install
17
+ npm test # vitest run (1240 unit tests must pass)
18
+ npm run typecheck # tsc --noEmit
19
+ npm run build # writes dist/
20
+ ```
21
+
22
+ ## Pull requests
23
+
24
+ - Branch off `master`. Feature branches: `feat/<short-description>`. Fixes: `fix/<short-description>`.
25
+ - Commit messages follow [Conventional Commits](https://www.conventionalcommits.org/) (`feat`, `fix`, `chore`, `docs`, `refactor`, `test`, `perf`, `ci`). Imperative, lowercase subject, no trailing period.
26
+ - Tests required for new features. Bug fixes should include a regression test.
27
+ - Run `npm run lint:fix` before pushing. CI rejects lint failures.
28
+ - No `Co-Authored-By` trailers unless we paired live.
29
+
30
+ ## Plugin contributions
31
+
32
+ Built-in plugins live in `src/plugins/`. New plugins are welcome — but most plugins belong in consumer packages, not the kit itself. The kit ships only plugins that are universal (event-bus, logger, retry-policy, etc.). Domain-specific plugins (Spotify scrobbler, custom DRM, etc.) belong in their own packages.
33
+
34
+ If you have a domain-specific plugin you'd like to host alongside the kit, open a discussion first.
35
+
36
+ ## Releases
37
+
38
+ Releases are coordinated across the v2 trio (kit, video, music). Each pre-release publishes to npm under the `beta` dist-tag. The final `latest` release happens once consumer apps (nomercy-app-web, nomercy-cast-player) confirm a clean migration.
package/LICENSE ADDED
@@ -0,0 +1,190 @@
1
+  Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ Copyright 2025 NoMercy Entertainment
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.
package/MIGRATION.md ADDED
@@ -0,0 +1,184 @@
1
+ # Migration Guide — v1 to v2
2
+
3
+ ## beta.0 → beta.1 breaking change
4
+
5
+ ### `currentSubtitle()`, `currentAudioTrack()`, `currentQuality()` return shape changed
6
+
7
+ These three getters previously returned a bare number (or `null` / `'auto'`).
8
+ They now return a selection object so callers don't need to index into the track
9
+ list separately.
10
+
11
+ ```ts
12
+ // beta.0
13
+ const idx = player.currentSubtitle(); // number | null
14
+
15
+ // beta.1
16
+ const sel = player.currentSubtitle(); // CurrentSubtitleSelection | null
17
+ const idx = sel?.index; // number | undefined
18
+ const track = sel?.track; // SubtitleTrack | undefined
19
+ ```
20
+
21
+ The **setter** overloads are unchanged:
22
+
23
+ ```ts
24
+ player.currentSubtitle(2); // still takes a number
25
+ player.currentSubtitle(null); // still takes null to turn subtitles off
26
+ ```
27
+
28
+ Same pattern for `currentAudioTrack()` → `CurrentAudioTrackSelection | null` and
29
+ `currentQuality()` → `CurrentQualitySelection | 'auto'`.
30
+
31
+ ---
32
+
33
+ Covers all three packages: `nomercy-player-core`, `nomercy-video-player` (v2), and `nomercy-music-player` (v2).
34
+
35
+ This guide covers kit-level changes: subpath imports, the five-layer architecture, and the 38 named adapter ports. For consumer-facing breaking changes (renamed methods, event payload shapes, playlist item fields), see the per-package migration guides:
36
+
37
+ - **Video player:** [`packages/nomercy-video-player-v2/MIGRATION.md`](../nomercy-video-player-v2/MIGRATION.md)
38
+ - **Music player:** [`packages/nomercy-music-player-v2/MIGRATION.md`](../nomercy-music-player-v2/MIGRATION.md)
39
+
40
+ ---
41
+
42
+ ## TL;DR
43
+
44
+ Public API is stable. Import names did not change. If your code does:
45
+
46
+ ```ts
47
+ import { nmMPlayer, NMMusicPlayer } from '@nomercy-entertainment/nomercy-music-player';
48
+ import { IPlayer, LocalStorageBackend, Plugin } from '@nomercy-entertainment/nomercy-player-core';
49
+ import { nmplayer, NMVideoPlayer } from '@nomercy-entertainment/nomercy-video-player';
50
+ ```
51
+
52
+ no changes are required. All named exports from the root `index.ts` of each package resolve to the same names they always did.
53
+
54
+ ---
55
+
56
+ ## What's new for adopters
57
+
58
+ ### Subpath imports enable tree-shaking
59
+
60
+ The kit now publishes 28 adapter subpaths and 12 plugin subpaths. Existing barrel imports still work. Subpath imports are opt-in and let bundlers eliminate the adapters you don't use.
61
+
62
+ ### Cross-plugin event type inference works correctly
63
+
64
+ The internal `__events__` type parameter on `Plugin` now propagates through `getPlugin()` correctly. TypeScript consumers who call `player.getPlugin(MyPlugin)` now get back a fully-typed instance without a cast.
65
+
66
+ ### HDR-aware ABR auto-switch (video-v2)
67
+
68
+ The `Html5VideoBackend` automatically constrains HLS.js ABR to respect the active display's dynamic-range capability. On SDR displays, PQ/HLG level variants are excluded from ABR selection. When the user moves the browser window to a different monitor, the constraint updates live. No configuration is needed. See the video player README for details.
69
+
70
+ ### 38 named adapter ports replace the previous monolithic class model
71
+
72
+ The `v1` `NMVideoPlayer` and `NMMusicPlayer` classes hardcoded every concrete dependency (storage, platform, logger, etc.). In v2, each dependency is an injected port. The player classes still work with zero configuration — all ports have sensible defaults — but every one of them can be swapped independently.
73
+
74
+ ---
75
+
76
+ ## Optional opt-ins — subpath imports
77
+
78
+ ```ts
79
+ // Before (still works, no change required):
80
+ import { LocalStorageBackend } from '@nomercy-entertainment/nomercy-player-core';
81
+
82
+ // After (tree-shakeable — bundler drops unused adapters):
83
+ import { LocalStorageBackend } from '@nomercy-entertainment/nomercy-player-core/adapters/storage';
84
+ ```
85
+
86
+ Full subpath table:
87
+
88
+ | Subpath | What it exports |
89
+ |---------|----------------|
90
+ | `@nomercy-entertainment/nomercy-player-core/adapters/storage` | `IStorage`, `LocalStorageBackend`, `MemoryStorageBackend`, `IndexedDBBackend` |
91
+ | `@nomercy-entertainment/nomercy-player-core/adapters/stream` | `IStreamSource`, `IStreamRegistry`, `StreamRegistry` |
92
+ | `@nomercy-entertainment/nomercy-player-core/adapters/platform` | `IPlatform`, `browserPlatform` |
93
+ | `@nomercy-entertainment/nomercy-player-core/adapters/platform/wake-lock` | `IWakeLock` |
94
+ | `@nomercy-entertainment/nomercy-player-core/adapters/platform/network` | `INetworkMonitor` |
95
+ | `@nomercy-entertainment/nomercy-player-core/adapters/platform/visibility` | `IVisibilityMonitor` |
96
+ | `@nomercy-entertainment/nomercy-player-core/adapters/platform/capabilities` | `ICapabilitiesProbe` |
97
+ | `@nomercy-entertainment/nomercy-player-core/adapters/platform/fullscreen` | `IFullscreenController` |
98
+ | `@nomercy-entertainment/nomercy-player-core/adapters/platform/pip` | `IPipController` |
99
+ | `@nomercy-entertainment/nomercy-player-core/adapters/realtime` | `IRealtimeChannel`, `nativeWebSocketAdapter` |
100
+ | `@nomercy-entertainment/nomercy-player-core/adapters/translator` | `ITranslator`, `DefaultTranslator`, `createNetworkTranslationLoader`, `translationsFromGlob` |
101
+ | `@nomercy-entertainment/nomercy-player-core/adapters/language-matcher` | `ILanguageMatcher`, `bcp47FallbackChain` |
102
+ | `@nomercy-entertainment/nomercy-player-core/adapters/preload` | `IPreloadStrategy`, `ITransitionStrategy`, `DefaultPreloadStrategy`, `GaplessTransitionStrategy`, `CrossfadeTransitionStrategy` |
103
+ | `@nomercy-entertainment/nomercy-player-core/adapters/cue-parser` | `ICueParser`, `CueParserRegistry` |
104
+ | `@nomercy-entertainment/nomercy-player-core/adapters/subtitle-renderer` | `ISubtitleRenderer`, `buildSubtitleFragment` |
105
+ | `@nomercy-entertainment/nomercy-player-core/adapters/logger` | `ILogger`, `Logger` |
106
+ | `@nomercy-entertainment/nomercy-player-core/adapters/retry-policy` | `IRetryPolicy`, `DEFAULT_RETRY_POLICY` |
107
+ | `@nomercy-entertainment/nomercy-player-core/adapters/event-bus` | `IEventBus`, `EventEmitter` |
108
+ | `@nomercy-entertainment/nomercy-player-core/adapters/media-list` | `IMediaList`, `MediaList` |
109
+ | `@nomercy-entertainment/nomercy-player-core/adapters/lifecycle-registry` | `ILifecycleRegistry`, `LifecycleRegistry` |
110
+ | `@nomercy-entertainment/nomercy-player-core/adapters/fetch` | `IFetch`, `authFetch` |
111
+ | `@nomercy-entertainment/nomercy-player-core/adapters/clock` | `IClock` |
112
+ | `@nomercy-entertainment/nomercy-player-core/adapters/id-generator` | `IIdGenerator` |
113
+ | `@nomercy-entertainment/nomercy-player-core/adapters/element-factory` | `createElement`, `createButton`, `createSVG`, `addClasses`, `removeClasses`, `AddClasses`, `AppendTo`, `CreateElement` |
114
+ | `@nomercy-entertainment/nomercy-player-core/adapters/url-resolver` | `IUrlResolver` |
115
+ | `@nomercy-entertainment/nomercy-player-core/plugins/audio-graph` | `AudioGraphPlugin`, `audioGraphPlugin` |
116
+ | `@nomercy-entertainment/nomercy-player-core/plugins/canvas` | `CanvasPlugin`, `canvasPlugin` |
117
+ | `@nomercy-entertainment/nomercy-player-core/plugins/cast-sender` | `CastSenderPlugin`, `castSenderPlugin` |
118
+ | `@nomercy-entertainment/nomercy-player-core/plugins/embed` | `EmbedPlugin`, `embedPlugin` |
119
+ | `@nomercy-entertainment/nomercy-player-core/plugins/equalizer` | `EqualizerPlugin`, `equalizerPlugin` |
120
+ | `@nomercy-entertainment/nomercy-player-core/plugins/key-handler` | `KeyHandlerPlugin`, `keyHandlerPlugin` |
121
+ | `@nomercy-entertainment/nomercy-player-core/plugins/media-session` | `MediaSessionPlugin`, `mediaSessionPlugin` |
122
+ | `@nomercy-entertainment/nomercy-player-core/plugins/message` | `MessagePlugin`, `messagePlugin` |
123
+ | `@nomercy-entertainment/nomercy-player-core/plugins/mixer` | `MixerPlugin`, `mixerPlugin` |
124
+ | `@nomercy-entertainment/nomercy-player-core/plugins/spectrum` | `SpectrumPlugin`, `spectrumPlugin` |
125
+ | `@nomercy-entertainment/nomercy-player-core/plugins/tab-leader` | `TabLeaderPlugin`, `tabLeaderPlugin` |
126
+ | `@nomercy-entertainment/nomercy-player-core/plugins/visualization` | `VisualizationPlugin` |
127
+ | `@nomercy-entertainment/nomercy-player-core/cues/parsers/vtt` | `parseVtt`, `parseVttSprite`, `parseVttSubtitles` |
128
+ | `@nomercy-entertainment/nomercy-player-core/cues/parsers/lrc` | `parseLrc` |
129
+ | `@nomercy-entertainment/nomercy-player-core/streams/hls` | HLS stream source |
130
+ | `@nomercy-entertainment/nomercy-player-core/streams/native` | Native stream source |
131
+ | `@nomercy-entertainment/nomercy-player-core/testing` | Test helpers and mock adapters |
132
+ | `@nomercy-entertainment/nomercy-player-core/vite-plugin` | Vite build plugin |
133
+
134
+ ---
135
+
136
+ ## Removed APIs
137
+
138
+ No APIs were removed. Every named export present in the v1 packages continues to resolve in v2. The goal of the 12-wave restructure was zero consumer breakage.
139
+
140
+ ---
141
+
142
+ ## New extension points
143
+
144
+ The 38 named ports are the primary extension surface. Each port is an interface you implement and inject via `setup()`.
145
+
146
+ | Port group | What you can customize |
147
+ |------------|----------------------|
148
+ | `IStorage` | Where plugin state is persisted — localStorage, IndexedDB, remote API, memory |
149
+ | `IPlatform` and sub-ports | Platform behaviour for native shells — Capacitor, Tauri, Electron — or custom fullscreen and PiP controllers |
150
+ | `IRealtimeChannel` | WebSocket transport — swap for SignalR, Socket.IO, or a mock |
151
+ | `ITranslator` / `ITranslationLoader` | i18n engine and where translation files come from |
152
+ | `IPreloadStrategy` / `ITransitionStrategy` | When the next item preloads and how transitions between items play out |
153
+ | `ICueParser` | Custom subtitle or lyric formats registered via `player.registerCueParser()` |
154
+ | `ISubtitleRenderer` | How cues are rendered — DOM text, canvas, or a custom renderer |
155
+ | `ILogger` | Log destination and filtering |
156
+ | `IRetryPolicy` | Network retry timing and max-attempts |
157
+ | `IClock` | Monotonic time source — swap for a server-synced clock in group-sync scenarios |
158
+ | `IUrlResolver` | URL rewriting — CDN signing, auth params, proxy routing |
159
+ | `IAudioBackend` (music-v2) | Audio element behaviour — web-audio or html5-audio, or a custom WS-backed backend |
160
+ | `IPlaylistGenerator` (music-v2) | Queue ordering — linear, tag-aware shuffle, or server-driven |
161
+ | `ISimilarityEngine` (music-v2) | "More like this" playlist extension — consumer-required, server-specific |
162
+ | `IScrobbler` (music-v2) | Playback reporting — Last.fm, ListenBrainz, or custom |
163
+ | `ILyricSource` (music-v2) | Lyric data delivery — LRC file, server API, or embedded metadata |
164
+ | `INowPlayingArt` (music-v2) | Album art resolution — Media Session, server API, or local cache |
165
+ | `IVideoBackend` (video-v2) | Video element behaviour — Html5VideoBackend or a custom MSE/WebCodecs backend |
166
+ | `IThumbnailSource` (video-v2) | Seek thumbnail frames — VTT sprite or a server-generated endpoint |
167
+ | `IChapterSource` (video-v2) | Chapter markers — VTT file or a server metadata endpoint |
168
+ | `ISubtitleStyleStore` (video-v2) | Subtitle style persistence — storage-backed or custom |
169
+
170
+ ---
171
+
172
+ ## Five-layer architecture
173
+
174
+ Understanding where code lives makes extension points obvious.
175
+
176
+ | Layer | Package | Knows about |
177
+ |-------|---------|-------------|
178
+ | 1. Backend | `IVideoBackend` / `IAudioBackend` impls | `<video>` / `<audio>` / MediaSource / AudioContext / MediaKeys |
179
+ | 2. Kit | `@nomercy-entertainment/nomercy-player-core` | Generic contracts only — zero NoMercy specifics |
180
+ | 3. Per-library | `nomercy-video-player` / `nomercy-music-player` | Generic video and music behaviour — zero NoMercy specifics |
181
+ | 4. Built-in plugin | Plugins inside kit and library packages | Domain-generic UI and features |
182
+ | 5. Consumer plugin | App code / `nomercy-plugins/` | All NoMercy-specific glue — server endpoints, sync protocols, radio |
183
+
184
+ Layers 1–4 have zero knowledge of NoMercy server endpoints, the Fillz plugin system, or NoMercy Connect protocols. All of that lives at layer 5 in consumer plugins. This boundary is what makes it possible to use layers 2–4 independently of any NoMercy infrastructure.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ [![npm](https://img.shields.io/npm/v/@nomercy-entertainment/nomercy-player-core/beta?label=beta)](https://www.npmjs.com/package/@nomercy-entertainment/nomercy-player-core)
2
+ [![license](https://img.shields.io/npm/l/@nomercy-entertainment/nomercy-player-core)](./LICENSE)
3
+ [![bundlephobia](https://img.shields.io/bundlephobia/minzip/@nomercy-entertainment/nomercy-player-core)](https://bundlephobia.com/package/@nomercy-entertainment/nomercy-player-core)
4
+
5
+ Full documentation: https://docs.nomercy.tv/player/
6
+
7
+ # nomercy-player-core
8
+
9
+ The shared, headless engine that the video and music players are built on. It carries everything that is not specific to video or audio: the queue, the auth pipeline, the plugin system, the typed event bus, i18n, storage, and an adapter port for every cross-cutting concern. Swapping a default is a matter of passing a different implementation to `setup()`, no subclassing.
10
+
11
+ You rarely install this package directly. Pull in [`nomercy-video-player`](https://www.npmjs.com/package/@nomercy-entertainment/nomercy-video-player) or [`nomercy-music-player`](https://www.npmjs.com/package/@nomercy-entertainment/nomercy-music-player) and the core comes along as a peer dependency. Install it on its own only when you are writing a library-level plugin or a new player package on top of the core.
12
+
13
+ ```
14
+ npm install @nomercy-entertainment/nomercy-player-core
15
+ ```
16
+
17
+ ## Quick start
18
+
19
+ You drive the core through a library. The core's adapters and plugins are configured in the same `setup()` call:
20
+
21
+ ```ts
22
+ import nmplayer from '@nomercy-entertainment/nomercy-video-player';
23
+ import { LocalStorageBackend } from '@nomercy-entertainment/nomercy-player-core';
24
+
25
+ const player = nmplayer('player')
26
+ .setup({
27
+ baseUrl: 'https://raw.githubusercontent.com/NoMercy-Entertainment/nomercy-media/master/Films',
28
+ storage: new LocalStorageBackend(),
29
+ playlist: [
30
+ {
31
+ id: 'sintel',
32
+ title: 'Sintel',
33
+ url: '/Sintel.(2010)/Sintel.(2010).NoMercy.m3u8',
34
+ duration: 888,
35
+ },
36
+ ],
37
+ });
38
+
39
+ player.on('ready', () => {
40
+ player.item(0, { autoplay: true });
41
+ });
42
+ ```
43
+
44
+ ## Documentation
45
+
46
+ The [docs site](https://docs.nomercy.tv/player/) is the full reference and the home for everything that used to live in the wiki:
47
+
48
+ - [Quick Start](https://docs.nomercy.tv/player/quickstart) and the [adapter ports](https://docs.nomercy.tv/player/kit/adapters)
49
+ - [Event system](https://docs.nomercy.tv/player/kit/event-system), [lifecycle](https://docs.nomercy.tv/player/kit/lifecycle), and [auth and fetch](https://docs.nomercy.tv/player/kit/auth-fetch)
50
+ - [Built-in plugins](https://docs.nomercy.tv/player/kit/plugins), [plugin authoring](https://docs.nomercy.tv/player/plugin-authoring), and the full type reference
51
+
52
+ ## License
53
+
54
+ Apache-2.0
55
+
56
+ Repository: [github.com/NoMercy-Entertainment/nomercy-player-kit](https://github.com/NoMercy-Entertainment/nomercy-player-kit)
package/RELEASING.md ADDED
@@ -0,0 +1,47 @@
1
+ # Releasing @nomercy-entertainment/nomercy-player-core
2
+
3
+ ## Beta publish (current)
4
+
5
+ All three packages in the trio publish under the `beta` dist-tag. This is controlled by
6
+ `publishConfig.tag: "beta"` in each `package.json`. A consumer gets the beta by running:
7
+
8
+ ```
9
+ npm install @nomercy-entertainment/nomercy-player-core@beta
10
+ ```
11
+
12
+ A plain `npm install @nomercy-entertainment/nomercy-player-core` resolves nothing until a
13
+ stable version is published under the `latest` tag.
14
+
15
+ ## Stable 2.0.0 flip checklist
16
+
17
+ When the beta period ends and 2.0.0 is ready for general availability:
18
+
19
+ 1. Bump version to `2.0.0` in all three package.json files (`nomercy-player-core`,
20
+ `nomercy-video-player`, `nomercy-music-player`).
21
+ 2. Remove `"tag": "beta"` from `publishConfig` in all three, OR publish with
22
+ `npm publish --tag latest`. Leaving `tag: "beta"` without the override means
23
+ `npm install <pkg>` still resolves nothing under `latest`.
24
+ 3. Update the `@nomercy-entertainment/nomercy-player-core` dependency range in
25
+ `nomercy-video-player` and `nomercy-music-player` from `^2.0.0-beta.0` to `^2.0.0`
26
+ (both satisfy the same constraint, but `^2.0.0` is the conventional stable form).
27
+ 4. Tag each repo: `git tag v2.0.0 && git push origin v2.0.0`.
28
+ 5. Publish in dependency order: core first, then video and music.
29
+
30
+ ## Cross-package version range
31
+
32
+ During beta, video and music declare:
33
+
34
+ ```json
35
+ {
36
+ "dependencies": {
37
+ "@nomercy-entertainment/nomercy-player-core": "^2.0.0-beta.0"
38
+ }
39
+ }
40
+ ```
41
+
42
+ `^2.0.0-beta.0` matches `>=2.0.0-beta.0 <3.0.0-0`, which covers every `2.0.0-beta.x`
43
+ prerelease AND the eventual `2.0.0` stable — so no range change is required at stable flip
44
+ (step 3 above is cosmetic/conventional, not mechanical).
45
+
46
+ In the yarn classic workspace the range resolves to the local `packages/nomercy-player-kit`
47
+ workspace package regardless, so local development is unaffected.