private void fireOnVideoFrame(int width, int height, byte[] frameData, int timeStamp) { OnVideoFrame callback = VideoFrameEvent; if (callback != null) { callback(width, height, frameData, timeStamp); } }
public void SetVideoHandler(OnVideoFrame onVideoFrame, ZegoVideoFrameFormat format) { this.onVideoFrame = onVideoFrame; ZegoExpressEngineImpl.SetVideoHandler(this, format, onVideoFrame); }