Navigation
API > API/Plugins > API/Plugins/PixelStreaming
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UActorComponent
- USceneComponent
- USynthComponent
- UPixelStreamingAudioComponent
References
| Module | PixelStreaming |
| Header | /Engine/Plugins/Media/PixelStreaming/Source/PixelStreaming/Public/PixelStreamingAudioComponent.h |
| Include | #include "PixelStreamingAudioComponent.h" |
Syntax
UCLASS&40;Blueprintable, ClassGroup&61;&40;PixelStreaming&41;, Meta&61;&40;BlueprintSpawnableComponent&41;&41;
class UPixelStreamingAudioComponent :
public USynthComponent,
public IPixelStreamingAudioConsumer
Remarks
Allows in-engine playback of incoming WebRTC audio from a particular Pixel Streaming player/peer using their mic in the browser. Note: Each audio component associates itself with a particular Pixel Streaming player/peer (using the the Pixel Streaming player id).
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAutoFindPeer | If not already listening to a player/peer will try to attach for listening to the "PlayerToHear" each tick. | |
| FString | PlayerToHear | The Pixel Streaming player/peer whose audio we wish to listen to. | |
| FString | StreamerToHear | The Pixel Streaming streamer of the player that we wish to listen to. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UPixelStreamingAudioComponent
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | True if listening to a connected WebRTC peer through Pixel Streaming. | ||
| bool | Listen to a specific player on the default streamer. If the player is not found this component will be silent. | ||
| void | Reset () |
Stops listening to any connected player/peer and resets internal state so component is ready to listen again. | |
| bool | StreamerListenTo
(
FString StreamerId, |
Listen to a specific player. If the player is not found this component will be silent. | |
| bool |
Overridden from USynthComponent
| Type | Name | Description | |
|---|---|---|---|
| ISoundGeneratorPtr | CreateSoundGenerator
(
const FSoundGeneratorInitParams& InParams |
Implemented by the synth component to create a generator object instead of generating audio directly on the synth component. | |
| void | Called when the synth component begins generating audio in render thread. | ||
| void | Called when the synth has finished generating audio on the render thread. |
Overridden from UActorComponent
| Type | Name | Description | |
|---|---|---|---|
| void | TickComponent
(
float DeltaTime, |
Function called every frame on this ActorComponent. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | BeginDestroy () |
Called before destroying the object. |
Overridden from IPixelStreamingAudioConsumer
| Type | Name | Description | |
|---|---|---|---|
| void | ConsumeRawPCM
(
const int16_t* AudioData, |
||
| void | |||
| void |