Navigation
API > API/Plugins > API/Plugins/PixelStreaming
Inheritance Hierarchy
- IModuleInterface
- IPixelStreamingModule
References
| Module | PixelStreaming |
| Header | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/IPixelStreamingModule.h |
| Include | #include "IPixelStreamingModule.h" |
Syntax
class IPixelStreamingModule : public IModuleInterface
Remarks
The public interface of the Pixel Streaming module.
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddInputComponent
(
UPixelStreamingInput* InInputComponent |
Tell the input device about a new pixel streaming input component. | |
| rtc::scoped_refptr< webrtc::VideoTrackSourceInterface > | Allows the creation of Video Tracks that are fed the backbuffer | ||
| TSharedPtr< IPixelStreamingStreamer > | CreateStreamer
(
const FString& StreamerId |
Creates a new streamer. | |
| TUniquePtr< webrtc::VideoEncoderFactory > | Create a webrtc::VideoEncoderFactory pointer. | ||
| TSharedPtr< IPixelStreamingStreamer > | DeleteStreamer
(
const FString& StreamerId |
Remove a streamer by an ID | |
| void | DeleteStreamer
(
TSharedPtr< IPixelStreamingStreamer > ToBeDeleted |
Remove a streamer by its pointer | |
| TSharedPtr< IPixelStreamingStreamer > | FindStreamer
(
const FString& StreamerId |
Find a streamer by an ID. | |
| void | ForEachStreamer
(
const TFunction< void(TSharedPtr< IPixelStreamingStreamer >)>& Func |
A method for iterating through all of the streamers on the module. | |
| IPixelStreamingModule & | Get () |
Singleton-like access to this module's interface. | |
| EPixelStreamingCodec | GetCodec () |
Gets the currently selected encoder codec for all of Pixel Streaming. | |
| FString | Get the Default Signaling URL ("ws://127.0.0.1:8888") | ||
| FString | Get the Default Streamer ID | ||
| const TArray< UPixelStreamingInput * > | Get the input components currently attached to Pixel Streaming. | ||
| TArray< FString > | Returns a TArray containing the keys to the currently held streamers. | ||
| bool | IsAvailable () |
Checks to see if this module is loaded. | |
| bool | IsReady () |
Is the PixelStreaming module actually ready to use? Is the streamer created. | |
| FReadyEvent & | OnReady () |
A getter for the OnReady event. | |
| void | ReleaseExternalVideoSource
(
const webrtc::VideoTrackSourceInterface* InVideoSource |
Used to clean up sources no longer needed | |
| void | RemoveInputComponent
(
UPixelStreamingInput* InInputComponent |
Tell the input device that a pixel streaming input component is no longer relevant. | |
| void | SetCodec
(
EPixelStreamingCodec Codec |
Sets the encoder codec for the whole Pixel Streaming module. | |
| void | SetExternalVideoSourceCoupleFramerate
(
bool bShouldCoupleFPS |
Control coupling the external video source framerate to the video input framerate | |
| void | SetExternalVideoSourceFPS
(
uint32 InFPS |
Sets the target FPS for Externally Consumed video Tracks | |
| void | SetExternalVideoSourceInput
(
TSharedPtr< FPixelStreamingVideoInput > InVideoInput |
Hook to set the input to the external video source. | |
| bool | Starts streaming on all streamers. | ||
| void | Stops all streamers from streaming. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FReadyEvent | Event fired when internal streamer is initialized and the methods on this module are ready for use. |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| TFunction< void(FMemoryReader)> | FindMessageHandler
(
const FString& MessageType |
FindMessageHandler(...) has been moved from the PixelStreaming module to IPixelStreamingInputHandler. This object can be obtained from an (IPixelStreamingStreamer)->GetInputHandler() | |
| const FPixelStreamingInputProtocol | GetProtocol () |
GetProtocol() is deprecated. Simply access the required direction with FPixelStreamingInputProtocol::ToStreamerProcol or FPixelStreamingInputProtocol::FromStreamerProcol | |
| TSharedPtr< IPixelStreamingStreamer > | GetStreamer
(
const FString& StreamerId |
GetStreamer() is deprecated. Please use FindStreamer instead. | |
| void | RegisterMessage
(
EPixelStreamingMessageDirection MessageDirection, |
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 |