Navigation
API > API/Plugins > API/Plugins/PixelStreaming2
References
| Module | PixelStreaming2 |
| Header | /Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2/Public/IPixelStreaming2Streamer.h |
| Include | #include "IPixelStreaming2Streamer.h" |
Syntax
class IPixelStreaming2Streamer
Remarks
The IPixelStreaming2Streamer interface provides functionality for managing a Pixel Streaming session. This class manages the core operations of streaming, such as setting the framerate, handling video input, and interacting with the signalling server. It also allows for control over connected players and sending data to them.
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Force a key frame to be sent. | ||
| void | FreezeStream
(
UTexture2D* Texture |
Freeze Pixel Streaming. | |
| bool | GetConfigOption
(
const FName& OptionName, |
Get the Gonfigerartion value for a specific option. | |
| TArray< FString > | Get the ids of the connected players. | ||
| FString | GetId () |
Get this streamer's ID. | |
| TWeakPtr< IPixelStreaming2InputHandler > | Get the streamer's input handler. | ||
| IPixelStreaming2AudioSink * | GetPeerAudioSink
(
FString PlayerId |
Get the audio sink associated with a specific peer/player. | |
| IPixelStreaming2VideoSink * | GetPeerVideoSink
(
FString PlayerId |
Get the video sink associated with a specific peer/player. | |
| FString | Get the Signalling Server URL. | ||
| int32 | GetStreamFPS () |
Get the Stream FPS. | |
| IPixelStreaming2AudioSink * | Get an audio sink that has no peers/players listening to it. | ||
| IPixelStreaming2VideoSink * | Get a video sink that has no peers/players watching it. | ||
| TWeakPtr< IPixelStreaming2VideoProducer > | Get the Video Input object. | ||
| bool | Check if this streamer is currently connected to the signalling mechanism (e.g. websocket for signalling server). | ||
| bool | IsStreaming () |
Get the current state of this streamer. | |
| void | KickPlayer
(
FString PlayerId |
Kick a player by player id. | |
| FPreConnectionEvent & | A getter for the OnPreConnection event. Intent is for users to call IPixelStreaming2Module::Get().FindStreamer(ID)->OnPreConnection().AddXXX. | ||
| FStreamingStartedEvent & | A getter for the OnStreamingStarted event. Intent is for users to call IPixelStreaming2Module::Get().FindStreamer(ID)->OnStreamingStarted().AddXXX. | ||
| FStreamingStoppedEvent & | A getter for the OnStreamingStopped event. Intent is for users to call IPixelStreaming2Module::Get().FindStreamer(ID)->OnStreamingStopped().AddXXX. | ||
| void | PlayerRequestsBitrate
(
FString PlayerId, |
Set the minimum and maximum bitrate for the streamer. | |
| void | Refresh connection with minimum and maximum bitrate. | ||
| void | SendAllPlayersMessage
(
FString MessageType, |
Send all players connected to this streamer a message. | |
| void | SendFileData
(
const TArray64< uint8 >& ByteData, |
Send a file to the browser where we are sending video. | |
| void | SendPlayerMessage
(
FString PlayerId, |
Send all players connected to this streamer a message. | |
| void | SetConfigOption
(
const FName& OptionName, |
Allows sending arbitrary configuration options during initial connection. | |
| void | SetCoupleFramerate
(
bool bCouple |
Setting this to true will cause the streamer to ignore the FPS value and instead push out frames as they are submitted from the video input. | |
| void | SetSignallingServerURL
(
const FString& InSignallingServerURL |
Set the Signalling Server URL. | |
| void | SetStreamFPS
(
int32 InFramesPerSecond |
Set the Stream FPS. | |
| void | SetVideoProducer
(
TSharedPtr< IPixelStreaming2VideoProducer > Input |
Set the Video Input object. | |
| void | Start streaming this streamer. | ||
| void | Stop this streamer from streaming. | ||
| void | Unfreeze Pixel Streaming. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPreConnectionEvent | Event fired just before the streamer begins connecting to signalling. | ||
| FStreamingStartedEvent | Event fired when the streamer has connected to a signalling server and is ready for peers. | ||
| FStreamingStoppedEvent | Event fired when the streamer has disconnected from a signalling server and has stopped streaming. |