PixelStreaming Send Message Maximum Size

Hi everyone,

I’ve encountered an issue with Pixel Streaming and Unreal Engine that I’d like to discuss in the community forum.

I’ve developed an application using Pixel Streaming and Unreal Engine, with React on the frontend. When a button is clicked on the frontend, I send JSON data to Unreal Engine using “emitUIInteraction”. So far, everything works fine and normal. However, within “emitUIInteraction”, there should be a restriction, like a max-size limit, for the data I send because when the data size increases, it fails to reach Unreal Engine. I don’t see any error or warning messages in the console. Here’s my estimation: the data I’m trying to send is a GeoJSON GIS data. It works smoothly when I send 35 or 40 objects within the “features” but fails to transmit when I send 41 objects (that number is only example, the important thing is length of string). Initially, I suspected the data, but upon inspection, the data seems fine. I can view it in geojson.io, and it doesn’t contain any characters other than English ones.

While researching, I came across a parameter in Pixel Streaming 4.27 called “PixelStreamingReceiveStringMaxLength,” which seems to restrict the length of the message to be sent. However, I’m using UE5.3, and I couldn’t find this parameter in Pixel Streaming 5.3. I found a variable on the WebRTC side called “MaxMessageSize,” but I can’t set my own limit on it. I’m not sure if this variable is related to the issue. In short, how can I increase this limit when trying to send a 7MB (or higher) etc. string using “emitUIInteraction”?

UPDATE* I tried to update max_message_size from Unreal Engine Source Code in WebRTC ThirdParty and built UE again, it didnt solve yet. How can I increase Request Length value?

Hey, quick question. I’ve been looking for a solution to getting emitUIInteraction to work in the first place. It seems to be returning true on the front-end but the UE is not getting the data. Response doesn’t work either and the Player Controller for pixel streaming input seems to be invalid. Hope you have any idea what this means.

What is the size of the data you are trying to send with emitUIInteraction, in kilobytes, and what is the total character length (string length) when serialized with JSON.stringify?