Navigation
API > API/Plugins > API/Plugins/PixelStreaming
References
| Module | PixelStreaming |
| Header | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/IPixelStreamingStreamer.h |
| Include | #include "IPixelStreamingStreamer.h" |
Syntax
class IPixelStreamingStreamer
Variables
| Type | Name | Description | |
|---|---|---|---|
| FOnInputReceived | OnInputReceived |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< IPixelStreamingAudioInput > | Create an audio input that can be used to push audio into the Pixel Streaming mix. Note: Requires launching with -PixelStreamingExperimentalAudioInput. | ||
| void | Force a key frame to be sent. | ||
| void | FreezeStream
(
UTexture2D* Texture |
Freeze Pixel Streaming. | |
| bool | GetConfigOption
(
const FName& OptionName, |
||
| TArray< FPixelStreamingPlayerId > | Get the connected players. | ||
| FString | GetId () |
Get this streamer's ID. | |
| TWeakPtr< IPixelStreamingInputHandler > | Get the streamer's input handler. | ||
| IPixelStreamingAudioSink * | GetPeerAudioSink
(
FPixelStreamingPlayerId PlayerId |
Get the audio sink associated with a specific peer/player. | |
| TWeakPtr< IPixelStreamingSignallingConnection > | Get the connection to the signalling server. | ||
| TWeakPtr< IPixelStreamingSignallingConnectionObserver > | Get the Signalling Connection Observer object. | ||
| FString | Get the Signalling Server URL. | ||
| int32 | GetStreamFPS () |
Get the Stream FPS. | |
| TWeakPtr< FIntRect > | Get the target screen rectangle for this streamer. | ||
| TWeakPtr< SViewport > | Get the Target Viewport for this streamer. | ||
| TWeakPtr< SWindow > | Get the target window for this streamer. | ||
| IPixelStreamingAudioSink * | Get an audio sink that has no peers/players listening to it. | ||
| TWeakPtr< FPixelStreamingVideoInput > | Get the Video Input object. | ||
| bool | |||
| bool | IsStreaming () |
Get the current state of this streamer. | |
| void | KickPlayer
(
FPixelStreamingPlayerId PlayerId |
Kick a player by player id. | |
| FStreamingStartedEvent & | A getter for the OnStreamingStarted event. Intent is for users to call IPixelStreamingModule::Get().FindStreamer(ID)->OnStreamingStarted().AddXXX. | ||
| FStreamingStoppedEvent & | A getter for the OnStreamingStopped event. Intent is for users to call IPixelStreamingModule::Get().FindStreamer(ID)->OnStreamingStopped().AddXXX. | ||
| void | RemoveAudioInput
(
TSharedPtr< IPixelStreamingAudioInput > AudioInput |
Remove the audio input from the Pixel Streaming mix. | |
| void | SendFileData
(
const TArray64< uint8 >& ByteData, |
Send a file to the browser where we are sending video. | |
| void | SendPlayerMessage
(
uint8 Type, |
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 | SetInputHandler
(
TSharedPtr< IPixelStreamingInputHandler > InInputHandler |
Set the streamer's input handler. | |
| void | SetInputHandlerType
(
EPixelStreamingInputType InputType |
Set the type for this streamers input handler. This controls whether input is routed to widgets or windows. | |
| void | SetPlayerLayerPreference
(
FPixelStreamingPlayerId PlayerId, |
Set the Layer Preference for a specific player. Only useful if using the SFU. | |
| void | SetSignallingConnection
(
TSharedPtr< IPixelStreamingSignallingConnection > InSignallingConnection |
Set the connection to the signalling server. | |
| void | SetSignallingServerURL
(
const FString& InSignallingServerURL |
Set the Signalling Server URL. | |
| void | SetStreamFPS
(
int32 InFramesPerSecond |
Set the Stream FPS. | |
| void | SetTargetScreenRect
(
TWeakPtr< FIntRect > InTargetScreenRect |
Set the target screen rectangle for this streamer. This is used to when the streamer doesn't have a singular target window / viewport and as such we just use the manual scale. | |
| void | SetTargetViewport
(
TWeakPtr< SViewport > InTargetViewport |
Set the Target Viewport for this streamer. This is used to ensure input between the browser and application scales correctly. | |
| void | SetTargetWindow
(
TWeakPtr< SWindow > InTargetWindow |
Set the target window for this streamer. This is used to ensure mouse events are directed to the correct window if multiple windows are tiled on top of one another as seen in the editor. | |
| void | SetVideoInput
(
TSharedPtr< FPixelStreamingVideoInput > 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 | |
|---|---|---|---|
| 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. |
Typedefs
| Name | Description |
|---|---|
| FOnInputReceived | Broadcast when data comes in from the data channel. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| TWeakPtr< FIntPoint > | GetTargetScreenSize() is deprecated. Please use GetTargetScreenRect() instead. | ||
| void | SetTargetScreenSize
(
TWeakPtr< FIntPoint > InTargetScreenSize |
SetTargetScreenSize() is deprecated. Please use SetTargetScreenRect() instead. |