Quick Start
Minimal Example
<!DOCTYPE html>
<html>
<head>
<style>
body { margin: 0; overflow: hidden; }
#video-container { width: 100vw; height: 100vh; }
</style>
</head>
<body>
<div id="video-container"></div>
<script type="module">
import { StreamPixelApplication } from 'streampixelsdk';
const { appStream, pixelStreaming, queueHandler, UIControl, reconnectStream } =
await StreamPixelApplication({
appId: 'YOUR_PROJECT_ID', // From Streampixel dashboard
AutoConnect: true,
});
// Mount the video when the stream is ready
appStream.onVideoInitialized = () => {
document.getElementById('video-container').appendChild(appStream.rootElement);
};
</script>
</body>
</html>What StreamPixelApplication Returns
StreamPixelApplication ReturnsObject
Purpose
Running the Example App
Next Steps
Initialization and ConfigurationConnection LifecycleCommunicating with Unreal EngineLast updated