Navigation
API > API/Plugins > API/Plugins/PixelStreaming > API/Plugins/PixelStreaming/IPixelStreamingModule
Deprecated * RegisterMessage(...) is no longer needed. Just add your message to the protocol using FPixelStreamingInputProtocol::Direction.Add(XXX);, and then add the handler to the Streamer's input handler
References
| Module | PixelStreaming |
| Header | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/IPixelStreamingModule.h |
| Include | #include "IPixelStreamingModule.h" |
void RegisterMessage
&40;
EPixelStreamingMessageDirection MessageDirection,
const FString & MessageType,
FPixelStreamingInputMessage Message,
const TFunction< void(FMemoryReader)> & Handler
&41;
Remarks
Register a new message that peers can send and pixel streaming can receive.
Parameters
| Name | Description |
|---|---|
| MessageDirection | The direction the message will travel. eg Streamer->Player or Player->Streamer |
| MessageType | The human readable identifier (eg "TouchStarted") |
| Message | The object used to define the structure of the message |
| Handler | The handler for this message. This function will be executed whenever the corresponding message is received |