123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- namespace Agora.Rtc
- {
-
-
-
-
-
- public abstract class IVideoFrameObserver
- {
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public virtual bool OnCaptureVideoFrame(VideoFrame videoFrame, VideoFrameBufferConfig config)
- {
- return true;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
- public virtual bool OnPreEncodeVideoFrame(VideoFrame videoFrame, VideoFrameBufferConfig config)
- {
- return true;
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public virtual bool OnRenderVideoFrame(string channelId, uint uid, VideoFrame videoFrame)
- {
- return true;
- }
-
-
-
-
-
-
-
-
-
-
-
- public virtual VIDEO_OBSERVER_FRAME_TYPE GetVideoFormatPreference()
- {
- return VIDEO_OBSERVER_FRAME_TYPE.FRAME_TYPE_RGBA;
- }
-
-
-
-
-
-
-
-
-
-
- public virtual VIDEO_OBSERVER_POSITION GetObservedFramePosition()
- {
- return VIDEO_OBSERVER_POSITION.POSITION_POST_CAPTURER | VIDEO_OBSERVER_POSITION.POSITION_PRE_RENDERER;
- }
- }
- }
|