đŸŽĨ GWP Multiplexing Demo

Demonstrate multiple cameras over a single WebSocket connection

Connection Settings

Camera GUIDs

Note: Leave camera GUIDs empty to skip those tiles. The demo will only start players for cameras with valid GUIDs.

📊 Statistics

WebSocket Connections
0
Active Players
0
Streaming Cameras
0
GWP Version
-

â„šī¸ How Multiplexing Works

🔧 Code Pattern

// 1. Create shared Media Gateway service
const service = await gwp.buildMediaGatewayService(
  mediaGatewayUrl,
  getTokenFunction
);

// 2. Build individual players
const player1 = gwp.buildPlayer(container1);
const player2 = gwp.buildPlayer(container2);

// 3. Start players with the shared service
await player1.startWithService(cameraGuid1, service);
await player2.startWithService(cameraGuid2, service);

// 4. Control each player independently
player1.playLive();
player2.playLive();