IVideoEncodedFrameObserver
Receives encoded video images.
OnEncodedVideoFrameReceived
Reports that the receiver has received the to-be-decoded video frame sent by the remote end.
public virtual bool OnEncodedVideoFrameReceived(uint uid, IntPtr imageBufferPtr, UInt64 length, EncodedVideoFrameInfo videoEncodedFrameInfo) { return true; }
If 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
- uid
- The user ID of the remote user.
- imageBufferPtr
- The encoded video image buffer.
- length
- The data length of the video image.
- videoEncodedFrameInfo
- For the information of the encoded video frame, see EncodedVideoFrameInfo.
Returns
Without practical meaning.