Navigation
API > API/Plugins > API/Plugins/PixelStreaming2
Inheritance Hierarchy
- IModuleInterface
- IPixelStreaming2Module
References
| Module | PixelStreaming2 |
| Header | /Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2/Public/IPixelStreaming2Module.h |
| Include | #include "IPixelStreaming2Module.h" |
Syntax
class IPixelStreaming2Module : public IModuleInterface
Remarks
The IPixelStreaming2Module interface manages the core functionality of the Pixel Streaming system. This class provides access to streamers, video and audio producers, and handles starting and stopping the streaming process. It also allows interaction with the signalling server and manages the lifecycle of streamers within the Pixel Streaming system.
Functions
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< IPixelStreaming2AudioProducer > | Creates a new audio producer. Any audio you push in with `PushAudio_ will be mixed with other audio sources before being streamed. | ||
| TSharedPtr< IPixelStreaming2Streamer > | CreateStreamer
(
const FString& StreamerId |
Creates a new streamer. | |
| TSharedPtr< IPixelStreaming2VideoProducer > | Creates a new video producer. | ||
| TSharedPtr< IPixelStreaming2Streamer > | DeleteStreamer
(
const FString& StreamerId |
Remove a streamer by an ID | |
| void | DeleteStreamer
(
TSharedPtr< IPixelStreaming2Streamer > ToBeDeleted |
Remove a streamer by its pointer | |
| TSharedPtr< IPixelStreaming2Streamer > | FindStreamer
(
const FString& StreamerId |
Find a streamer by an ID. | |
| void | ForEachStreamer
(
const TFunction< void(TSharedPtr< IPixelStreaming2Streamer >)>& Func |
A method for iterating through all of the streamers on the module. | |
| IPixelStreaming2Module & | Get () |
Singleton-like access to this module's interface. | |
| FString | Get the Default Signaling URL ("ws://127.0.0.1:8888"). | ||
| FString | Get the Default Streamer ID. | ||
| 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 PixelStreaming2 module actually ready to use? Is the streamer created. | |
| FReadyEvent & | OnReady () |
A getter for the OnReady event. | |
| 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. |