Overview
The frontend communicates with Unreal via the Pixel Streaming messaging system.- Sending → Unreal: You can send json message to your unreal engine application.
- Receiving ← Unreal: You can listen for responses and messages coming from the Unreal side.
- Via URL – pass a JSON payload in the launch URL (one-time, no frontend code required).
- Sometimes you only need to send a message once, at the very start of the application, and not for the rest of the session.
- To avoid building a custom frontend just for this, Streampixel lets you include a JSON message directly in the stream’s URL.
- This is useful for one-time configuration, like setting the default map, graphics quality, or toggling UI elements when the session launches.
- Via Web SDK / Iframe – send JSON interactively at any point after the stream has launched.
- If you need ongoing control — sending messages while the app is running — use our Web SDK or Iframe API.
- This method supports unlimited, interactive communication. You can send commands in response to button clicks, toggle HUD elements, update camera views, or push live analytics at any point during the session.
Sending messages to Unreal
Option A: Via URL
If you only need to send a message once at the start of the application, you don’t need to create a custom frontend. You can simply include the JSON data as parameters in your stream URL.URL structure
PROJECT_ID→ your project identifier.?→ indicates the start of parameters.fieldname→ the JSON key.value→ the data you want Unreal to receive.
Examples
Single fieldURL Generator tool
To make this easier, you can use our helper tool: https://urlgenerator.streampixel.io/ The tool automatically encodes special characters and generates a ready-to-use URL. No data is stored. Its purpose is to help you understand how URL encoding works. Even if you choose not to use the tool and create the URL manually, it will still work as long as you apply proper encoding.Option B: Via Iframe or Web SDK
If you need to send messages while the app is running, use the Streampixel Web SDK or Iframe API. This gives you full interactivity and unlimited control.- For Iframe integration refer to Sending messages.
- For Web SDK integration refer to Talk to your Unreal app. The call has two names, Epic’s and the SDK’s own. They are the same call: use whichever you know.
false when the message could not be sent, for example before the video is up or while the connection to the application is down. Nothing is queued. true means the message left your page; it is not a receipt from your application.
Receiving messages from Unreal
When the Unreal app sends a message to the frontend, your frontend must register handlers/listeners to process it. Both the Iframe API and the Web SDK support this.- For Iframe integration refer to Listening for messages.
- For Web SDK integration refer to Talk to your Unreal app. Again there are two names for the same messages:
Next steps
Unreal side - sending and receiving JSON
Set up the Unreal blueprints that consume these messages.
Frontend and application communication
See the iframe postMessage patterns in detail.
Talk to your Unreal app (Web SDK)
Send and receive from a Web SDK page, with Epic’s names or the SDK’s own.