Navigation
API > API/Plugins > API/Plugins/PixelStreaming2Input > API/Plugins/PixelStreaming2Input/PIXELSTREAMING2IPixelStreaming2I-
References
| Module | PixelStreaming2Input |
| Header | /Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2Input/Public/IPixelStreaming2InputHandler.h |
| Include | #include "IPixelStreaming2InputHandler.h" |
void SetCommandHandler
(
const FString & CommandName,
const CommandHandlerFn & Handler
)
Remarks
Register a custom function to execute when command JSON is received over the data channel: "{ type: "Command", YourCommand: YourCommandValue }". Note: You can also override the default Pixel Streaming command handlers by setting handlers with the same name as those already used, e.g. "Stat.FPS".
Parameters
| Name | Description |
|---|---|
| CommandName | The name of the command to handle. This corresponds to the key in the JSON message and is used to identify the command. |
| Handler | The function that will be executed when the command is received. |