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
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void PushFrame
(
const IPixelCaptureInputFrame& InputFrame |
Pushes a raw video frame into the Pixel Streaming system. | IPixelStreaming2VideoProducer.h | |
FString ToString() |
A human readable identifier used when displaying what the streamer is streaming in the toolbar | IPixelStreaming2VideoProducer.h |