Methods
getOrMakeServer()
getOrMakeServer():IPlayerServer
Get or make an instance of kepler player server.
Returns
IPlayerServer
A kepler player server instance.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Component that provides a kepler player server instance.
IPlayerServer
Get or make an instance of kepler player server.
IPlayerServer
A kepler player server instance.
// Sample usage
import {PlayerServerFactory, IPlayerServer} from '@amazon-devices/kepler-player-server';
const playerServerRef = useRef<IPlayerClient | null>(null);
const playerServerFactory = new PlayerServerFactory();
if (playerServerRef.current == null) {
playerServerRef.current = playerServerFactory.getOrMakeServer();
}
Was this page helpful?
Supported devices
