Class that sinks frame from a webrtc stream.
More...
#include <EncodedVideoSink.h>
Class that sinks frame from a webrtc stream.
◆ EncodedVideoSink()
EncodedVideoSink::EncodedVideoSink |
( |
EncodedVideoSinkCallback |
onFrameReceived | ) |
|
|
explicit |
Construct a VideoSink.
- Parameters
-
onFrameReceived | callback function that gets called whenever a frame is received |
◆ OnFrame()
void EncodedVideoSink::OnFrame |
( |
const webrtc::RecordableEncodedFrame & |
frame | ) |
|
|
override |
Process incoming frames from webrtc.
This function is called by the webrtc transport layer whenever a frame is available. It convert YUV frame data from the I420 buffer to BGR data and call the callback function with a cv::Mat
- Parameters
-
frame | available webrtc frame |
The documentation for this class was generated from the following files: