// // libtgvoip is free and unencumbered public domain software. // For more information, see http://unlicense.org or the UNLICENSE file // you should have received with this source code distribution. // #import #import namespace tgvoip{ namespace video{ class VideoRenderer; } } typedef NS_ENUM(int, TGVStreamPauseReason){ TGVStreamPauseReasonBackground, TGVStreamPauseReasonPoorConnection }; typedef NS_ENUM(int, TGVStreamStopReason){ TGVStreamStopReasonUser, TGVStreamStopReasonPoorConnection }; @protocol TGVVideoRendererDelegate - (void)incomingVideoRotationDidChange: (int)rotation; - (void)incomingVideoStreamWillStartWithFrameSize: (CGSize)size; - (void)incomingVideoStreamDidStopWithReason: (TGVStreamStopReason)reason; - (void)incomingVideoStreamDidPauseWithReason: (TGVStreamPauseReason)reason; - (void)incomingVideoStreamWillResume; @end @interface TGVVideoRenderer : NSObject - (instancetype)initWithDisplayLayer: (AVSampleBufferDisplayLayer *)layer delegate: (id)delegate; - (tgvoip::video::VideoRenderer*)nativeVideoRenderer; @end