@phenixrts/bitmovin-plugin 2025.2.3-beta.49 → 2025.2.3-beta.60
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/LICENSE.md +1 -1
- package/package.json +2 -2
- package/packages/phenix-sdk-api/package.json +2 -2
- package/packages/phenix-sdk-api/phenix-sdk-api.package.js +6 -0
- package/packages/phenix-sdk-api/phenix-sdk-api.package.js.map +1 -1
- package/packages/phenix-sdk-plugin/package.json +2 -2
- package/packages/phenix-sdk-plugin/phenix-sdk-plugin.package.js +6 -0
- package/packages/phenix-sdk-plugin/phenix-sdk-plugin.package.js.map +1 -1
- package/packages/types/PhenixSdkApi.package.d.ts +3 -0
- package/packages/types/PhenixSdkPlugin.package.d.ts +3 -0
- package/packages/types/PhenixSdkStateAtom.d.ts +1 -1
package/LICENSE.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright
|
|
1
|
+
Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phenixrts/bitmovin-plugin",
|
|
3
|
-
"version": "2025.2.3-beta.
|
|
3
|
+
"version": "2025.2.3-beta.60",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
|
-
"author": "
|
|
7
|
+
"author": "Perform Content Services Limited",
|
|
8
8
|
"description": "Phenix Real Time Solutions Bitmovin plugin",
|
|
9
9
|
"files": [
|
|
10
10
|
"packages"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phenixrts/bitmovin-plugin/phenix-sdk-api",
|
|
3
|
-
"version": "2025.2.3-beta.
|
|
3
|
+
"version": "2025.2.3-beta.60",
|
|
4
4
|
"files": [
|
|
5
5
|
"*"
|
|
6
6
|
],
|
|
7
|
-
"author": "
|
|
7
|
+
"author": "Perform Content Services Limited",
|
|
8
8
|
"license": "See in LICENSE file",
|
|
9
9
|
"main": "./phenix-sdk-api.package.js",
|
|
10
10
|
"types": "../types/PhenixSdkApi.package.d.ts"
|
|
@@ -32,6 +32,9 @@ return /******/ (() => { // webpackBootstrap
|
|
|
32
32
|
|
|
33
33
|
"use strict";
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
|
37
|
+
*/
|
|
35
38
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
36
39
|
exports.PhenixSdkApi = void 0;
|
|
37
40
|
const sdk_1 = __webpack_require__(318);
|
|
@@ -95,6 +98,9 @@ exports["default"] = exports.PhenixSdkApi;
|
|
|
95
98
|
|
|
96
99
|
"use strict";
|
|
97
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
|
103
|
+
*/
|
|
98
104
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
99
105
|
exports.PhenixSdkNameAtom = void 0;
|
|
100
106
|
exports.createPhenixSdkStateAtom = createPhenixSdkStateAtom;
|
|
@@ -1 +1 @@
|
|
|
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,aAAa,kBAAkB,UAAU,kBAAkB,wBAAwB,sCAAsC,SAAS,2CAA2C,aAAa,gBAAgB,UAAU,mBAAmB,cAAc,eAAe,mBAAmB,eAAe,cAAc,MAAM,+CAA+C,sCAAsC,SAAS,8GAA8G,MAAM,cAAc,WAAW,+BAA+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,CAAC,MAAM,CAAC,YAAY,EAAE;QAChD,GAAG,EAAE,CAAC,KAAsB,EAAE,YAAqB,EAAE,EAAE;YACrD,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;YAElC,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC,CAAC;AACL,CAAC;;;;;;;;;ACvBD,kD;;;;;;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__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. © 2026 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.2.0\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={592:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},239:(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},317:(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(592);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(239);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(317);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 {EventBus} from '@bitmovin/player-web-x/types/packages/event-bus/Types';\nimport type {PlayerEventMap} from '@bitmovin/player-web-x/types/packages/player-api/Types';\nimport type {VideoAttachedEvent} from '@bitmovin/player-web-x/types/packages/sources-api/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 events: EventBus<PlayerEventMap>;\n getVideoElement: () => HTMLVideoElement; // DEPRECATED -- to be removed in part 2\n phenixrts: IPhenixApi;\n};\n\nexport interface IPhenixApi {\n createChannel: (token: string) => Channel | undefined;\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 contextWithState = baseContext.using(StateEffectFactory).using(EventListenerEffectFactory);\n const phenixSdkState = createPhenixSdkStateAtom(contextWithState);\n const contextWithPlaybackState = contextWithState\n .using(StoreEffectFactory('phenixSdkState', phenixSdkState))\n .using(EventListenerEffectFactory);\n let videoElement: HTMLVideoElement | undefined = undefined;\n\n contextWithState.registry.set(PhenixSdkNameAtom, phenixSdkState);\n\n if (apiManager.api.getVideoElement) { // DEPRECATED -- to be removed in part 2\n videoElement = apiManager.api.getVideoElement();\n } else {\n apiManager.api.events.on('video-attached', (event: VideoAttachedEvent) => {\n videoElement = event.videoElement;\n });\n }\n\n const {state} = contextWithPlaybackState.effects;\n let channel: Channel | undefined = undefined;\n const api: IPhenixApi = {\n createChannel: (token: string) => {\n if (!videoElement) {\n console.log('Error: PlayerWebX VideoElement not attached before calling phenixrts.createChannel()');\n\n return undefined;\n }\n\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 channel.dispose();\n channel = undefined;\n }\n\n state.dispatch(phenixSdkState.set, false);\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
|
+
{"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,aAAa,kBAAkB,UAAU,kBAAkB,wBAAwB,sCAAsC,SAAS,2CAA2C,aAAa,gBAAgB,UAAU,mBAAmB,cAAc,eAAe,mBAAmB,eAAe,cAAc,MAAM,+CAA+C,sCAAsC,SAAS,8GAA8G,MAAM,cAAc,WAAW,+BAA+B,YAAY,YAAY,qCAAqC,SAAS,YAAY,QAAQ,sCAAsC,SAAS,gFAAgF,aAAa,+CAA+C,6BAA6B,8BAA8B,EAAE,aAAa,yCAAyC,6BAA6B,wBAAwB,EAAE,aAAa,sCAAsC,6BAA6B,qBAAqB,+CAA+C,6BAA6B,4BAA4B,EAAE,MAAM,M;;;;;;;;;ACT3qD;;GAEG;;;AASH,uCAAoC;AACpC,2DAA6E;AAC7E,sDAAiF;AAuBpE,oBAAY,GAAG,2CAAa,EACvC,wBAAwB,EACxB,CAAC,UAAU,EAAE,WAAW,EAAE,EAAE;IAC1B,MAAM,EAAC,kBAAkB,EAAE,kBAAkB,EAAE,0BAA0B,EAAC,GAAG,WAAW,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IACtH,MAA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AC;QACD,8DAA8D;QAC9D,OAAO,EAAE,CAAC,OAA+B,EAAE,EAAE;YAC3C,aAAM,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAEzB,OAAO,IAAI,CAAC;QACd,CAAC;QACD,cAAc,EAAE,GAAG,EAAE;YACnB,IAAI,OAAO,EAAE,CAAC;gBACZ,OAAO,CAAC,OAAO,EAAE,CAAC;gBAClB,OAAO,GAAG,SAAS,CAAC;YACtB,CAAC;YAED,KAAK,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAC5C,CAAC;KACF,CAAC;IAEF,UAAU,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC;IAEjC,OAAO;AACT,CAAC,EACD,CAAC,cAAc,CAAC,CACjB,CAAC;AAEF,qBAAe,oBAAY,CAAC;;;;;;;;;;AClG5B;;GAEG;;;AAYH,4DAUC;AAdY,yBAAiB,GAAG,kBAAkB,CAAC;AAIpD,SAAgB,wBAAwB,CAAC,OAAyB;IAChE,MAAM,YAAY,GAAoB,EAAC,YAAY,EAAE,KAAK,EAAC,CAAC;IAE5D,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE;QAChD,GAAG,EAAE,CAAC,KAAsB,EAAE,YAAqB,EAAE,EAAE;YACrD,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;YAElC,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC,CAAC;AACL,CAAC;;;;;;;;;ACxBD,kD;;;;;;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__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. © 2026 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.2.0\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={592:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},239:(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},317:(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(592);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(239);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(317);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 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.\n */\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 {EventBus} from '@bitmovin/player-web-x/types/packages/event-bus/Types';\nimport type {PlayerEventMap} from '@bitmovin/player-web-x/types/packages/player-api/Types';\nimport type {VideoAttachedEvent} from '@bitmovin/player-web-x/types/packages/sources-api/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 events: EventBus<PlayerEventMap>;\n getVideoElement: () => HTMLVideoElement; // DEPRECATED -- to be removed in part 2\n phenixrts: IPhenixApi;\n};\n\nexport interface IPhenixApi {\n createChannel: (token: string) => Channel | undefined;\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 contextWithState = baseContext.using(StateEffectFactory).using(EventListenerEffectFactory);\n const phenixSdkState = createPhenixSdkStateAtom(contextWithState);\n const contextWithPlaybackState = contextWithState\n .using(StoreEffectFactory('phenixSdkState', phenixSdkState))\n .using(EventListenerEffectFactory);\n let videoElement: HTMLVideoElement | undefined = undefined;\n\n contextWithState.registry.set(PhenixSdkNameAtom, phenixSdkState);\n\n if (apiManager.api.getVideoElement) { // DEPRECATED -- to be removed in part 2\n videoElement = apiManager.api.getVideoElement();\n } else {\n apiManager.api.events.on('video-attached', (event: VideoAttachedEvent) => {\n videoElement = event.videoElement;\n });\n }\n\n const {state} = contextWithPlaybackState.effects;\n let channel: Channel | undefined = undefined;\n const api: IPhenixApi = {\n createChannel: (token: string) => {\n if (!videoElement) {\n console.log('Error: PlayerWebX VideoElement not attached before calling phenixrts.createChannel()');\n\n return undefined;\n }\n\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 channel.dispose();\n channel = undefined;\n }\n\n state.dispatch(phenixSdkState.set, false);\n }\n };\n\n apiManager.set('phenixrts', api);\n\n return;\n },\n ['core-effects'],\n);\n\nexport default PhenixSdkApi;","/**\n * Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.\n */\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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phenixrts/bitmovin-plugin/phenix-sdk-plugin",
|
|
3
|
-
"version": "2025.2.3-beta.
|
|
3
|
+
"version": "2025.2.3-beta.60",
|
|
4
4
|
"files": [
|
|
5
5
|
"*"
|
|
6
6
|
],
|
|
7
|
-
"author": "
|
|
7
|
+
"author": "Perform Content Services Limited",
|
|
8
8
|
"license": "See in LICENSE file",
|
|
9
9
|
"main": "./phenix-sdk-plugin.package.js",
|
|
10
10
|
"types": "../types/PhenixSdkPlugin.package.d.ts"
|
|
@@ -32,6 +32,9 @@ return /******/ (() => { // webpackBootstrap
|
|
|
32
32
|
|
|
33
33
|
"use strict";
|
|
34
34
|
|
|
35
|
+
/**
|
|
36
|
+
* Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
|
37
|
+
*/
|
|
35
38
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
36
39
|
exports.PhenixSdkPlugin = void 0;
|
|
37
40
|
const playerx_framework_utils_1 = __webpack_require__(173);
|
|
@@ -68,6 +71,9 @@ exports["default"] = exports.PhenixSdkPlugin;
|
|
|
68
71
|
|
|
69
72
|
"use strict";
|
|
70
73
|
|
|
74
|
+
/**
|
|
75
|
+
* Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
|
76
|
+
*/
|
|
71
77
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
72
78
|
exports.PhenixSdkNameAtom = void 0;
|
|
73
79
|
exports.createPhenixSdkStateAtom = createPhenixSdkStateAtom;
|
|
@@ -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,OAAO,YAAY,sCAAsC,SAAS,+BAA+B,aAAa,wBAAwB,aAAa,kBAAkB,UAAU,kBAAkB,wBAAwB,sCAAsC,SAAS,2CAA2C,aAAa,gBAAgB,UAAU,mBAAmB,cAAc,eAAe,mBAAmB,eAAe,cAAc,MAAM,+CAA+C,sCAAsC,S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/./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. © 2026 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.2.0\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={592:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},239:(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},317:(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(592);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(239);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(317);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":""}
|
|
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,aAAa,kBAAkB,UAAU,kBAAkB,wBAAwB,sCAAsC,SAAS,2CAA2C,aAAa,gBAAgB,UAAU,mBAAmB,cAAc,eAAe,mBAAmB,eAAe,cAAc,MAAM,+CAA+C,sCAAsC,SAAS,8GAA8G,MAAM,cAAc,WAAW,+BAA+B,YAAY,YAAY,qCAAqC,SAAS,YAAY,QAAQ,sCAAsC,SAAS,gFAAgF,aAAa,+CAA+C,6BAA6B,8BAA8B,EAAE,aAAa,yCAAyC,6B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C/D,wCAAU,EAAC,6BAA6B,EAAE,CAAC,MAA0B,EAAE,OAA+B,EAAE,EAAE;IACxG,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEzD,IAAI,MAAM,CAAC,YAAY,IAAI,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QAClD,MAAM,EAAC,KAAK,EAAC,GAAG,OAAO,CAAC,OAAO,CAAC;QAEhC,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC7C,KAAK,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,qBAAe,uBAAe,CAAC;;;;;;;;;;AChE/B;;GAEG;;;AAYH,4DAUC;AAdY,yBAAiB,GAAG,kBAAkB,CAAC;AAIpD,SAAgB,wBAAwB,CAAC,OAAyB;IAChE,MAAM,YAAY,GAAoB,EAAC,YAAY,EAAE,KAAK,EAAC,CAAC;IAE5D,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,EAAE;QAChD,GAAG,EAAE,CAAC,KAAsB,EAAE,YAAqB,EAAE,EAAE;YACrD,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;YAElC,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC,CAAC;AACL,CAAC;;;;;;;UCxBD;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/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. © 2026 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.2.0\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={592:(e,t)=>{Object.defineProperty(t,\"__esModule\",{value:!0}),t.createEffectFactory=void 0;const r=e=>e;t.createEffectFactory=r},239:(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},317:(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(592);Object.defineProperty(e,\"createEffectFactory\",{enumerable:!0,get:function(){return t.createEffectFactory}});var o=r(239);Object.defineProperty(e,\"createPackage\",{enumerable:!0,get:function(){return o.createPackage}});var n=r(317);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 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.\n */\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 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.\n */\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":""}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
|
3
|
+
*/
|
|
1
4
|
import type { EventBus } from '@bitmovin/player-web-x/types/packages/event-bus/Types';
|
|
2
5
|
import type { PlayerEventMap } from '@bitmovin/player-web-x/types/packages/player-api/Types';
|
|
3
6
|
import type Channel from '@phenixrts/sdk/types/sdk/channels/Channel';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
|
3
|
+
*/
|
|
1
4
|
import type { ContextHaving } from '@bitmovin/player-web-x/framework-types/execution-context/Types';
|
|
2
5
|
import type { EmptyObject } from '@bitmovin/player-web-x/types/BaseTypes';
|
|
3
6
|
import type { ContextWithState } from '@bitmovin/player-web-x/types/framework/core/Types';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright
|
|
2
|
+
* Copyright 2026 Perform Content Services Limited. Confidential and Proprietary. All Rights Reserved.
|
|
3
3
|
*/
|
|
4
4
|
import type { ContextWithState } from '@bitmovin/player-web-x/types/framework/core/Types';
|
|
5
5
|
export declare const PhenixSdkNameAtom = "phenix-sdk-state";
|