@amazon-devices/kepler-player-server 2.2.9 → 2.3.0-rn-83

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.
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["__prelude__","majorVersionMapPolyfill.js","node_modules/@amazon-devices/kepler-player-server/dist/index.js","node_modules/@amazon-devices/kepler-player-server/dist/turbo-modules/PlayerServerDataTypes/PlayerServerDataTypes.js","node_modules/@amazon-devices/kepler-player-server/dist/turbo-modules/PlayerServerFactory.js","node_modules/@babel/runtime/helpers/interopRequireDefault.js","node_modules/@babel/runtime/helpers/classCallCheck.js","node_modules/@babel/runtime/helpers/createClass.js","node_modules/@babel/runtime/helpers/toPropertyKey.js","node_modules/@babel/runtime/helpers/toPrimitive.js","node_modules/@babel/runtime/helpers/typeof.js","node_modules/@amazon-devices/kepler-player-server/dist/turbo-modules/PlayerServer.js","node_modules/@babel/runtime/helpers/asyncToGenerator.js","node_modules/@amazon-devices/kepler-player-server/dist/turbo-modules/KeplerPlayerServerTurboModule.js","node_modules/@amazon-devices/keplerscript-turbomodule-api/dist/index.js","node_modules/@amazon-devices/keplerscript-turbomodule-api/dist/turbomodules/TurboModuleRegistry.js","node_modules/@amazon-devices/keplerscript-turbomodule-api/dist/invariant/invariant.js","node_modules/@babel/runtime/helpers/getPrototypeOf.js","node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","node_modules/@babel/runtime/helpers/assertThisInitialized.js","node_modules/@babel/runtime/helpers/inherits.js","node_modules/@babel/runtime/helpers/setPrototypeOf.js","node_modules/@babel/runtime/helpers/wrapNativeSuper.js","node_modules/@babel/runtime/helpers/isNativeFunction.js","node_modules/@babel/runtime/helpers/construct.js","node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","node_modules/@amazon-devices/kepler-media-types/dist/index.js","node_modules/@amazon-devices/kepler-media-types/dist/KeplerMediaTypes.js","node_modules/@amazon-devices/kepler-player-server/dist/turbo-modules/PlayerServerDataTypes/PlayerSessionError.js"],"sourcesContent":["var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||\"production\";","global._majorVersionToNoVersionIdMap[\"ad677706b8945cb477ea\"]=\"350064035567855446f0\";\nglobal._majorVersionToNoVersionIdMap[\"ae5e474cbdfef25d304c\"]=\"ad74cb3535cb5aa7cb35\";\nglobal._majorVersionToNoVersionIdMap[\"618983a9c4a24c2f61a4\"]=\"0cc8e6da838944718622\";\nglobal._majorVersionToNoVersionIdMap[\"c25ac8ed395dc412c26d\"]=\"241ac04609f00d822a98\";\nglobal._majorVersionToNoVersionIdMap[\"fbc2893c87e8600ee4d6\"]=\"75941a29883cccf56531\";\nglobal._majorVersionToNoVersionIdMap[\"bb411e2f321c4ad4bcae\"]=\"e55d24b68300b3c3c106\";\nglobal._majorVersionToNoVersionIdMap[\"ea0aa1b2ad762be817f5\"]=\"d2d15014e8a88dcfd8b3\";\nglobal._majorVersionToNoVersionIdMap[\"311999c2457e52d403d4\"]=\"299b3bd6ea58ba5b5fab\";\nglobal._majorVersionToNoVersionIdMap[\"1e4826ede945c5e87d86\"]=\"4c8d76cc142715c85753\";\nglobal._majorVersionToNoVersionIdMap[\"a3758d82d40a1f629cf4\"]=\"440af66048d198a4454b\";\nglobal._majorVersionToNoVersionIdMap[\"fc056a4f89a954decac2\"]=\"b71f23d72f44cb15f884\";\nglobal._majorVersionToNoVersionIdMap[\"99fa992564974043de3a\"]=\"c23acbd21a90450fc1f1\";\nglobal._majorVersionToNoVersionIdMap[\"034b0a3a1dd2c033f0d3\"]=\"68f1f5f56d4f4d86caa2\";\nglobal._majorVersionToNoVersionIdMap[\"96224afd1147fcf9c757\"]=\"2c862cbda522b5ab5598\";\n","export { IPlayerSessionState, IUnloadSyncStatus } from './turbo-modules/PlayerServerDataTypes/PlayerServerDataTypes';\nexport * from './turbo-modules/PlayerServerDataTypes/PlayerSessionError';\nexport { PlayerServerFactory } from './turbo-modules/PlayerServerFactory';\n","/*\n * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * AMAZON PROPRIETARY/CONFIDENTIAL\n *\n * You may not use this file except in compliance with the terms and\n * conditions set forth in the accompanying LICENSE.TXT file.\n *\n * THESE MATERIALS ARE PROVIDED ON AN \"AS IS\" BASIS. AMAZON SPECIFICALLY\n * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,\n * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.\n */\n/**\n * Represents the possible states of media playback.\n * This must be set in `IPlayerSessionStatus` depending on the events received\n * after registering event listeners.\n *\n * @see https://html.spec.whatwg.org/#event-handlers-on-elements,-document-objects,-and-window-objects\n */\nexport var IPlayerSessionState;\n(function (IPlayerSessionState) {\n /**\n * Playback is temporarily stopped\n */\n IPlayerSessionState[\"PAUSED\"] = \"PAUSED\";\n /**\n * Media content is actively playing\n */\n IPlayerSessionState[\"PLAYING\"] = \"PLAYING\";\n /**\n * Media is loading into temporary storage\n */\n IPlayerSessionState[\"BUFFERING\"] = \"BUFFERING\";\n /**\n * Playback position is being changed\n */\n IPlayerSessionState[\"SEEKING\"] = \"SEEKING\";\n /**\n * Media playback has reached its conclusion\n */\n IPlayerSessionState[\"ENDED\"] = \"ENDED\";\n /**\n * Playback has encountered an error\n */\n IPlayerSessionState[\"ERROR\"] = \"ERROR\";\n /**\n * Media is ready to play immediately\n */\n IPlayerSessionState[\"READY\"] = \"READY\";\n})(IPlayerSessionState || (IPlayerSessionState = {}));\n/**\n * Represents the possible status values of synchronous unload of media playback.\n * Associated with {@link @amazon-devices/kepler-player-client#IPlayerClient.unloadSync} API.\n * These values are in sync with {@link @amazon-devices/react-native-w3cmedia#MediaPlayerDeInitStatus|W3CMedia MediaPlayerDeInitStatus}\n */\nexport var IUnloadSyncStatus;\n(function (IUnloadSyncStatus) {\n /**\n * Media playback instance was unloaded successfully.\n */\n IUnloadSyncStatus[\"SUCCESS\"] = \"success\";\n /**\n * Media playback instance unload timed out.\n */\n IUnloadSyncStatus[\"TIMEDOUT\"] = \"timedout\";\n /**\n * Invalid request for media playback unload.\n */\n IUnloadSyncStatus[\"INVALID\"] = \"invalid\";\n})(IUnloadSyncStatus || (IUnloadSyncStatus = {}));\n","/*\n * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * AMAZON PROPRIETARY/CONFIDENTIAL\n *\n * You may not use this file except in compliance with the terms and\n * conditions set forth in the accompanying LICENSE.TXT file.\n *\n * THESE MATERIALS ARE PROVIDED ON AN \"AS IS\" BASIS. AMAZON SPECIFICALLY\n * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,\n * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.\n */\nimport { PlayerServer } from './PlayerServer';\n/** @ignore */\nexport class PlayerServerFactory {\n static server;\n /**\n * Makes or returns the PlayerServer singleton\n */\n getOrMakeServer() {\n if (!PlayerServerFactory.server) {\n PlayerServerFactory.server = new PlayerServer();\n }\n return PlayerServerFactory.server;\n }\n}\nexport default new PlayerServerFactory();\n","function _interopRequireDefault(e) {\n return e && e.__esModule ? e : {\n \"default\": e\n };\n}\nmodule.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _classCallCheck(a, n) {\n if (!(a instanceof n)) throw new TypeError(\"Cannot call a class as a function\");\n}\nmodule.exports = _classCallCheck, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var toPropertyKey = require(\"./toPropertyKey.js\");\nfunction _defineProperties(e, r) {\n for (var t = 0; t < r.length; t++) {\n var o = r[t];\n o.enumerable = o.enumerable || !1, o.configurable = !0, \"value\" in o && (o.writable = !0), Object.defineProperty(e, toPropertyKey(o.key), o);\n }\n}\nfunction _createClass(e, r, t) {\n return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, \"prototype\", {\n writable: !1\n }), e;\n}\nmodule.exports = _createClass, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar toPrimitive = require(\"./toPrimitive.js\");\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nmodule.exports = toPropertyKey, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nmodule.exports = toPrimitive, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return module.exports = _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _typeof(o);\n}\nmodule.exports = _typeof, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","/*\n * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * AMAZON PROPRIETARY/CONFIDENTIAL\n *\n * You may not use this file except in compliance with the terms and\n * conditions set forth in the accompanying LICENSE.TXT file.\n *\n * THESE MATERIALS ARE PROVIDED ON AN \"AS IS\" BASIS. AMAZON SPECIFICALLY\n * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,\n * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.\n */\nimport { IUnloadSyncStatus } from './PlayerServerDataTypes/PlayerServerDataTypes';\nimport { ChannelDescriptorBuilder } from '@amazon-devices/kepler-epg-provider';\nimport KeplerPlayerServerTurboModule from './KeplerPlayerServerTurboModule';\n/**\n * @ignore\n * The implementation of IPlayerServer.\n */\nexport class PlayerServer {\n mServerHandler = null;\n mPositionListenerMap = new Map();\n clearPositionListeners(sessionId, listenerId) {\n let _sessionId = sessionId ? sessionId.id : -1;\n const sessionListeners = this.mPositionListenerMap.get(_sessionId);\n if (!sessionListeners) {\n // no listener for session, nothing to do\n return false;\n }\n if (!listenerId) {\n // not deleting specific listener, clear all timers and delete map entry for session.\n sessionListeners.forEach(value => {\n clearInterval(value[1]);\n });\n this.mPositionListenerMap.delete(_sessionId);\n }\n else {\n // clear specific timer and update listener map\n const match = sessionListeners.find(value => value[0] == listenerId);\n if (!match) {\n // listenerId not found\n return false;\n }\n clearInterval(match[1]);\n const remainingListeners = sessionListeners?.filter(values => values[0] != listenerId);\n if (remainingListeners) {\n this.mPositionListenerMap.set(_sessionId, remainingListeners);\n }\n else {\n this.mPositionListenerMap.delete(_sessionId);\n }\n }\n return true;\n }\n handleEvent(result, transactionId) {\n console.log('KeplerPlayerServer: handleEvent with callback event ', result.event);\n if (this.mServerHandler === null) {\n return;\n }\n let resultCallback = result.event;\n if (resultCallback === \"handleLoad\") {\n try {\n this.mServerHandler.handleLoad(result.urlInfo, result.loadParams, result.sessionId);\n console.log(\"handleLoad: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleLoad: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleUnload\") {\n try {\n this.clearPositionListeners(result.sessionId);\n this.mServerHandler.handleUnload(result.sessionId);\n console.log(\"handleUnload: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleUnload: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleSetVideoView\") {\n try {\n this.mServerHandler.handleSetVideoView(result.handle, result.sessionId);\n console.log(\"handleSetVideoView: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleSetVideoView: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleClearVideoView\") {\n try {\n this.mServerHandler.handleClearVideoView(result.sessionId);\n console.log(\"handleClearVideoView: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleClearVideoView: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleSetTextView\") {\n try {\n this.mServerHandler.handleSetTextView(result.handle, result.sessionId);\n console.log(\"handleSetTextView: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleSetTextView: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleClearTextView\") {\n try {\n this.mServerHandler.handleClearTextView(result.sessionId);\n console.log(\"handleClearTextView: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleClearTextView: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handlePlay\") {\n try {\n this.mServerHandler.handlePlay(result.sessionId);\n console.log(\"handlePlay: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handlePlay: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handlePause\") {\n try {\n this.mServerHandler.handlePause(result.sessionId);\n console.log(\"handlePause: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handlePause: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleSeek\") {\n try {\n this.mServerHandler.handleSeek(result.timevalue, result.boolValue, result.sessionId);\n console.log(\"handleSeek: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleSeek: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleSetMute\") {\n try {\n this.mServerHandler.handleSetMute(result.boolValue, result.sessionId);\n console.log(\"handleSetMute: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleSetMute: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleSetPlaybackRate\") {\n try {\n this.mServerHandler.handleSetPlaybackRate(result.numberValue, result.sessionId);\n console.log(\"handleSetPlaybackRate: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleSetPlaybackRate: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleSetVolume\") {\n try {\n this.mServerHandler.handleSetVolume(result.numberValue, result.sessionId);\n console.log(\"handleSetVolume: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleSetVolume: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleSetActiveTrack\") {\n try {\n this.mServerHandler.handleSetActiveTrack(result.trackType, result.stringValue, result.sessionId);\n console.log(\"handleSetActiveTrack: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleSetActiveTrack: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleGetCurrentPosition\") {\n try {\n let position = this.mServerHandler.handleGetCurrentPosition(result.sessionId);\n console.log(\"handleGetCurrentPosition: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { positionValue: position });\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleGetCurrentPosition: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleMessage\") {\n try {\n let messageObj = JSON.parse(result.stringValue);\n this.mServerHandler.handleMessage(messageObj, result.sessionId);\n console.log(\"handleMessage: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleMessage: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStartBufferedRangesUpdates\") {\n try {\n this.mServerHandler.handleStartBufferedRangesUpdates(result.sessionId);\n console.log(\"handleStartBufferedRangesUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStartBufferedRangesUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStopBufferedRangesUpdates\") {\n try {\n this.mServerHandler.handleStopBufferedRangesUpdates(result.sessionId);\n console.log(\"handleStopBufferedRangesUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStopBufferedRangesUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStartStatusUpdates\") {\n try {\n this.mServerHandler.handleStartStatusUpdates(result.sessionId);\n console.log(\"handleStartStatusUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStartStatusUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStopStatusUpdates\") {\n try {\n this.mServerHandler.handleStopStatusUpdates(result.sessionId);\n console.log(\"handleStopStatusUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStopStatusUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStartTrackUpdates\") {\n try {\n this.mServerHandler.handleStartTrackUpdates(result.sessionId);\n console.log(\"handleStartTrackUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStartTrackUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStopTrackUpdates\") {\n try {\n this.mServerHandler.handleStopTrackUpdates(result.sessionId);\n console.log(\"handleStopTrackUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStopTrackUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStartMessageUpdates\") {\n try {\n this.mServerHandler.handleStartMessageUpdates(result.sessionId);\n console.log(\"handleStartMessageUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStartMessageUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStopMessageUpdates\") {\n try {\n this.mServerHandler.handleStopMessageUpdates(result.sessionId);\n console.log(\"handleStopMessageUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStopMessageUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStartErrorUpdates\") {\n try {\n this.mServerHandler.handleStartErrorUpdates(result.sessionId);\n console.log(\"handleStartErrorUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStartErrorUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStopErrorUpdates\") {\n try {\n this.mServerHandler.handleStopErrorUpdates(result.sessionId);\n console.log(\"handleStopErrorUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStopErrorUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleUnloadSync\") {\n try {\n let _unloadSyncStatus = IUnloadSyncStatus.INVALID;\n this.clearPositionListeners(result.sessionId);\n if (this.mServerHandler.handleUnloadSync) {\n _unloadSyncStatus = this.mServerHandler.handleUnloadSync(result.numberValue, result.sessionId);\n console.log(\"handleUnloadSync: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { unloadSyncStatus: _unloadSyncStatus });\n }\n else {\n console.log(\"handleUnloadSync: not implemented, returning invalid.\");\n KeplerPlayerServerTurboModule.transactionError(transactionId, \"handleUnloadSync not implemented.\");\n }\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleUnloadSync: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStartPlaybackPositionUpdates\") {\n try {\n if (!result.timevalue || !result.numberValue) {\n throw new Error(`invalid interval: ${result.timevalue} or listenerId: ${result.numberValue}`);\n }\n let sessionId = result.sessionId ? result.sessionId.id : -1;\n let interval = result.timevalue;\n let listenerId = result.numberValue;\n let timerId = setInterval(async () => {\n try {\n if (!this.mServerHandler) {\n throw new Error('invalid mServerHandler');\n }\n let position = this.mServerHandler.handleGetCurrentPosition(result.sessionId);\n let sessionPosition = { sessionId: result.sessionId, position: position };\n KeplerPlayerServerTurboModule.updatePlaybackPosition(listenerId, [sessionPosition]);\n console.log(`updatePlaybackPosition: ${position}, for listenerId ${listenerId}`);\n }\n catch (error) {\n console.error(\"updatePlaybackPosition error: \", error);\n }\n }, Math.floor(interval * 1000));\n let listners = [[listenerId, timerId]];\n const existingListeners = this.mPositionListenerMap.get(sessionId);\n if (existingListeners) {\n listners.concat(existingListeners);\n }\n this.mPositionListenerMap.set(sessionId, listners);\n console.log(\"handleStartPlaybackPositionUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStartPlaybackPositionUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleStopPlaybackPositionUpdates\") {\n try {\n if (!result.numberValue) {\n throw new Error(`invalid listenerId: ${result.numberValue}`);\n }\n if (!this.clearPositionListeners(result.sessionId, result.numberValue)) {\n throw new Error(`ListenerId ${result.numberValue} not present for sessionId ${result.sessionId}`);\n }\n console.log(\"handleStopPlaybackPositionUpdates: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleStopPlaybackPositionUpdates: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleLoadContent\") {\n try {\n const handler2 = this.mServerHandler;\n if (!handler2.handleLoadContent) {\n console.log(\"handleLoadContent: not implemented.\");\n KeplerPlayerServerTurboModule.transactionError(transactionId, \"handleLoadContent not implemented.\");\n }\n else {\n handler2.handleLoadContent(result.mediaId, result.sessionId, result.loadParams);\n console.log(\"handleLoadContent: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleLoadContent: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleLoadChannel\") {\n try {\n const handler2 = this.mServerHandler;\n if (!handler2.handleLoadChannel) {\n console.log(\"handleLoadChannel: not implemented.\");\n KeplerPlayerServerTurboModule.transactionError(transactionId, \"handleLoadChannel not implemented.\");\n }\n else {\n const rawDescriptor = result.channelDescriptor;\n const channelDescriptor = new ChannelDescriptorBuilder()\n .identifier(rawDescriptor?.identifier)\n .majorNumber(rawDescriptor?.majorNumber)\n .minorNumber(rawDescriptor?.minorNumber)\n .build();\n handler2.handleLoadChannel(channelDescriptor, result.sessionId, result.loadParams);\n console.log(\"handleLoadChannel: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccess(transactionId);\n }\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleLoadChannel: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleGenerateSessionId\") {\n try {\n const handler2 = this.mServerHandler;\n if (!handler2.handleGenerateSessionId) {\n console.log(\"handleGenerateSessionId: not implemented.\");\n KeplerPlayerServerTurboModule.transactionError(transactionId, \"handleGenerateSessionId not implemented.\");\n }\n else {\n const sessionId = handler2.handleGenerateSessionId();\n if (sessionId) {\n console.log(\"handleGenerateSessionId: Success, sessionId:\", JSON.stringify(sessionId));\n KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { playerSessionId: sessionId });\n }\n else {\n console.log(\"handleGenerateSessionId: handler returned null.\");\n KeplerPlayerServerTurboModule.transactionError(transactionId, \"handleGenerateSessionId returned null.\");\n }\n }\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleGenerateSessionId: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else if (resultCallback === \"handleGetSessionStatus\") {\n try {\n const handler2 = this.mServerHandler;\n if (!handler2.handleGetSessionStatus) {\n console.log(\"handleGetSessionStatus: not implemented.\");\n KeplerPlayerServerTurboModule.transactionError(transactionId, \"handleGetSessionStatus not implemented.\");\n }\n else {\n const statusResult = handler2.handleGetSessionStatus(result.sessionId);\n if (statusResult) {\n console.log(\"handleGetSessionStatus: Success.\");\n KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { playerSessionStatus: statusResult });\n }\n else {\n console.log(\"handleGetSessionStatus: session not found, returning success with null status.\");\n KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { playerSessionStatus: null });\n }\n }\n }\n catch (error) {\n let message = \"Unknown\";\n if (error instanceof Error) {\n message = error.message;\n }\n console.log(`handleGetSessionStatus: Error: ${message}`);\n KeplerPlayerServerTurboModule.transactionError(transactionId, message);\n }\n }\n else {\n console.log(\"Unknown handler event: \", resultCallback);\n }\n }\n /**\n * {@inheritDoc}\n */\n setHandler(_handler, _componentId) {\n this.mServerHandler = _handler;\n this.handleEvent = this.handleEvent.bind(this);\n KeplerPlayerServerTurboModule.setHandler(this.handleEvent, _componentId);\n }\n /**\n * {@inheritDoc}\n */\n updateBufferedRanges(_bufferedRanges, _sessionId) {\n if (!_sessionId) {\n _sessionId = { id: -1 };\n }\n const resultPromise = new Promise((resolve, reject) => {\n try {\n KeplerPlayerServerTurboModule.updateBufferedRanges(_bufferedRanges, _sessionId);\n resolve();\n }\n catch (error) {\n reject(error);\n }\n });\n return resultPromise;\n }\n /**\n * {@inheritDoc}\n */\n updateStatus(_states) {\n const resultPromise = new Promise((resolve, reject) => {\n try {\n KeplerPlayerServerTurboModule.updateStatus(_states);\n resolve();\n }\n catch (error) {\n reject(error);\n }\n });\n return resultPromise;\n }\n /**\n * {@inheritDoc}\n */\n addTrack(_newTrack, _sessionId) {\n if (!_sessionId) {\n _sessionId = { id: -1 };\n }\n const resultPromise = new Promise((resolve, reject) => {\n try {\n KeplerPlayerServerTurboModule.addTrack(_newTrack, _sessionId);\n resolve();\n }\n catch (error) {\n reject(error);\n }\n });\n return resultPromise;\n }\n /**\n * {@inheritDoc}\n */\n removeTrack(_removedTrack, _sessionId) {\n if (!_sessionId) {\n _sessionId = { id: -1 };\n }\n const resultPromise = new Promise((resolve, reject) => {\n try {\n KeplerPlayerServerTurboModule.removeTrack(_removedTrack, _sessionId);\n resolve();\n }\n catch (error) {\n reject(error);\n }\n });\n return resultPromise;\n }\n /**\n * {@inheritDoc}\n */\n sendMessage(_message, _sessionId) {\n if (!_sessionId) {\n _sessionId = { id: -1 };\n }\n if (_message === undefined) { // _message = null is allowed.\n return Promise.reject(\"undefined message passed.\");\n }\n const resultPromise = new Promise((resolve, reject) => {\n try {\n let _messageString = JSON.stringify(_message);\n KeplerPlayerServerTurboModule.sendMessage(_messageString, _sessionId);\n resolve();\n }\n catch (error) {\n reject(error);\n }\n });\n return resultPromise;\n }\n /**\n * {@inheritDoc}\n */\n sendError(_error, _sessionId) {\n if (!_sessionId) {\n _sessionId = { id: -1 };\n }\n const resultPromise = new Promise((resolve, reject) => {\n try {\n KeplerPlayerServerTurboModule.sendError(_error, _sessionId);\n resolve();\n }\n catch (error) {\n reject(error);\n }\n });\n return resultPromise;\n }\n}\n","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nmodule.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","import { TurboModuleRegistry } from '@amazon-devices/keplerscript-turbomodule-api';\n// prettier-ignore\nexport default TurboModuleRegistry.getEnforcing('KeplerPlayerServerTurboModule');\n","\"use strict\";\n/**\n * Copyright (c) 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.\n *\n * PROPRIETARY/CONFIDENTIAL\n *\n * Use is subject to license terms.\n *\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.TurboModuleRegistry = void 0;\nexports.TurboModuleRegistry = require(\"./turbomodules/TurboModuleRegistry\");\n","\"use strict\";\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its\n * affiliates. All rights reserved.\n *\n * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO\n * LICENSE TERMS.\n *\n * Amazon modifications are indicated by [amznmod_* comments].\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getEnforcing = exports.get = void 0;\nconst invariant_1 = require(\"../invariant/invariant\");\nconst turboModuleProxy = global.__turboModuleProxy;\nfunction requireModule(name) {\n if (turboModuleProxy != null) {\n return turboModuleProxy(name);\n }\n return null;\n}\nfunction get(name) {\n return requireModule(name);\n}\nexports.get = get;\nfunction getEnforcing(name) {\n const module = requireModule(name);\n (0, invariant_1.default)(module != null, `TurboModuleRegistry.getEnforcing(...): '${name}' could not be found. ` + 'Verify that a module by this name is registered in the native binary.');\n return module;\n}\nexports.getEnforcing = getEnforcing;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * Portions of this file are copyright (c) 2023 Amazon.com, Inc. or its\n * affiliates. All rights reserved.\n *\n * PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO\n * LICENSE TERMS.\n *\n * Amazon modifications are indicated by [amznmod_* comments].\n */\n/**\n * amznmod_tmapi: Migrated to typescript\n */\n'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\nconst NODE_ENV = process.env.NODE_ENV;\nconst invariant = (condition, format, ...extraArgs) => {\n if (NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n if (!condition) {\n let error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.');\n }\n else {\n let argIndex = 0;\n error = new Error(format.replace(/%s/g, () => (extraArgs[argIndex++])));\n error.name = 'Invariant Violation';\n }\n // @ts-ignore `framesToPop` is not part of Error type but something Meta (and maybe RN) uses.\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\nexports.default = invariant;\n","function _getPrototypeOf(t) {\n return module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _getPrototypeOf(t);\n}\nmodule.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var _typeof = require(\"./typeof.js\")[\"default\"];\nvar assertThisInitialized = require(\"./assertThisInitialized.js\");\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nmodule.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _assertThisInitialized(e) {\n if (void 0 === e) throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n return e;\n}\nmodule.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nmodule.exports = _inherits, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _setPrototypeOf(t, e) {\n return module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {\n return t.__proto__ = e, t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _setPrototypeOf(t, e);\n}\nmodule.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var getPrototypeOf = require(\"./getPrototypeOf.js\");\nvar setPrototypeOf = require(\"./setPrototypeOf.js\");\nvar isNativeFunction = require(\"./isNativeFunction.js\");\nvar construct = require(\"./construct.js\");\nfunction _wrapNativeSuper(t) {\n var r = \"function\" == typeof Map ? new Map() : void 0;\n return module.exports = _wrapNativeSuper = function _wrapNativeSuper(t) {\n if (null === t || !isNativeFunction(t)) return t;\n if (\"function\" != typeof t) throw new TypeError(\"Super expression must either be null or a function\");\n if (void 0 !== r) {\n if (r.has(t)) return r.get(t);\n r.set(t, Wrapper);\n }\n function Wrapper() {\n return construct(t, arguments, getPrototypeOf(this).constructor);\n }\n return Wrapper.prototype = Object.create(t.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: !1,\n writable: !0,\n configurable: !0\n }\n }), setPrototypeOf(Wrapper, t);\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports, _wrapNativeSuper(t);\n}\nmodule.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _isNativeFunction(t) {\n try {\n return -1 !== Function.toString.call(t).indexOf(\"[native code]\");\n } catch (n) {\n return \"function\" == typeof t;\n }\n}\nmodule.exports = _isNativeFunction, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","var isNativeReflectConstruct = require(\"./isNativeReflectConstruct.js\");\nvar setPrototypeOf = require(\"./setPrototypeOf.js\");\nfunction _construct(t, e, r) {\n if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);\n var o = [null];\n o.push.apply(o, e);\n var p = new (t.bind.apply(t, o))();\n return r && setPrototypeOf(p, r.prototype), p;\n}\nmodule.exports = _construct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","function _isNativeReflectConstruct() {\n try {\n var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n } catch (t) {}\n return (module.exports = _isNativeReflectConstruct = function _isNativeReflectConstruct() {\n return !!t;\n }, module.exports.__esModule = true, module.exports[\"default\"] = module.exports)();\n}\nmodule.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports[\"default\"] = module.exports;","\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./KeplerMediaTypes\"), exports);\n","\"use strict\";\n/*\n * Copyright 2024 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * AMAZON PROPRIETARY/CONFIDENTIAL\n *\n * You may not use this file except in compliance with the terms and\n * conditions set forth in the accompanying LICENSE.TXT file.\n *\n * THESE MATERIALS ARE PROVIDED ON AN \"AS IS\" BASIS. AMAZON SPECIFICALLY\n * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,\n * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.MediaId = void 0;\n/**\n * The MediaId type is designed for the purpose of uniquely identifying media\n * content within a catalog system.\n *\n * It encapsulates two critical pieces of information: the identifier and the\n * name of the catalog to which the media belongs.\n * For example:\n * contentId = \"tt0050083\", catalogName = \"imdb\" identifies a title from the\n * imdb database\n */\nclass MediaId {\n constructor(contentId, catalogName) {\n this.contentId = contentId;\n this.catalogName = catalogName;\n }\n /**\n * A string that serves as the unique identifier for the media within its\n * catalog.\n *\n * This ID is the primary key that differentiates one piece of media\n * from another within the same catalog, ensuring precise identification and\n * retrieval of media items.\n */\n contentId;\n /**\n * A string representing the name of the catalog where the media is stored.\n *\n * This property provides context to the contentId, specifying which catalog\n * or library the `contentId` refers to. This is particularly useful in systems\n * that interact with multiple media catalogs, as it helps prevent confusion\n * between identically named media in different catalogs.\n *\n * Use reverse dns name notation when possible to identify the catalog name.\n * For example, if you catalog provider is hosted by a service named\n * `com.provider.some.service`, then use `com.provider.some.service` for the\n * catalog name.\n *\n * If the media streaming app, streams content from its own catalog, the\n * catalog name should be the package id of the application, say for example,\n * `com.somevendor.mystreamingserviceplus`\n */\n catalogName;\n}\nexports.MediaId = MediaId;\n","/*\n * Copyright 2025 Amazon.com, Inc. or its affiliates. All rights reserved.\n *\n * AMAZON PROPRIETARY/CONFIDENTIAL\n *\n * You may not use this file except in compliance with the terms and\n * conditions set forth in the accompanying LICENSE.TXT file.\n *\n * THESE MATERIALS ARE PROVIDED ON AN \"AS IS\" BASIS. AMAZON SPECIFICALLY\n * DISCLAIMS, WITH RESPECT TO THESE MATERIALS, ALL WARRANTIES, EXPRESS,\n * IMPLIED, OR STATUTORY, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.\n */\n/**\n * All media elements have an associated error status,\n * which records the last error the element encountered since its resource\n * selection algorithm was last invoked.\n * Onre getting an error while perforning handle functions,\n * apps must create instance of `PlayerSessionError`\n * to reject the promise in corresponding `PlayerServerHandler` handle functions.\n *\n * For additional information, see\n * https://html.spec.whatwg.org/multipage/media.html#mediaerror.\n */\nexport class PlayerSessionError extends Error {\n /**\n * Initializes a new instance of `PlayerSessionError`.\n */\n constructor(message) {\n super(message);\n }\n}\n/**\n * Error occurs when the given argument is invalid.\n */\nexport class InvalidArgumentError extends PlayerSessionError {\n}\n"],"x_facebook_sources":[null,[{"names":["<global>"],"mappings":"AAA"}],[{"names":["<global>"],"mappings":"AAA"}],[{"names":["<global>","<anonymous>"],"mappings":"AAA;CCqB;CD6B;CCO;CDa"}],[{"names":["<global>","PlayerServerFactory","getOrMakeServer"],"mappings":"AAA;OCe;ICK;KDK;CDC"}],[{"names":["_interopRequireDefault","<global>"],"mappings":"AAA;CCI"}],[{"names":["_classCallCheck","<global>"],"mappings":"AAA;CCE"}],[{"names":["<global>","_defineProperties","_createClass"],"mappings":"AAA;ACC;CDK;AEC;CFI"}],[{"names":["<global>","toPropertyKey"],"mappings":"AAA;ACE;CDG"}],[{"names":["<global>","toPrimitive"],"mappings":"AAA;ACC;CDS"}],[{"names":["_typeof","<anonymous>","<global>"],"mappings":"AAA;wGCG;GDE,GC;GDE;CEC"}],[{"names":["<global>","PlayerServer","clearPositionListeners","sessionListeners.forEach$argument_0","sessionListeners.find$argument_0","sessionListeners.filter$argument_0","handleEvent","setInterval$argument_0","setHandler","updateBufferedRanges","Promise$argument_0","updateStatus","addTrack","removeTrack","sendMessage","sendError"],"mappings":"AAA;OCoB;ICG;qCCS;aDE;gDEK,+BF;gEGM,iCH;KDS;IKC;0CC8Z;iBDa;KLoJ;IOI;KPI;IQI;0CCI;SDQ;KRE;IUI;0CDC;SCQ;KVE;IWI;0CFI;SEQ;KXE;IYI;0CHI;SGQ;KZE;IaI;0CJO;SIS;KbE;IcI;0CLI;SKQ;KdE;CDC"}],[{"names":["asyncGeneratorStep","<global>","_asyncToGenerator","<anonymous>","Promise$argument_0","_next","_throw"],"mappings":"AAA;CCQ;ACC;SCC;uBCG;MCE;ODE;MEC;OFE;KDE;GDC;CDC"}],[{"names":["<global>"],"mappings":"AAA"}],[{"names":["<global>"],"mappings":"AAA"}],[{"names":["<global>","requireModule","get","getEnforcing"],"mappings":"AAA;ACmB;CDK;AEC;CFE;AGE;CHI"}],[{"names":["<global>","invariant","format.replace$argument_1"],"mappings":"AAA;kBC8B;oDCc,6BD;CDO"}],[{"names":["_getPrototypeOf","<anonymous>","<global>"],"mappings":"AAA;mGCC;GDE;CEC"}],[{"names":["<global>","_possibleConstructorReturn"],"mappings":"AAA;ACE;CDI"}],[{"names":["_assertThisInitialized","<global>"],"mappings":"AAA;CCG"}],[{"names":["<global>","_inherits"],"mappings":"AAA;ACC;CDW"}],[{"names":["_setPrototypeOf","<anonymous>","<global>"],"mappings":"AAA;mGCC;GDE;CEC"}],[{"names":["<global>","_wrapNativeSuper","Wrapper"],"mappings":"AAA;ACI;ICS;KDE;CDU"}],[{"names":["_isNativeFunction","<global>"],"mappings":"AAA;CCM"}],[{"names":["<global>","_construct"],"mappings":"AAA;ACE;CDM"}],[{"names":["_isNativeReflectConstruct","Reflect.construct$argument_2","<global>"],"mappings":"AAA;2ECE,cD;CEK"}],[{"names":["<global>","<anonymous>","desc.get"],"mappings":"AAA;0ECC;sCCI,2BD;CDG,KC;CDG;kDCC;CDE"}],[{"names":["<global>","MediaId","MediaId#constructor"],"mappings":"AAA;AC0B;ICC;KDG;CD4B"}],[{"names":["<global>","PlayerSessionError","constructor","InvalidArgumentError"],"mappings":"AAA;OCwB;ICI;KDE;CDC;OGI;CHC"}]],"x_google_ignoreList":[0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28],"names":["global","_majorVersionToNoVersionIdMap","globalThis","window","Object","keys","_$$_REQUIRE","_dependencyMap","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","IPlayerSessionState","IUnloadSyncStatus","PlayerServerFactory","_classCallCheck2","default","_createClass2","value","getOrMakeServer","server","PlayerServer","_default","_interopRequireDefault","e","__esModule","module","_classCallCheck","a","n","TypeError","_defineProperties","r","t","length","o","configurable","writable","_createClass","toPropertyKey","i","toPrimitive","Symbol","undefined","String","Number","_typeof","iterator","constructor","_KeplerPlayerServerTurboModule","mServerHandler","mPositionListenerMap","Map","clearPositionListeners","sessionId","listenerId","_sessionId","id","sessionListeners","clearInterval","delete","match","find","remainingListeners","filter","values","set","handleEvent","result","transactionId","_this","console","log","event","resultCallback","handleLoad","urlInfo","loadParams","KeplerPlayerServerTurboModule","transactionSuccess","error","message","Error","transactionError","handleUnload","handleSetVideoView","handle","handleClearVideoView","handleSetTextView","handleClearTextView","handlePlay","handlePause","handleSeek","timevalue","boolValue","handleSetMute","handleSetPlaybackRate","numberValue","handleSetVolume","handleSetActiveTrack","trackType","stringValue","position","handleGetCurrentPosition","transactionSuccessWithValue","positionValue","messageObj","JSON","parse","handleMessage","handleStartBufferedRangesUpdates","handleStopBufferedRangesUpdates","handleStartStatusUpdates","handleStopStatusUpdates","handleStartTrackUpdates","handleStopTrackUpdates","handleStartMessageUpdates","handleStopMessageUpdates","handleStartErrorUpdates","handleStopErrorUpdates","_unloadSyncStatus","INVALID","handleUnloadSync","unloadSyncStatus","interval","timerId","setInterval","_asyncToGenerator2","sessionPosition","updatePlaybackPosition","Math","floor","listners","existingListeners","concat","handler2","handleLoadContent","mediaId","handleLoadChannel","rawDescriptor","channelDescriptor","ChannelDescriptorBuilder","identifier","majorNumber","minorNumber","build","handleGenerateSessionId","stringify","playerSessionId","handleGetSessionStatus","statusResult","playerSessionStatus","setHandler","_handler","_componentId","bind","updateBufferedRanges","_bufferedRanges","resultPromise","Promise","resolve","reject","updateStatus","_states","addTrack","_newTrack","removeTrack","_removedTrack","sendMessage","_message","_messageString","sendError","_error","asyncGeneratorStep","c","u","done","then","_asyncToGenerator","arguments","apply","_next","_throw","TurboModuleRegistry","getEnforcing","require","turboModuleProxy","__turboModuleProxy","requireModule","name","NODE_ENV","invariant","condition","format","_len","extraArgs","Array","_key","argIndex","replace","framesToPop","_getPrototypeOf","setPrototypeOf","getPrototypeOf","__proto__","_possibleConstructorReturn","_assertThisInitialized","ReferenceError","_inherits","create","_setPrototypeOf","_wrapNativeSuper","has","Wrapper","_isNativeFunction","Function","toString","indexOf","_construct","Reflect","construct","push","p","_isNativeReflectConstruct","Boolean","valueOf","__createBinding","m","k","k2","desc","getOwnPropertyDescriptor","__exportStar","MediaId","contentId","catalogName","PlayerSessionError","_Error","_callSuper","_inherits2","_wrapNativeSuper2","InvalidArgumentError","_PlayerSessionError"],"mappings":";;ECAAA,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,CAACC,6BAA6B,CAAC,sBAAsB,CAAC,GAAC,sBAAsB;EACnFD,MAAM,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A,EAASL,kBAAkB;AAAA","x_amazon_bundleId":"f3e8c0c7b8f4c32d8744b3e994dd7a13554a5b535798304ef99bbd5ca8938eb2"}
@@ -1,22 +1,21 @@
1
- node_modules/@react-native/js-polyfills_0.72.1/console.js:c081be8f6c0109dd350f
2
- node_modules/@react-native/js-polyfills_0.72.1/error-guard.js:057b32c72f7f399723ba
3
- node_modules/@react-native/js-polyfills_0.72.1/Object.es8.js:a9bf7d37774d7198840b
4
- node_modules/@babel/runtime_7.28.4/helpers/interopRequireDefault.js:277a84013d7e1a1ace05
5
- node_modules/@babel/runtime_7.28.4/helpers/classCallCheck.js:cb664999166f9660a878
6
- node_modules/@babel/runtime_7.28.4/helpers/createClass.js:68819e29ebee24bb0e88
7
- node_modules/@babel/runtime_7.28.4/helpers/toPropertyKey.js:cbba112244d360ffda7a
8
- node_modules/@babel/runtime_7.28.4/helpers/toPrimitive.js:ad82d340d0b5dc5f0801
9
- node_modules/@babel/runtime_7.28.4/helpers/typeof.js:e08c69ed06cf526909e3
10
- node_modules/@babel/runtime_7.28.4/helpers/asyncToGenerator.js:77f56f33f638c3751138
1
+ node_modules/@babel/runtime_7.29.2/helpers/interopRequireDefault.js:d3b57c8ff490ba8c7c47
2
+ node_modules/@babel/runtime_7.29.2/helpers/classCallCheck.js:2bfb5e99807ec81b822f
3
+ node_modules/@babel/runtime_7.29.2/helpers/createClass.js:cc42269051bc9ff17a63
4
+ node_modules/@babel/runtime_7.29.2/helpers/toPropertyKey.js:7519d1b9ea0de500d604
5
+ node_modules/@babel/runtime_7.29.2/helpers/toPrimitive.js:6c47e04d255cdfb1533c
6
+ node_modules/@babel/runtime_7.29.2/helpers/typeof.js:7b6247ce00695d888c36
7
+ node_modules/@babel/runtime_7.29.2/helpers/asyncToGenerator.js:37d2d0df8e62891cc30d
11
8
  node_modules/@amzn/keplerscript-turbomodule-api_1.0.0/dist/index.js:8a35a86b7946c72e0207
12
9
  node_modules/@amzn/keplerscript-turbomodule-api_1.0.0/dist/turbomodules/TurboModuleRegistry.js:33d6b98d6e39f6b0a8f9
13
10
  node_modules/@amzn/keplerscript-turbomodule-api_1.0.0/dist/invariant/invariant.js:8d9475a2cb77b53e450d
14
- node_modules/@babel/runtime_7.28.4/helpers/possibleConstructorReturn.js:aab42168bb4cb23540ec
15
- node_modules/@babel/runtime_7.28.4/helpers/assertThisInitialized.js:0716ce96f45f287fb302
16
- node_modules/@babel/runtime_7.28.4/helpers/getPrototypeOf.js:ba9efe5c53f1d07f5c9d
17
- node_modules/@babel/runtime_7.28.4/helpers/inherits.js:9822a58ca7726d551fe0
18
- node_modules/@babel/runtime_7.28.4/helpers/setPrototypeOf.js:79c731bcf4b10abe8e4d
19
- node_modules/@babel/runtime_7.28.4/helpers/wrapNativeSuper.js:66be7ef871ad04671969
20
- node_modules/@babel/runtime_7.28.4/helpers/isNativeFunction.js:9cf198b81404c8b483b0
21
- node_modules/@babel/runtime_7.28.4/helpers/construct.js:20524c8783215c6329fe
22
- node_modules/@babel/runtime_7.28.4/helpers/isNativeReflectConstruct.js:df21df9938c0adbd59f1
11
+ node_modules/@babel/runtime_7.29.2/helpers/getPrototypeOf.js:9c829ff5032996ffdc8e
12
+ node_modules/@babel/runtime_7.29.2/helpers/possibleConstructorReturn.js:80a4a0ee188e065108c9
13
+ node_modules/@babel/runtime_7.29.2/helpers/assertThisInitialized.js:7a9699b26019ae7270f5
14
+ node_modules/@babel/runtime_7.29.2/helpers/inherits.js:3ebfecb28bc5857801a2
15
+ node_modules/@babel/runtime_7.29.2/helpers/setPrototypeOf.js:ea37d1dec222e5845b2b
16
+ node_modules/@babel/runtime_7.29.2/helpers/wrapNativeSuper.js:b510ad86a9e18c7a79b6
17
+ node_modules/@babel/runtime_7.29.2/helpers/isNativeFunction.js:74c2adc9de6e582a35f1
18
+ node_modules/@babel/runtime_7.29.2/helpers/construct.js:d66ad0c399283f558869
19
+ node_modules/@babel/runtime_7.29.2/helpers/isNativeReflectConstruct.js:22840e4117f5dbcb3b06
20
+ node_modules/@amzn/kepler-media-types_1.0.1/dist/index.js:1b24cc45338405ce5166
21
+ node_modules/@amzn/kepler-media-types_1.0.1/dist/KeplerMediaTypes.js:0c4cad144e25c42ad271
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export type { IHttpHeader, IMediaLocator, IPlayerSessionError, IPlayerSessionPosition, IPlayerSessionStatus, ITrackInfo, IPlayerSessionLoadParams, IPlayerSessionId, IPlayerSessionMediaInfo, IOobTextTrackInfo, ISubscription, ITextTrackKind, ITextTrackMode, ITimeRange, ITrackType, IViewHandle } from './turbo-modules/PlayerServerDataTypes/PlayerServerDataTypes';
2
2
  export { IPlayerSessionState, IUnloadSyncStatus } from './turbo-modules/PlayerServerDataTypes/PlayerServerDataTypes';
3
3
  export * from './turbo-modules/PlayerServerDataTypes/PlayerSessionError';
4
- export type { IPlayerServerHandler } from './turbo-modules/PlayerServerHandler';
4
+ export type { IPlayerServerHandler, IPlayerServerHandler2 } from './turbo-modules/PlayerServerHandler';
5
5
  export type { IPlayerServer } from './turbo-modules/IPlayerServer';
6
6
  export { PlayerServerFactory } from './turbo-modules/PlayerServerFactory';
7
7
  export type { IPlayerServerFactory } from './turbo-modules/PlayerServerFactory';
@@ -12,6 +12,7 @@
12
12
  * FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
13
13
  */
14
14
  import { IUnloadSyncStatus } from './PlayerServerDataTypes/PlayerServerDataTypes';
15
+ import { ChannelDescriptorBuilder } from '@amazon-devices/kepler-epg-provider';
15
16
  import KeplerPlayerServerTurboModule from './KeplerPlayerServerTurboModule';
16
17
  /**
17
18
  * @ignore
@@ -518,6 +519,112 @@ export class PlayerServer {
518
519
  KeplerPlayerServerTurboModule.transactionError(transactionId, message);
519
520
  }
520
521
  }
522
+ else if (resultCallback === "handleLoadContent") {
523
+ try {
524
+ const handler2 = this.mServerHandler;
525
+ if (!handler2.handleLoadContent) {
526
+ console.log("handleLoadContent: not implemented.");
527
+ KeplerPlayerServerTurboModule.transactionError(transactionId, "handleLoadContent not implemented.");
528
+ }
529
+ else {
530
+ handler2.handleLoadContent(result.mediaId, result.sessionId, result.loadParams);
531
+ console.log("handleLoadContent: Success.");
532
+ KeplerPlayerServerTurboModule.transactionSuccess(transactionId);
533
+ }
534
+ }
535
+ catch (error) {
536
+ let message = "Unknown";
537
+ if (error instanceof Error) {
538
+ message = error.message;
539
+ }
540
+ console.log(`handleLoadContent: Error: ${message}`);
541
+ KeplerPlayerServerTurboModule.transactionError(transactionId, message);
542
+ }
543
+ }
544
+ else if (resultCallback === "handleLoadChannel") {
545
+ try {
546
+ const handler2 = this.mServerHandler;
547
+ if (!handler2.handleLoadChannel) {
548
+ console.log("handleLoadChannel: not implemented.");
549
+ KeplerPlayerServerTurboModule.transactionError(transactionId, "handleLoadChannel not implemented.");
550
+ }
551
+ else {
552
+ const rawDescriptor = result.channelDescriptor;
553
+ const channelDescriptor = new ChannelDescriptorBuilder()
554
+ .identifier(rawDescriptor?.identifier)
555
+ .majorNumber(rawDescriptor?.majorNumber)
556
+ .minorNumber(rawDescriptor?.minorNumber)
557
+ .build();
558
+ handler2.handleLoadChannel(channelDescriptor, result.sessionId, result.loadParams);
559
+ console.log("handleLoadChannel: Success.");
560
+ KeplerPlayerServerTurboModule.transactionSuccess(transactionId);
561
+ }
562
+ }
563
+ catch (error) {
564
+ let message = "Unknown";
565
+ if (error instanceof Error) {
566
+ message = error.message;
567
+ }
568
+ console.log(`handleLoadChannel: Error: ${message}`);
569
+ KeplerPlayerServerTurboModule.transactionError(transactionId, message);
570
+ }
571
+ }
572
+ else if (resultCallback === "handleGenerateSessionId") {
573
+ try {
574
+ const handler2 = this.mServerHandler;
575
+ if (!handler2.handleGenerateSessionId) {
576
+ console.log("handleGenerateSessionId: not implemented.");
577
+ KeplerPlayerServerTurboModule.transactionError(transactionId, "handleGenerateSessionId not implemented.");
578
+ }
579
+ else {
580
+ const sessionId = handler2.handleGenerateSessionId();
581
+ if (sessionId) {
582
+ console.log("handleGenerateSessionId: Success, sessionId:", JSON.stringify(sessionId));
583
+ KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { playerSessionId: sessionId });
584
+ }
585
+ else {
586
+ console.log("handleGenerateSessionId: handler returned null.");
587
+ KeplerPlayerServerTurboModule.transactionError(transactionId, "handleGenerateSessionId returned null.");
588
+ }
589
+ }
590
+ }
591
+ catch (error) {
592
+ let message = "Unknown";
593
+ if (error instanceof Error) {
594
+ message = error.message;
595
+ }
596
+ console.log(`handleGenerateSessionId: Error: ${message}`);
597
+ KeplerPlayerServerTurboModule.transactionError(transactionId, message);
598
+ }
599
+ }
600
+ else if (resultCallback === "handleGetSessionStatus") {
601
+ try {
602
+ const handler2 = this.mServerHandler;
603
+ if (!handler2.handleGetSessionStatus) {
604
+ console.log("handleGetSessionStatus: not implemented.");
605
+ KeplerPlayerServerTurboModule.transactionError(transactionId, "handleGetSessionStatus not implemented.");
606
+ }
607
+ else {
608
+ const statusResult = handler2.handleGetSessionStatus(result.sessionId);
609
+ if (statusResult) {
610
+ console.log("handleGetSessionStatus: Success.");
611
+ KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { playerSessionStatus: statusResult });
612
+ }
613
+ else {
614
+ console.log("handleGetSessionStatus: session not found, returning success with null status.");
615
+ KeplerPlayerServerTurboModule.transactionSuccessWithValue(transactionId, { playerSessionStatus: null });
616
+ }
617
+ }
618
+ }
619
+ catch (error) {
620
+ let message = "Unknown";
621
+ if (error instanceof Error) {
622
+ message = error.message;
623
+ }
624
+ console.log(`handleGetSessionStatus: Error: ${message}`);
625
+ KeplerPlayerServerTurboModule.transactionError(transactionId, message);
626
+ }
627
+ }
521
628
  else {
522
629
  console.log("Unknown handler event: ", resultCallback);
523
630
  }
@@ -164,7 +164,11 @@ export declare enum IPlayerSessionState {
164
164
  /**
165
165
  * Playback has encountered an error
166
166
  */
167
- ERROR = "ERROR"
167
+ ERROR = "ERROR",
168
+ /**
169
+ * Media is ready to play immediately
170
+ */
171
+ READY = "READY"
168
172
  }
169
173
  /**
170
174
  * Represents the possible status values of synchronous unload of media playback.
@@ -44,6 +44,10 @@ export var IPlayerSessionState;
44
44
  * Playback has encountered an error
45
45
  */
46
46
  IPlayerSessionState["ERROR"] = "ERROR";
47
+ /**
48
+ * Media is ready to play immediately
49
+ */
50
+ IPlayerSessionState["READY"] = "READY";
47
51
  })(IPlayerSessionState || (IPlayerSessionState = {}));
48
52
  /**
49
53
  * Represents the possible status values of synchronous unload of media playback.
@@ -1,4 +1,6 @@
1
1
  import { IPlayerSessionId, IPlayerSessionLoadParams, IPlayerSessionMediaInfo, ITrackType, IViewHandle } from './PlayerServerDataTypes';
2
+ import { IChannelDescriptor } from '@amazon-devices/kepler-epg-provider';
3
+ import { MediaId } from '@amazon-devices/kepler-media-types';
2
4
  /**
3
5
  * Internal use-only interface for IPlayerServerHandler.
4
6
  */
@@ -14,4 +16,6 @@ export interface PlayerEventHandlerParams {
14
16
  stringValue?: string;
15
17
  trackType?: ITrackType;
16
18
  customData?: string;
19
+ mediaId?: MediaId;
20
+ channelDescriptor?: IChannelDescriptor;
17
21
  }
@@ -1,4 +1,6 @@
1
- import { IPlayerSessionId, IPlayerSessionLoadParams, IPlayerSessionMediaInfo, IViewHandle, ITrackType, IUnloadSyncStatus } from './PlayerServerDataTypes/PlayerServerDataTypes';
1
+ import { IPlayerSessionId, IPlayerSessionLoadParams, IPlayerSessionMediaInfo, IPlayerSessionStatus, IViewHandle, ITrackType, IUnloadSyncStatus } from './PlayerServerDataTypes/PlayerServerDataTypes';
2
+ import { IChannelDescriptor } from '@amazon-devices/kepler-epg-provider';
3
+ import { MediaId } from '@amazon-devices/kepler-media-types';
2
4
  /**
3
5
  * An interface for a handler that provides the service logic of the PlayerServer.
4
6
  */
@@ -372,3 +374,45 @@ export interface IPlayerServerHandler {
372
374
  */
373
375
  handleStopErrorUpdates: (sessionId?: IPlayerSessionId) => void;
374
376
  }
377
+ /**
378
+ * An extension of IPlayerServerHandler adding support for new load APIs,
379
+ * server-side session ID generation, and session status queries.
380
+ */
381
+ export interface IPlayerServerHandler2 extends IPlayerServerHandler {
382
+ /**
383
+ * Handles a request to load content by MediaId. This call is received when apps call
384
+ * `IPlayerClient.loadContent` from interactive component.
385
+ *
386
+ * @param mediaId The MediaId object containing contentId and catalogName to identify the content.
387
+ * @param sessionId The ID of the media session to target for loading content,
388
+ * obtained from generateSessionId().
389
+ * @param loadParams Optional params to load content including start position.
390
+ */
391
+ handleLoadContent: (mediaId: MediaId, sessionId: IPlayerSessionId, loadParams?: IPlayerSessionLoadParams) => void;
392
+ /**
393
+ * Handles a request to load content by channel. This call is received when apps call
394
+ * `IPlayerClient.loadChannel` from interactive component.
395
+ *
396
+ * @param channelDescriptor The channel descriptor containing channel identifier, major number, and minor number.
397
+ * @param sessionId The ID of the media session to target for loading content,
398
+ * obtained from generateSessionId().
399
+ * @param loadParams Optional params to load channel.
400
+ */
401
+ handleLoadChannel: (channelDescriptor: IChannelDescriptor, sessionId: IPlayerSessionId, loadParams?: IPlayerSessionLoadParams) => void;
402
+ /**
403
+ * Generates a unique session ID on client request.
404
+ *
405
+ * Ensures session ID uniqueness when different interactive components
406
+ * access the same service.
407
+ *
408
+ * @returns A new session ID, or null if the session ID cannot be created.
409
+ */
410
+ handleGenerateSessionId: () => IPlayerSessionId | null;
411
+ /**
412
+ * Handles a request to get the current status of a session.
413
+ *
414
+ * @param sessionId The session ID to query.
415
+ * @returns The current session status, or null if the session does not exist.
416
+ */
417
+ handleGetSessionStatus: (sessionId: IPlayerSessionId) => IPlayerSessionStatus | null;
418
+ }
@@ -15,6 +15,12 @@
15
15
  "2.2.6": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
16
16
  "2.2.7": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
17
17
  "2.2.8": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
18
- "2.2.9": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2"
18
+ "2.2.9": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
19
+ "2.2.10": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
20
+ "2.2.11": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
21
+ "2.2.12": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
22
+ "2.2.13": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
23
+ "2.2.14": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_2",
24
+ "2.3.0": "/com.amazon.kepler.kepler_player_server_2@IKeplerPlayerServer_3"
19
25
  }
20
26
  }
package/package.json CHANGED
@@ -1 +1,60 @@
1
- {"name": "@amazon-devices/kepler-player-server", "version": "2.2.9", "main": "dist/index.js", "types": "dist/index.d.ts", "files": ["dist", "react-native.config.js", "kepler-compatibility.json", "SystemModules", "SystemBundles", "kepler-transformed-package-info.json"], "scripts": {"clean": "rm -rf node_modules buildinfo.json dist bvm $(readlink -f build)", "docgen": "rm -rf docs && npx typedoc --logLevel Verbose --pretty false && zip server_docs.zip -r docs", "kepler-codegen": "keplerscript-turbomodule-api codegen src/turbo-modules/KeplerPlayerServerTurboModule.ts -o kepler/turbo-modules/ --new -s KeplerPlayerServerTurboModule && npm-run-all clean-codegen-backups", "clean-codegen-backups": "rm -rf kepler/turbo-modules/KeplerPlayerServerTurboModule.cpp.bak kepler/turbo-modules/KeplerPlayerServerTurboModule.h.bak", "test": "jest --colors", "lint": "eslint src test --ext .ts,.tsx", "lint:fix": "eslint src test --ext .ts,.tsx --fix", "build:js": "tsc -p tsconfig.json", "build": "npm-run-all build:js && [ -n \"$SKIP_TESTS\" ] || npm test", "build:debug": "npm-run-all build:js", "prepublishOnly": "KEPLER_NPM_COMMAND=npm-pretty-much react-native build-system-bundle-kepler"}, "dependencies": {"@amazon-devices/keplerscript-turbomodule-api": "^1.0.0"}, "devDependencies": {"@babel/runtime": "^7.7.7", "@react-native/eslint-config": "0.72.2", "@types/jest": "^28.0.0", "@typescript-eslint/eslint-plugin": "^5.30.0", "babel-jest": "^28.0.0", "eslint": "^8.12.0", "jest": "^28.0.0", "metro-react-native-babel-preset": "^0.76.5", "npm-run-all": "^4.1.5", "prettier": "^2.6.2", "ts-jest": "^28.0.0", "typescript": "4.8.4", "@amazon-devices/kepler-cli-platform": "^0", "@react-native-community/cli": "^11.2.0"}, "kepler": {"toolchain": "clang", "projectType": "turbomodule", "targets": ["tv"], "features": ["vega"]}, "license": "See license in LICENSE"}
1
+ {
2
+ "name": "@amazon-devices/kepler-player-server",
3
+ "version": "2.3.0-rn-83",
4
+ "main": "dist/index.js",
5
+ "types": "dist/index.d.ts",
6
+ "files": [
7
+ "dist",
8
+ "react-native.config.js",
9
+ "kepler-compatibility.json",
10
+ "SystemModules",
11
+ "SystemBundles",
12
+ "kepler-transformed-package-info.json"
13
+ ],
14
+ "scripts": {
15
+ "clean": "rm -rf node_modules buildinfo.json dist bvm $(readlink -f build)",
16
+ "docs": "typedocked",
17
+ "kepler-codegen": "keplerscript-turbomodule-api codegen src/turbo-modules/KeplerPlayerServerTurboModule.ts -o kepler/turbo-modules/ --new -s KeplerPlayerServerTurboModule && npm-run-all clean-codegen-backups",
18
+ "clean-codegen-backups": "rm -rf kepler/turbo-modules/KeplerPlayerServerTurboModule.cpp.bak kepler/turbo-modules/KeplerPlayerServerTurboModule.h.bak",
19
+ "test": "jest --colors",
20
+ "lint": "eslint src test --ext .ts,.tsx",
21
+ "lint:fix": "eslint src test --ext .ts,.tsx --fix",
22
+ "build:js": "tsc -p tsconfig.json",
23
+ "build": "npm-run-all build:js && [ -n \"$SKIP_TESTS\" ] || npm test",
24
+ "build:debug": "npm-run-all build:js",
25
+ "prepublishOnly": "KEPLER_NPM_COMMAND=npm-pretty-much react-native build-system-bundle-kepler"
26
+ },
27
+ "dependencies": {
28
+ "@amazon-devices/keplerscript-turbomodule-api": "^1.0.0",
29
+ "@amazon-devices/kepler-media-types": "^1.0.0",
30
+ "@amazon-devices/kepler-epg-provider": "^1.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@amazon-devices/typedocked": "*",
34
+ "@babel/runtime": "^7.7.7",
35
+ "@react-native/eslint-config": "0.72.2",
36
+ "@types/jest": "^28.0.0",
37
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
38
+ "babel-jest": "^28.0.0",
39
+ "eslint": "^8.12.0",
40
+ "jest": "^28.0.0",
41
+ "metro-react-native-babel-preset": "^0.76.5",
42
+ "npm-run-all": "^4.1.5",
43
+ "prettier": "^2.6.2",
44
+ "ts-jest": "^28.0.0",
45
+ "typescript": "4.8.4",
46
+ "@amazon-devices/kepler-cli-platform": "^0",
47
+ "@react-native-community/cli": "^11.2.0"
48
+ },
49
+ "kepler": {
50
+ "toolchain": "clang",
51
+ "projectType": "turbomodule",
52
+ "targets": [
53
+ "tv"
54
+ ],
55
+ "features": [
56
+ "vega"
57
+ ]
58
+ },
59
+ "license": "See license in LICENSE"
60
+ }