Navigation
API > API/Plugins > API/Plugins/PixelStreaming2Core
A "Video Producer" is an object that you use to push video frames into the Pixel Streaming system.
Example usage:
(1) Each new frame you want to push you call `MyVideoProducer->PushFrame(MyFrame)_
Note: Your frame is likely a [FPixelCaptureInputFrameRHI](API\Plugins\PixelCapture\FPixelCaptureInputFrameRHI)_ if the frame is a GPU texture or a FPixelCaptureInputFrameI420 or `FPixelCaptureInputFrameNV12 if your frame is from the CPU.
| Name | IPixelStreaming2VideoProducer |
| Type | class |
| Header File | /Engine/Plugins/Media/PixelStreaming2/Source/PixelStreaming2Core/Public/IPixelStreaming2VideoProducer.h |
| Include Path | #include "IPixelStreaming2VideoProducer.h" |
Syntax
class IPixelStreaming2VideoProducer
Classes
| Name | Remarks |
|---|---|
| FOnFramePushed | Event triggered when a frame is pushed to the video producer. |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnFramePushed | FOnFramePushed | IPixelStreaming2VideoProducer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
EVideoProducerCapabilities GetCapabilities() |
Returns the capabilities of the video producer. | IPixelStreaming2VideoProducer.h | |
FString ToString() |
A human readable identifier used when displaying what the streamer is streaming in the toolbar | IPixelStreaming2VideoProducer.h |
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PushFrame
(
const IPixelCaptureInputFrame& InputFrame |
Pushes a raw video frame into the Pixel Streaming system. | IPixelStreaming2VideoProducer.h |