IVideoEncodedFrameObserver
A class used to receive encoded video frames.
OnEncodedVideoFrameReceived
Reports that the receiver has received an encoded video frame sent by a remote user.
public virtual bool OnEncodedVideoFrameReceived(string channelId, uint uid, IntPtr imageBufferPtr, UInt64 length, EncodedVideoFrameInfo videoEncodedFrameInfo)
{
return true;
}
When you call the SetRemoteVideoSubscriptionOptions method and set encodedFrameOnly to true, the SDK triggers this callback locally to report the received encoded video frame information.
Parameters
- channelId
- Channel name.
- uid
- Remote user ID.
- imageBufferPtr
- Video image buffer.
- length
- Data length of the video image.
- videoEncodedFrameInfo
- Encoded video frame information. See EncodedVideoFrameInfo.
Return Values
No actual meaning.