@phenixrts/bitmovin-plugin 2024.0.2-beta.37 → 2024.2.1-beta.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,20 +1,29 @@
1
1
  # Phenix RTS SDK Bitmovin plugin
2
+
2
3
  This project demonstrates the integration of the popular web video player [Bitmovin](https://bitmovin.com) with the [PhenixRTS SDK](https://www.npmjs.com/package/@phenixrts/sdk).
3
4
 
4
5
  ## Setup
6
+
5
7
  1. Install the Bitmovin web-x player
8
+
6
9
  ```bash
7
10
  npm i @bitmovin/player-web-x
8
11
  ```
12
+
9
13
  2. Install the Phenix RTS SDK Bitmovin plugin
14
+
10
15
  ```bash
11
16
  npm i @phenixrts/bitmovin-plugin
12
17
  ```
18
+
13
19
  3. Install the Phenix RTS SDK
20
+
14
21
  ```bash
15
22
  npm i @phenixrts/sdk
16
23
  ```
24
+
17
25
  4. Initialize the web-x player with the Phenix RTS SDK Bitmovin plugin
26
+
18
27
  ```JavaScript
19
28
  import { Player } from '@bitmovin/player-web-x/bundles/playerx-core';
20
29
  ...
@@ -32,18 +41,24 @@ This project demonstrates the integration of the popular web video player [Bitmo
32
41
  ```
33
42
 
34
43
  ## Run the example
44
+
35
45
  1. Publish a stream via [Phenix RTS Portal](https://www.phenixrts.com/portal/).
36
46
  2. Make sure you are in the `examples` folder and run:
47
+
37
48
  ```bash
38
49
  npm install
39
50
  ```
51
+
40
52
  3. Start the example with:
53
+
41
54
  ```bash
42
55
  npm run start
43
56
  ```
57
+
44
58
  4. Create a viewing token using the [Phenix RTS Portal](https://www.phenixrts.com/portal/).
45
59
  - Go to Channels
46
60
  - Select the channel in which the stream was published
47
61
  - Go to the EdgeAuth tab
48
62
  - Copy the viewing token
49
- 5. Open the locally served URL and at the end add a 'token' query parameter and the previously generated token: `http://127.0.0.1:5173/phenixrts-sdk-plugin-for-real-time.html?token=<viewToken>`.
63
+
64
+ 5. Open the locally served URL and at the end add a 'token' query parameter and the previously generated token `http://127.0.0.1:8088/phenixrts-bitmovin-example.html?token=<viewToken>`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phenixrts/bitmovin-plugin",
3
- "version": "2024.0.2-beta.37",
3
+ "version": "2024.2.1-beta.41",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -16,6 +16,6 @@
16
16
  "types": "packages/types/sdk/channels/index.d.ts",
17
17
  "license": "See in LICENSE file",
18
18
  "peerDependencies": {
19
- "@phenixrts/sdk": "^2023.2.22"
19
+ "@phenixrts/sdk": "^2024.2.1"
20
20
  }
21
21
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phenixrts/bitmovin-plugin/phenix-sdk-api",
3
- "version": "2024.0.2-beta.37",
3
+ "version": "2024.2.1-beta.41",
4
4
  "files": [
5
5
  "*"
6
6
  ],
@@ -7,11 +7,11 @@
7
7
  exports["phenix-sdk-api"] = factory(require("@phenixrts/sdk"));
8
8
  else
9
9
  root["bitmovin"] = root["bitmovin"] || {}, root["bitmovin"]["playerx"] = root["bitmovin"]["playerx"] || {}, root["bitmovin"]["playerx"]["phenix-sdk-api"] = factory(root["@phenixrts/sdk"]);
10
- })(self, (__WEBPACK_EXTERNAL_MODULE__48__) => {
10
+ })(self, (__WEBPACK_EXTERNAL_MODULE__318__) => {
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 497:
14
+ /***/ 173:
15
15
  /***/ ((module) => {
16
16
 
17
17
  /*******************************************************************************
@@ -21,22 +21,22 @@ return /******/ (() => { // webpackBootstrap
21
21
  * source code is subject to the terms and conditions of the accompanying
22
22
  * license agreement.
23
23
  *
24
- * Bitmovin Player X Version 10.0.0-beta.18
24
+ * Bitmovin Player X Version 10.1.2
25
25
  *******************************************************************************/
26
26
  !function(e,t){ true?module.exports=t():0}(self,(()=>(()=>{"use strict";var e={281:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},85:(e,t)=>{function r(e,t,r){const a=t;return a._name=e,{onAdd:a,dependencies:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackage=void 0,t.createPackage=r},270:(e,t)=>{function r(e,t){const r=t;return r._name=e,r}function a(e){return(...t)=>{const[a,o]=e(...t);return r(a,o)}}function o(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,"__esModule",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=r,t.createTaskClosure=a,t.getTaskName=o}},t={};function r(a){var o=t[a];if(void 0!==o)return o.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.createTaskClosure=e.createTask=e.createPackage=e.createEffectFactory=void 0;var t=r(281);Object.defineProperty(e,"createEffectFactory",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(85);Object.defineProperty(e,"createPackage",{enumerable:!0,get:function(){return o.createPackage}});var n=r(270);Object.defineProperty(e,"createTask",{enumerable:!0,get:function(){return n.createTask}}),Object.defineProperty(e,"createTaskClosure",{enumerable:!0,get:function(){return n.createTaskClosure}})})(),a})()));
27
27
 
28
28
  /***/ }),
29
29
 
30
- /***/ 91:
30
+ /***/ 593:
31
31
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
32
32
 
33
33
  "use strict";
34
34
 
35
35
  Object.defineProperty(exports, "__esModule", ({ value: true }));
36
36
  exports.PhenixSdkApi = void 0;
37
- const sdk_1 = __webpack_require__(48);
38
- const playerx_framework_utils_1 = __webpack_require__(497);
39
- const PhenixSdkStateAtom_1 = __webpack_require__(865);
37
+ const sdk_1 = __webpack_require__(318);
38
+ const playerx_framework_utils_1 = __webpack_require__(173);
39
+ const PhenixSdkStateAtom_1 = __webpack_require__(463);
40
40
  exports.PhenixSdkApi = (0, playerx_framework_utils_1.createPackage)('phenix-sdk-api-package', (apiManager, baseContext) => {
41
41
  const { StateEffectFactory, StoreEffectFactory, EventListenerEffectFactory } = baseContext.registry.get('core-effects');
42
42
  const videoElement = apiManager.api.getVideoElement();
@@ -77,13 +77,14 @@ exports["default"] = exports.PhenixSdkApi;
77
77
 
78
78
  /***/ }),
79
79
 
80
- /***/ 865:
80
+ /***/ 463:
81
81
  /***/ ((__unused_webpack_module, exports) => {
82
82
 
83
83
  "use strict";
84
84
 
85
85
  Object.defineProperty(exports, "__esModule", ({ value: true }));
86
- exports.createPhenixSdkStateAtom = exports.PhenixSdkNameAtom = void 0;
86
+ exports.PhenixSdkNameAtom = void 0;
87
+ exports.createPhenixSdkStateAtom = createPhenixSdkStateAtom;
87
88
  exports.PhenixSdkNameAtom = 'phenix-sdk-state';
88
89
  function createPhenixSdkStateAtom(context) {
89
90
  const initialState = { isSdkRunning: false };
@@ -94,16 +95,15 @@ function createPhenixSdkStateAtom(context) {
94
95
  }
95
96
  });
96
97
  }
97
- exports.createPhenixSdkStateAtom = createPhenixSdkStateAtom;
98
98
 
99
99
 
100
100
  /***/ }),
101
101
 
102
- /***/ 48:
102
+ /***/ 318:
103
103
  /***/ ((module) => {
104
104
 
105
105
  "use strict";
106
- module.exports = __WEBPACK_EXTERNAL_MODULE__48__;
106
+ module.exports = __WEBPACK_EXTERNAL_MODULE__318__;
107
107
 
108
108
  /***/ })
109
109
 
@@ -138,7 +138,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__48__;
138
138
  /******/ // startup
139
139
  /******/ // Load entry module and return exports
140
140
  /******/ // This entry module is referenced by other modules so it can't be inlined
141
- /******/ var __webpack_exports__ = __webpack_require__(91);
141
+ /******/ var __webpack_exports__ = __webpack_require__(593);
142
142
  /******/
143
143
  /******/ return __webpack_exports__;
144
144
  /******/ })()
@@ -1 +1 @@
1
- {"version":3,"file":"phenix-sdk-api/phenix-sdk-api.package.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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G,YAAY,CAAC;YAElC,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAVD,4DAUC;;;;;;;;;ACvBD;;;;;;UCAA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://bitmovin.playerx/webpack/universalModuleDefinition","webpack://bitmovin.playerx/./node_modules/@bitmovin/player-web-x/playerx-framework-utils.js","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkApi.package.ts","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkStateAtom.ts","webpack://bitmovin.playerx/external umd \"@phenixrts/sdk\"","webpack://bitmovin.playerx/webpack/bootstrap","webpack://bitmovin.playerx/webpack/before-startup","webpack://bitmovin.playerx/webpack/startup","webpack://bitmovin.playerx/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@phenixrts/sdk\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@phenixrts/sdk\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"phenix-sdk-api\"] = factory(require(\"@phenixrts/sdk\"));\n\telse\n\t\troot[\"bitmovin\"] = root[\"bitmovin\"] || {}, root[\"bitmovin\"][\"playerx\"] = root[\"bitmovin\"][\"playerx\"] || {}, root[\"bitmovin\"][\"playerx\"][\"phenix-sdk-api\"] = factory(root[\"@phenixrts/sdk\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__48__) => {\nreturn ","/*******************************************************************************\n * This source code is the proprietary property of Bitmovin, Inc. Unauthorized\n * copying, distribution, or use of this code, or any portion thereof, is\n * strictly prohibited. © 2024 Bitmovin, Inc. All rights reserved. This\n * source code is subject to the terms and conditions of the accompanying\n * license agreement.\n *\n * Bitmovin Player X Version 10.0.0-beta.18\n *******************************************************************************/\n!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports[\"framework-utils\"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx[\"framework-utils\"]=t())}(self,(()=>(()=>{\"use strict\";var e={281:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},85:(e,t)=>{function r(e,t,r){const a=t;return a._name=e,{onAdd:a,dependencies:r}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackage=void 0,t.createPackage=r},270:(e,t)=>{function r(e,t){const r=t;return r._name=e,r}function a(e){return(...t)=>{const[a,o]=e(...t);return r(a,o)}}function o(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,\"__esModule\",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=r,t.createTaskClosure=a,t.getTaskName=o}},t={};function r(a){var o=t[a];if(void 0!==o)return o.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,\"__esModule\",{value:!0}),e.createTaskClosure=e.createTask=e.createPackage=e.createEffectFactory=void 0;var t=r(281);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(85);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(270);Object.defineProperty(e,\"createTask\",{enumerable:!0,get:function(){return n.createTask}}),Object.defineProperty(e,\"createTaskClosure\",{enumerable:!0,get:function(){return n.createTaskClosure}})})(),a})()));","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {CoreEffects} from '@bitmovin/player-web-x/types/framework/core/core/Core.package';\nimport type {ComponentName} from '@bitmovin/player-web-x/types/framework/Types';\nimport type Channel from '@phenixrts/sdk/types/sdk/channels/Channel';\nimport type {PhenixSdkStateAtom} from './PhenixSdkStateAtom';\nimport phenix from '@phenixrts/sdk';\nimport {createPackage} from '@bitmovin/player-web-x/playerx-framework-utils';\nimport {createPhenixSdkStateAtom, PhenixSdkNameAtom} from './PhenixSdkStateAtom';\n\ntype Dependencies = {\n [ComponentName.CoreEffects]: CoreEffects;\n};\n\ntype Exports = {\n [PhenixSdkNameAtom]: PhenixSdkStateAtom;\n};\n\ntype Api = {\n getVideoElement: () => HTMLVideoElement;\n phenixrts: IPhenixApi;\n};\n\nexport interface IPhenixApi {\n createChannel: (token: string) => Channel;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n initSDK: (options: { [key: string]: any }) => void;\n disposeChannel: () => void;\n}\n\nexport const PhenixSdkApi = createPackage<Dependencies, Exports, Api>(\n 'phenix-sdk-api-package',\n (apiManager, baseContext) => {\n const {StateEffectFactory, StoreEffectFactory, EventListenerEffectFactory} = baseContext.registry.get('core-effects');\n const videoElement = apiManager.api.getVideoElement();\n const contextWithState = baseContext.using(StateEffectFactory).using(EventListenerEffectFactory);\n const phenixSdkState = createPhenixSdkStateAtom(contextWithState);\n const contextWithPlaybackState = contextWithState\n .using(StoreEffectFactory('phenixSdkState', phenixSdkState))\n .using(EventListenerEffectFactory);\n\n contextWithState.registry.set(PhenixSdkNameAtom, phenixSdkState);\n\n const {state} = contextWithPlaybackState.effects;\n let channel: Channel;\n const api: IPhenixApi = {\n createChannel: (token: string) => {\n channel = phenix.Channels.createChannel({\n videoElement,\n token\n });\n state.dispatch(phenixSdkState.set, true);\n\n return channel;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n initSDK: (options: { [key: string]: any }) => {\n phenix.SDK.init(options);\n\n return null;\n },\n disposeChannel: () => {\n if (channel) {\n state.dispatch(phenixSdkState.set, false);\n\n channel.dispose();\n }\n }\n };\n\n apiManager.set('phenixrts', api);\n\n return;\n },\n ['core-effects'],\n);\n\nexport default PhenixSdkApi;","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {ContextWithState} from '@bitmovin/player-web-x/types/framework/core/Types';\n\ninterface IPhenixSdkState {\n isSdkRunning: boolean;\n}\n\nexport const PhenixSdkNameAtom = 'phenix-sdk-state';\n\nexport type PhenixSdkStateAtom = ReturnType<typeof createPhenixSdkStateAtom>;\n\nexport function createPhenixSdkStateAtom(context: ContextWithState) {\n const initialState: IPhenixSdkState = {isSdkRunning: false};\n\n return context.effects.state.create(initialState, {\n set: (state: IPhenixSdkState, isSdkRunning: boolean) => {\n state.isSdkRunning = isSdkRunning;\n\n return true;\n }\n });\n}","module.exports = __WEBPACK_EXTERNAL_MODULE__48__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(91);\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"phenix-sdk-api/phenix-sdk-api.package.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iEAAiE;AAC5G,CAAC;AACD,O;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAiD,oBAAoB,CAA0N,CAAC,iBAAiB,aAAa,OAAO,YAAY,sCAAsC,SAAS,+BAA+B,aAAa,wBAAwB,YAAY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ACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://bitmovin.playerx/webpack/universalModuleDefinition","webpack://bitmovin.playerx/./node_modules/@bitmovin/player-web-x/playerx-framework-utils.js","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkApi.package.ts","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkStateAtom.ts","webpack://bitmovin.playerx/external umd \"@phenixrts/sdk\"","webpack://bitmovin.playerx/webpack/bootstrap","webpack://bitmovin.playerx/webpack/before-startup","webpack://bitmovin.playerx/webpack/startup","webpack://bitmovin.playerx/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@phenixrts/sdk\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@phenixrts/sdk\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"phenix-sdk-api\"] = factory(require(\"@phenixrts/sdk\"));\n\telse\n\t\troot[\"bitmovin\"] = root[\"bitmovin\"] || {}, root[\"bitmovin\"][\"playerx\"] = root[\"bitmovin\"][\"playerx\"] || {}, root[\"bitmovin\"][\"playerx\"][\"phenix-sdk-api\"] = factory(root[\"@phenixrts/sdk\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__318__) => {\nreturn ","/*******************************************************************************\n * This source code is the proprietary property of Bitmovin, Inc. Unauthorized\n * copying, distribution, or use of this code, or any portion thereof, is\n * strictly prohibited. © 2024 Bitmovin, Inc. All rights reserved. This\n * source code is subject to the terms and conditions of the accompanying\n * license agreement.\n *\n * Bitmovin Player X Version 10.1.2\n *******************************************************************************/\n!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports[\"framework-utils\"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx[\"framework-utils\"]=t())}(self,(()=>(()=>{\"use strict\";var e={281:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},85:(e,t)=>{function r(e,t,r){const a=t;return a._name=e,{onAdd:a,dependencies:r}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackage=void 0,t.createPackage=r},270:(e,t)=>{function r(e,t){const r=t;return r._name=e,r}function a(e){return(...t)=>{const[a,o]=e(...t);return r(a,o)}}function o(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,\"__esModule\",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=r,t.createTaskClosure=a,t.getTaskName=o}},t={};function r(a){var o=t[a];if(void 0!==o)return o.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,\"__esModule\",{value:!0}),e.createTaskClosure=e.createTask=e.createPackage=e.createEffectFactory=void 0;var t=r(281);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(85);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(270);Object.defineProperty(e,\"createTask\",{enumerable:!0,get:function(){return n.createTask}}),Object.defineProperty(e,\"createTaskClosure\",{enumerable:!0,get:function(){return n.createTaskClosure}})})(),a})()));","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {CoreEffects} from '@bitmovin/player-web-x/types/framework/core/core/Core.package';\nimport type {ComponentName} from '@bitmovin/player-web-x/types/framework/Types';\nimport type Channel from '@phenixrts/sdk/types/sdk/channels/Channel';\nimport type {PhenixSdkStateAtom} from './PhenixSdkStateAtom';\nimport phenix from '@phenixrts/sdk';\nimport {createPackage} from '@bitmovin/player-web-x/playerx-framework-utils';\nimport {createPhenixSdkStateAtom, PhenixSdkNameAtom} from './PhenixSdkStateAtom';\n\ntype Dependencies = {\n [ComponentName.CoreEffects]: CoreEffects;\n};\n\ntype Exports = {\n [PhenixSdkNameAtom]: PhenixSdkStateAtom;\n};\n\ntype Api = {\n getVideoElement: () => HTMLVideoElement;\n phenixrts: IPhenixApi;\n};\n\nexport interface IPhenixApi {\n createChannel: (token: string) => Channel;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n initSDK: (options: { [key: string]: any }) => void;\n disposeChannel: () => void;\n}\n\nexport const PhenixSdkApi = createPackage<Dependencies, Exports, Api>(\n 'phenix-sdk-api-package',\n (apiManager, baseContext) => {\n const {StateEffectFactory, StoreEffectFactory, EventListenerEffectFactory} = baseContext.registry.get('core-effects');\n const videoElement = apiManager.api.getVideoElement();\n const contextWithState = baseContext.using(StateEffectFactory).using(EventListenerEffectFactory);\n const phenixSdkState = createPhenixSdkStateAtom(contextWithState);\n const contextWithPlaybackState = contextWithState\n .using(StoreEffectFactory('phenixSdkState', phenixSdkState))\n .using(EventListenerEffectFactory);\n\n contextWithState.registry.set(PhenixSdkNameAtom, phenixSdkState);\n\n const {state} = contextWithPlaybackState.effects;\n let channel: Channel;\n const api: IPhenixApi = {\n createChannel: (token: string) => {\n channel = phenix.Channels.createChannel({\n videoElement,\n token\n });\n state.dispatch(phenixSdkState.set, true);\n\n return channel;\n },\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n initSDK: (options: { [key: string]: any }) => {\n phenix.SDK.init(options);\n\n return null;\n },\n disposeChannel: () => {\n if (channel) {\n state.dispatch(phenixSdkState.set, false);\n\n channel.dispose();\n }\n }\n };\n\n apiManager.set('phenixrts', api);\n\n return;\n },\n ['core-effects'],\n);\n\nexport default PhenixSdkApi;","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {ContextWithState} from '@bitmovin/player-web-x/types/framework/core/Types';\n\ninterface IPhenixSdkState {\n isSdkRunning: boolean;\n}\n\nexport const PhenixSdkNameAtom = 'phenix-sdk-state';\n\nexport type PhenixSdkStateAtom = ReturnType<typeof createPhenixSdkStateAtom>;\n\nexport function createPhenixSdkStateAtom(context: ContextWithState) {\n const initialState: IPhenixSdkState = {isSdkRunning: false};\n\n return context.effects.state.create(initialState, {\n set: (state: IPhenixSdkState, isSdkRunning: boolean) => {\n state.isSdkRunning = isSdkRunning;\n\n return true;\n }\n });\n}","module.exports = __WEBPACK_EXTERNAL_MODULE__318__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(593);\n",""],"names":[],"sourceRoot":""}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phenixrts/bitmovin-plugin/phenix-sdk-plugin",
3
- "version": "2024.0.2-beta.37",
3
+ "version": "2024.2.1-beta.41",
4
4
  "files": [
5
5
  "*"
6
6
  ],
@@ -11,7 +11,7 @@
11
11
  return /******/ (() => { // webpackBootstrap
12
12
  /******/ var __webpack_modules__ = ({
13
13
 
14
- /***/ 497:
14
+ /***/ 173:
15
15
  /***/ ((module) => {
16
16
 
17
17
  /*******************************************************************************
@@ -21,21 +21,21 @@ return /******/ (() => { // webpackBootstrap
21
21
  * source code is subject to the terms and conditions of the accompanying
22
22
  * license agreement.
23
23
  *
24
- * Bitmovin Player X Version 10.0.0-beta.18
24
+ * Bitmovin Player X Version 10.1.2
25
25
  *******************************************************************************/
26
26
  !function(e,t){ true?module.exports=t():0}(self,(()=>(()=>{"use strict";var e={281:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},85:(e,t)=>{function r(e,t,r){const a=t;return a._name=e,{onAdd:a,dependencies:r}}Object.defineProperty(t,"__esModule",{value:!0}),t.createPackage=void 0,t.createPackage=r},270:(e,t)=>{function r(e,t){const r=t;return r._name=e,r}function a(e){return(...t)=>{const[a,o]=e(...t);return r(a,o)}}function o(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,"__esModule",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=r,t.createTaskClosure=a,t.getTaskName=o}},t={};function r(a){var o=t[a];if(void 0!==o)return o.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.createTaskClosure=e.createTask=e.createPackage=e.createEffectFactory=void 0;var t=r(281);Object.defineProperty(e,"createEffectFactory",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(85);Object.defineProperty(e,"createPackage",{enumerable:!0,get:function(){return o.createPackage}});var n=r(270);Object.defineProperty(e,"createTask",{enumerable:!0,get:function(){return n.createTask}}),Object.defineProperty(e,"createTaskClosure",{enumerable:!0,get:function(){return n.createTaskClosure}})})(),a})()));
27
27
 
28
28
  /***/ }),
29
29
 
30
- /***/ 465:
30
+ /***/ 542:
31
31
  /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
32
32
 
33
33
  "use strict";
34
34
 
35
35
  Object.defineProperty(exports, "__esModule", ({ value: true }));
36
36
  exports.PhenixSdkPlugin = void 0;
37
- const playerx_framework_utils_1 = __webpack_require__(497);
38
- const PhenixSdkStateAtom_1 = __webpack_require__(865);
37
+ const playerx_framework_utils_1 = __webpack_require__(173);
38
+ const PhenixSdkStateAtom_1 = __webpack_require__(463);
39
39
  exports.PhenixSdkPlugin = (0, playerx_framework_utils_1.createPackage)('phenix-sdk-package', (apiManager, baseContext) => {
40
40
  const { StateEffectFactory, EventListenerEffectFactory } = baseContext.registry.get('core-effects');
41
41
  const context = baseContext.using(StateEffectFactory).using(EventListenerEffectFactory);
@@ -63,13 +63,14 @@ exports["default"] = exports.PhenixSdkPlugin;
63
63
 
64
64
  /***/ }),
65
65
 
66
- /***/ 865:
66
+ /***/ 463:
67
67
  /***/ ((__unused_webpack_module, exports) => {
68
68
 
69
69
  "use strict";
70
70
 
71
71
  Object.defineProperty(exports, "__esModule", ({ value: true }));
72
- exports.createPhenixSdkStateAtom = exports.PhenixSdkNameAtom = void 0;
72
+ exports.PhenixSdkNameAtom = void 0;
73
+ exports.createPhenixSdkStateAtom = createPhenixSdkStateAtom;
73
74
  exports.PhenixSdkNameAtom = 'phenix-sdk-state';
74
75
  function createPhenixSdkStateAtom(context) {
75
76
  const initialState = { isSdkRunning: false };
@@ -80,7 +81,6 @@ function createPhenixSdkStateAtom(context) {
80
81
  }
81
82
  });
82
83
  }
83
- exports.createPhenixSdkStateAtom = createPhenixSdkStateAtom;
84
84
 
85
85
 
86
86
  /***/ })
@@ -116,7 +116,7 @@ exports.createPhenixSdkStateAtom = createPhenixSdkStateAtom;
116
116
  /******/ // startup
117
117
  /******/ // Load entry module and return exports
118
118
  /******/ // This entry module is referenced by other modules so it can't be inlined
119
- /******/ var __webpack_exports__ = __webpack_require__(465);
119
+ /******/ var __webpack_exports__ = __webpack_require__(542);
120
120
  /******/
121
121
  /******/ return __webpack_exports__;
122
122
  /******/ })()
@@ -1 +1 @@
1
- {"version":3,"file":"phenix-sdk-plugin/phenix-sdk-plugin.package.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iEAAiE;AAC5G,CAAC;AACD,O;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAiD,oBAAoB,CAA0N,CAAC,iBAAiB,aAAa,OA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UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;;;UEtBA;UACA;UACA;UACA","sources":["webpack://bitmovin.playerx/webpack/universalModuleDefinition","webpack://bitmovin.playerx/./node_modules/@bitmovin/player-web-x/playerx-framework-utils.js","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkPlugin.package.ts","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkStateAtom.ts","webpack://bitmovin.playerx/webpack/bootstrap","webpack://bitmovin.playerx/webpack/before-startup","webpack://bitmovin.playerx/webpack/startup","webpack://bitmovin.playerx/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"phenix-sdk-plugin\"] = factory();\n\telse\n\t\troot[\"bitmovin\"] = root[\"bitmovin\"] || {}, root[\"bitmovin\"][\"playerx\"] = root[\"bitmovin\"][\"playerx\"] || {}, root[\"bitmovin\"][\"playerx\"][\"phenix-sdk-plugin\"] = factory();\n})(self, () => {\nreturn ","/*******************************************************************************\n * This source code is the proprietary property of Bitmovin, Inc. Unauthorized\n * copying, distribution, or use of this code, or any portion thereof, is\n * strictly prohibited. © 2024 Bitmovin, Inc. All rights reserved. This\n * source code is subject to the terms and conditions of the accompanying\n * license agreement.\n *\n * Bitmovin Player X Version 10.0.0-beta.18\n *******************************************************************************/\n!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports[\"framework-utils\"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx[\"framework-utils\"]=t())}(self,(()=>(()=>{\"use strict\";var e={281:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},85:(e,t)=>{function r(e,t,r){const a=t;return a._name=e,{onAdd:a,dependencies:r}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackage=void 0,t.createPackage=r},270:(e,t)=>{function r(e,t){const r=t;return r._name=e,r}function a(e){return(...t)=>{const[a,o]=e(...t);return r(a,o)}}function o(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,\"__esModule\",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=r,t.createTaskClosure=a,t.getTaskName=o}},t={};function r(a){var o=t[a];if(void 0!==o)return o.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,\"__esModule\",{value:!0}),e.createTaskClosure=e.createTask=e.createPackage=e.createEffectFactory=void 0;var t=r(281);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(85);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(270);Object.defineProperty(e,\"createTask\",{enumerable:!0,get:function(){return n.createTask}}),Object.defineProperty(e,\"createTaskClosure\",{enumerable:!0,get:function(){return n.createTaskClosure}})})(),a})()));","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {ApiManager} from '@bitmovin/player-web-x/framework-types/api-manager/ApiManager';\nimport type {ContextHaving} from '@bitmovin/player-web-x/framework-types/execution-context/Types';\nimport type {EmptyObject} from '@bitmovin/player-web-x/types/BaseTypes';\nimport type {CoreEffects} from '@bitmovin/player-web-x/types/framework/core/core/Core.package';\nimport type {SourceStateAtom} from '@bitmovin/player-web-x/types/framework/core/source/atoms/SourceStateAtom';\nimport type {ContextWithState} from '@bitmovin/player-web-x/types/framework/core/Types';\nimport type {ComponentName} from '@bitmovin/player-web-x/types/framework/Types';\nimport type {IPhenixApi} from './PhenixSdkApi.package';\nimport type {PhenixSdkStateAtom} from './PhenixSdkStateAtom';\nimport {createPackage, createTask} from '@bitmovin/player-web-x/playerx-framework-utils';\nimport {PhenixSdkNameAtom} from './PhenixSdkStateAtom';\n\ntype Dependencies = {\n [ComponentName.CoreEffects]: CoreEffects;\n [ComponentName.SourceState]: SourceStateAtom;\n [PhenixSdkNameAtom]: PhenixSdkStateAtom;\n};\n\ntype Exports = EmptyObject;\n\ntype Api = {\n sources: EmptyObject;\n phenixrts: IPhenixApi;\n};\n\nexport type PhenixSdkPluginContext = ContextHaving<Dependencies, Exports, ContextWithState>;\n\nexport const PhenixSdkPlugin = createPackage<Dependencies, Exports, Api>(\n 'phenix-sdk-package',\n (apiManager, baseContext) => {\n const {StateEffectFactory, EventListenerEffectFactory} = baseContext.registry.get('core-effects');\n const context = baseContext.using(StateEffectFactory).using(EventListenerEffectFactory);\n const sourceState = context.registry.get('source-state');\n const phenixSdkState = context.registry.get(PhenixSdkNameAtom);\n const {state} = context.effects;\n\n state.subscribe(context, phenixSdkState, ApiStateChangeSubscriber(apiManager));\n state.subscribe(context, sourceState, SourceStateChangeSubscriber(apiManager));\n },\n ['core-effects', PhenixSdkNameAtom, 'source-state'],\n);\n\nconst SourceStateChangeSubscriber = (apiManager: ApiManager<Api>) =>\n createTask('source-state-sdk-subscriber', (source: SourceStateAtom) => {\n if (source.isActive) {\n apiManager.api.phenixrts.disposeChannel();\n }\n });\nconst ApiStateChangeSubscriber = (apiManager: ApiManager<Api>) =>\n createTask('api-state-change-subscriber', (source: PhenixSdkStateAtom, context: PhenixSdkPluginContext) => {\n const sourceState = context.registry.get('source-state');\n\n if (source.isSdkRunning && apiManager.api.sources) {\n const {state} = context.effects;\n\n state.dispatch(sourceState.setActive, false);\n state.dispatch(sourceState.video.clear);\n }\n });\n\nexport default PhenixSdkPlugin;","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {ContextWithState} from '@bitmovin/player-web-x/types/framework/core/Types';\n\ninterface IPhenixSdkState {\n isSdkRunning: boolean;\n}\n\nexport const PhenixSdkNameAtom = 'phenix-sdk-state';\n\nexport type PhenixSdkStateAtom = ReturnType<typeof createPhenixSdkStateAtom>;\n\nexport function createPhenixSdkStateAtom(context: ContextWithState) {\n const initialState: IPhenixSdkState = {isSdkRunning: false};\n\n return context.effects.state.create(initialState, {\n set: (state: IPhenixSdkState, isSdkRunning: boolean) => {\n state.isSdkRunning = isSdkRunning;\n\n return true;\n }\n });\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(465);\n",""],"names":[],"sourceRoot":""}
1
+ {"version":3,"file":"phenix-sdk-plugin/phenix-sdk-plugin.package.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CAA2C,iEAAiE;AAC5G,CAAC;AACD,O;;;;;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,KAAiD,oBAAoB,CAA0N,CAAC,iBAAiB,aAAa,OAAO,YAAY,sCAAsC,SAAS,+BAA+B,aAAa,wBAAwB,YAAY,kBAAkB,UAAU,kBAAkB,wBAAwB,sCAAsC,SAAS,2CAA2C,aAAa,gBAAgB,UAAU,mBAAmB,cAAc,eAAe,mBAAmB,eAAe,cAAc,MAAM,+CAA+C,s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in.playerx/./node_modules/@bitmovin/player-web-x/playerx-framework-utils.js","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkPlugin.package.ts","webpack://bitmovin.playerx/./src/phenix-bitmovin-plugin/PhenixSdkStateAtom.ts","webpack://bitmovin.playerx/webpack/bootstrap","webpack://bitmovin.playerx/webpack/before-startup","webpack://bitmovin.playerx/webpack/startup","webpack://bitmovin.playerx/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"phenix-sdk-plugin\"] = factory();\n\telse\n\t\troot[\"bitmovin\"] = root[\"bitmovin\"] || {}, root[\"bitmovin\"][\"playerx\"] = root[\"bitmovin\"][\"playerx\"] || {}, root[\"bitmovin\"][\"playerx\"][\"phenix-sdk-plugin\"] = factory();\n})(self, () => {\nreturn ","/*******************************************************************************\n * This source code is the proprietary property of Bitmovin, Inc. Unauthorized\n * copying, distribution, or use of this code, or any portion thereof, is\n * strictly prohibited. © 2024 Bitmovin, Inc. All rights reserved. This\n * source code is subject to the terms and conditions of the accompanying\n * license agreement.\n *\n * Bitmovin Player X Version 10.1.2\n *******************************************************************************/\n!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports[\"framework-utils\"]=t():(e.bitmovin=e.bitmovin||{},e.bitmovin.playerx=e.bitmovin.playerx||{},e.bitmovin.playerx[\"framework-utils\"]=t())}(self,(()=>(()=>{\"use strict\";var e={281:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},85:(e,t)=>{function r(e,t,r){const a=t;return a._name=e,{onAdd:a,dependencies:r}}Object.defineProperty(t,\"__esModule\",{value:!0}),t.createPackage=void 0,t.createPackage=r},270:(e,t)=>{function r(e,t){const r=t;return r._name=e,r}function a(e){return(...t)=>{const[a,o]=e(...t);return r(a,o)}}function o(e){var t;return null!==(t=e._name)&&void 0!==t?t:e.name}Object.defineProperty(t,\"__esModule\",{value:!0}),t.getTaskName=t.createTaskClosure=t.createTask=void 0,t.createTask=r,t.createTaskClosure=a,t.getTaskName=o}},t={};function r(a){var o=t[a];if(void 0!==o)return o.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,\"__esModule\",{value:!0}),e.createTaskClosure=e.createTask=e.createPackage=e.createEffectFactory=void 0;var t=r(281);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(85);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(270);Object.defineProperty(e,\"createTask\",{enumerable:!0,get:function(){return n.createTask}}),Object.defineProperty(e,\"createTaskClosure\",{enumerable:!0,get:function(){return n.createTaskClosure}})})(),a})()));","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {ApiManager} from '@bitmovin/player-web-x/framework-types/api-manager/ApiManager';\nimport type {ContextHaving} from '@bitmovin/player-web-x/framework-types/execution-context/Types';\nimport type {EmptyObject} from '@bitmovin/player-web-x/types/BaseTypes';\nimport type {CoreEffects} from '@bitmovin/player-web-x/types/framework/core/core/Core.package';\nimport type {SourceStateAtom} from '@bitmovin/player-web-x/types/framework/core/source/atoms/SourceStateAtom';\nimport type {ContextWithState} from '@bitmovin/player-web-x/types/framework/core/Types';\nimport type {ComponentName} from '@bitmovin/player-web-x/types/framework/Types';\nimport type {IPhenixApi} from './PhenixSdkApi.package';\nimport type {PhenixSdkStateAtom} from './PhenixSdkStateAtom';\nimport {createPackage, createTask} from '@bitmovin/player-web-x/playerx-framework-utils';\nimport {PhenixSdkNameAtom} from './PhenixSdkStateAtom';\n\ntype Dependencies = {\n [ComponentName.CoreEffects]: CoreEffects;\n [ComponentName.SourceState]: SourceStateAtom;\n [PhenixSdkNameAtom]: PhenixSdkStateAtom;\n};\n\ntype Exports = EmptyObject;\n\ntype Api = {\n sources: EmptyObject;\n phenixrts: IPhenixApi;\n};\n\nexport type PhenixSdkPluginContext = ContextHaving<Dependencies, Exports, ContextWithState>;\n\nexport const PhenixSdkPlugin = createPackage<Dependencies, Exports, Api>(\n 'phenix-sdk-package',\n (apiManager, baseContext) => {\n const {StateEffectFactory, EventListenerEffectFactory} = baseContext.registry.get('core-effects');\n const context = baseContext.using(StateEffectFactory).using(EventListenerEffectFactory);\n const sourceState = context.registry.get('source-state');\n const phenixSdkState = context.registry.get(PhenixSdkNameAtom);\n const {state} = context.effects;\n\n state.subscribe(context, phenixSdkState, ApiStateChangeSubscriber(apiManager));\n state.subscribe(context, sourceState, SourceStateChangeSubscriber(apiManager));\n },\n ['core-effects', PhenixSdkNameAtom, 'source-state'],\n);\n\nconst SourceStateChangeSubscriber = (apiManager: ApiManager<Api>) =>\n createTask('source-state-sdk-subscriber', (source: SourceStateAtom) => {\n if (source.isActive) {\n apiManager.api.phenixrts.disposeChannel();\n }\n });\nconst ApiStateChangeSubscriber = (apiManager: ApiManager<Api>) =>\n createTask('api-state-change-subscriber', (source: PhenixSdkStateAtom, context: PhenixSdkPluginContext) => {\n const sourceState = context.registry.get('source-state');\n\n if (source.isSdkRunning && apiManager.api.sources) {\n const {state} = context.effects;\n\n state.dispatch(sourceState.setActive, false);\n state.dispatch(sourceState.video.clear);\n }\n });\n\nexport default PhenixSdkPlugin;","/**\n * Copyright 2024 Phenix Real Time Solutions, Inc. Confidential and Proprietary. All Rights Reserved.\n */\nimport type {ContextWithState} from '@bitmovin/player-web-x/types/framework/core/Types';\n\ninterface IPhenixSdkState {\n isSdkRunning: boolean;\n}\n\nexport const PhenixSdkNameAtom = 'phenix-sdk-state';\n\nexport type PhenixSdkStateAtom = ReturnType<typeof createPhenixSdkStateAtom>;\n\nexport function createPhenixSdkStateAtom(context: ContextWithState) {\n const initialState: IPhenixSdkState = {isSdkRunning: false};\n\n return context.effects.state.create(initialState, {\n set: (state: IPhenixSdkState, isSdkRunning: boolean) => {\n state.isSdkRunning = isSdkRunning;\n\n return true;\n }\n });\n}","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","","// startup\n// Load entry module and return exports\n// This entry module is referenced by other modules so it can't be inlined\nvar __webpack_exports__ = __webpack_require__(542);\n",""],"names":[],"sourceRoot":""}