Skip to main content
Skip table of contents

Receive Data in Unreal App (receiver) from Webpage (sender)

In this guide, you will learn how to receive and handle data sent from a webpage inside your Unreal Engine (UE) application.

Follow the steps below:

Step 1. Enable Pixel Streaming Plugin

Open your Unreal Engine project and enable the Pixel Streaming plugin.

Refer to the guide How to Enable Pixel Streaming Plugin

Step 2. Add the Pixel Streaming Input Component

Once the plugin is enabled, add the Pixel Streaming Input component to any Actor Blueprint.

Best Practice: For better organization and scalability, add this component to your GameMode Blueprint, or create a dedicated messaging handler Actor that exists in every level.

image-20250728-021602.png

Figure 1. Add the Pixel Streaming Input Component

Step 3. Use the "On Input Event"

After adding the Pixel Streaming Input component, a new event becomes available: On Input Event.

You can use it by:

  • Selecting the Pixel Streaming Input component and finding the event under the Details Panel,
    or

  • Right-clicking in the Blueprint Event Graph and searching for "On Input Event"

image-20250728-021815.png

Figure 2. Use the "On Input Event”

Step 4. Handle and Parse Incoming Messages

The On Input Event is triggered when a message is received from the frontend.
The event passes a string containing the message, which you can parse to trigger actions in UE.

In the below you can get multiple examples on how you can handle and parse incoming messages.


Example 1: Debugging with Print String

Use case: Display incoming messages for debugging.

Frontend sends:
CODE
{
  "Player123"
}

In UE:
  • Use Print String to display the incoming message.

image-20250728-021942.png

Figure 3. Blueprint to Print Message on the Screen

image-20250728-022151.png

Figure 4. Printing message on the screen

Example 2: Adjusting Stream Quality

Use case: Change stream quality dynamically.

From the previous sample “player name” is replaced with any arbitrary name (e.g., "Orange" or "Apple"). After receiving the value from the JSON message, the following console command is executed to adjust stream quality: PixelStreaming.Encoder.TargetBitrate <value>

Frontend sends:
CODE
{ "Quality": "Apple" }

image-20250811-040821.png

Figure 5. Adjusting stream quality in Blueprint

  • "Apple" → bitrate = 100 (low quality)

  • "Orange" → bitrate = 100000 (high quality)

image-20250811-041159.png

Figure 6. Sending Message Apple Sets Bitrate to 100 resulting in low quality pixelated stream

image-20250811-041449.png

Figure 7. Sending Message Orange Sets Bitrate to 100000 resulting in high quality stream

Example 3: Pause & Resume the Game

Use case: Temporarily halt gameplay for UI interactions.

Frontend sends:
CODE
{ "Teleport": "Pause" }

or

CODE
{ "Teleport": "Resume" }

  • "Pause"SetGamePaused = true

  • "Resume"SetGamePaused = false

To Pause and Resume the game, in front end two buttons are made which send messages {“Teleport”:Pause”} and {“Teleport”:”Resume”} . When the buttons are pressed Built-in unreal engine node SetGamePaused with values true for pausing and false for resuming are called.

image-20250811-041937.png

Figure 8. Blueprint to Pause or Resume the Game While Streaming

Important: Enable "Tick Even When Paused" in Class Defaults, otherwise the game may not respond when paused.

image-20250811-042618.png

Figure 9. Tick Even When Paused

Video: When pressing the buttons game gets paused and Resumed.
https://youtu.be/jxykkiXb5VU

Testing Without Uploads – Remote Unreal Editor Streaming (Eagle 3D)

You can test message sending/receiving directly in Unreal Editor without packaging/uploading.

Steps:

  1. Open Eagle 3D Streaming Control Panel → Select an uploaded app.

image-20250730-144706.png

Figure 10. Select any App

  1. Create a New Config : Refers to Create a New Config

  1. Enable Remote Control Unreal Editor : Enable Remote Control Unreal Editor


  1. Copy the stream link from your config.


  1. In your frontend code, replace the iframe source with this link.


image-20250731-152056.png

Figure 10. Replace the Source

  1. Open the frontend → Copy the session link shown on-screen.

image-20250731-152727.png

Figure 11. Remote Control Unreal Editor

Refreshing this page will invalidate your link


  1. In UE, open Pixel Streaming Menu → Enable Use Remote Signaling Server → Paste the link → Choose Full Editor or Level Editor.

image-20250730-150003.png

Figure 12. Use Remote Signaling Server


image-20250730-150108.png

Figure 13. Paste the Address and Choose Streamer Editor

  1. Now you can test sending & receiving messages in real time without new builds.

image-20250731-153450.png

Figure 14. Debugging

Troubleshooting Common Issues

If Unreal isn’t detecting messages:

1. Pixel Streaming Input Component

Ensure the component is added to the correct Blueprint.

2. Actor Presence

Ensure the Actor that owns the component is placed in the level and not being unloaded.

Note: If you're using a messaging handler Blueprint in the level, ensure it's not getting culled or deactivated due to distance from the camera or player.

3. Initialization Timing

Pixel streaming components may not be ready instantly at launch. Wait a short time before sending messages, especially during level load.

4. Component Validity

Check whether the component is valid:

Use the Is Valid node : in the following sample pixel streaming input component is added to game mode, in a separate blueprint (can be any blueprint) we get a reference of game mode then get “pixel streaming input” component by class and check whether it is valid or not and print the results

image-20250728-141002.png

Figure 15. Blueprint to Check Whether Component is Valid or Not

(For debugging) Print the component’s name on Tick to ensure it's initialized.

Remove Tick prints after debugging to avoid performance issues.

In this example we are simply printing the name of Pixel Streaming Input component on tick in game mode blueprint

image-20250728-141028.png

Figure 16. printing the name of Pixel Streaming Input component on tick in game mode blueprint

When playing the game (play in editor or play a packaged game with packaging mode set to development or debug) you should see a similar print string happen on screen

image-20250728-141106.png

Figure 17. Printing Message

Absence of this string means your Pixel Streaming Input component is not available.(if you need to only see one line of text on screen, in print string node you can set the duration to 0.0 seconds)

5. JSON Format

Ensure that the message you send is a valid JSON string. Improper formatting will cause parsing to fail silently.

 


Need help?

🛠️ Contact our Support Team

💬 Join the Community on Discord

🆓 Get Started for free

 

Follow us on:

Facebook | GitHub | LinkedIn | YouTube

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.