Pixel streaming open url on client

There is a way to open a URL on client while pixel streaming?
The scenario is that I have a client connected to the server on pixel streaming, then when client touch a actor in the scene, we will launch a URL on his browser. If I implement this in the usual way, with LaunchURL node on the component, then the URL is launched on server. There is a way to launch it on client?

1 Like

Hello, any updates on this one?

Hi there!

Apologies for the delay in responding to your question.

If you were interested in sending commands from UE back to the player page, we actually have some documentation on this, which can be found here:
https://docs.unrealengine.com/5.3/en-US/interacting-with-the-pixel-streaming-system-in-unreal-engine/

Once you’ve set up your Send Pixel Streaming Response as shown above, you’ll need to modify your player.ts file in your Pixel Streaming Infrastructure, adding a code snippet like this:

stream.addResponseEventListener('LinkListener', (response : string) => {
    let json = JSON.parse(response);
    if(json.link) {
        window.open(json.link, "_blank");
    }
})

I hope this helps get you on the right track!

2 Likes