9 #ifndef avd_sdk_AVDVideo_h 10 #define avd_sdk_AVDVideo_h 17 #import "CoreVideo/CVPixelBuffer.h" 46 - (void) onCameraDataNotify:(NSInteger)level description:(NSString*)description deviceId:(
AVDDeviceId)fromId;
55 - (void) onPublishCameraNotify:(
AVDCamera*)camera;
64 - (void) onUnpublishCameraNotify:(
AVDCamera*)camera;
112 @property (nonatomic,weak) id <AVDVideoDelegate>
delegate;
249 - (
AVDResult) updateCameraData:(
AVDDeviceId)deviceId level:(NSInteger)level description:(NSString*)description;
364 - (
AVDResult) setMixerVideoSize:(NSUInteger)width height:(NSUInteger)height background:(NSString*)background;
376 - (
AVDResult) addMixerOverlayVideo:(
AVDDeviceId)deviceId zorder:(NSUInteger)zorder x:(CGFloat)x y:(CGFloat)y w:(CGFloat)w h:(CGFloat)h;
388 - (
AVDResult) addMixerOverlayVideoPixel:(
AVDDeviceId)deviceId zorder:(NSUInteger)zorder x:(NSUInteger)x y:(NSUInteger)y w:(NSUInteger)w h:(NSUInteger)h;
399 - (
AVDResult) updateMixerOverlayVideo:(
AVDDeviceId)deviceId zorder:(NSUInteger)zorder x:(CGFloat)x y:(CGFloat)y w:(CGFloat)w h:(CGFloat)h;
410 - (
AVDResult) updateMixerOverlayVideoPixel:(
AVDDeviceId)deviceId zorder:(NSUInteger)zorder x:(NSUInteger)x y:(NSUInteger)y w:(NSUInteger)w h:(NSUInteger)h;
434 - (
AVDResult) setVideoBitrate:(
AVDDeviceId)deviceId min:(NSInteger)minBitrateBps max:(NSInteger)maxBitrateBps;
438 #ifndef DOXYGEN_SHOULD_SKIP_THIS 441 unavailable("
init is not a supported initializer for this class.")));
445 + (
AVDResult) nv12ConvertPixelBuffer:(CVPixelBufferRef)pixelBuffer toData:(NSMutableData*)data;
AVDDeviceStatus
设备状态.
Definition: AVDDevice.h:14
AVDResult switchToLocalCamera()
切换特定类型摄像头视频源
(unavailable("init is not a supported initializer for this class." __attribute__()
NSString * AVDDeviceId
Definition: AVDCommon.h:17
AVDResult clearMixerVideos()
清理掉所有的混屏视频,包括主视频;如果需要再次开启合屏,需要重新设置主视频和Overlay视频。 ...
Definition: AVDModule.h:24
NSMutableArray * publishedCameras
已共享摄像头信息列表
Definition: AVDVideo.h:118
房间中视频模块接口.
Definition: AVDVideo.h:110
NSInteger AVDResult
Definition: AVDCommon.h:14
Definition: AVDVideoRenderer.h:27
视频流导入接口.
Definition: AVDFakeVideoCapturer.h:49
Definition: AVDVideoRenderer.h:48
AVDCameraType
摄像头类型.
Definition: AVDCamera.h:15
BOOL ispublishLocalCamera()
判断是否已经打开本地摄像头
AVDResult unpreviewLocalCamera()
取消预览缺省摄像头视频
NSString * AVDUserId
Definition: AVDCommon.h:15
id< AVDVideoDelegate > delegate
视频模块回调接口代理
Definition: AVDVideo.h:112
初始状态
Definition: AVDRoomInfo.h:37
视频摄像头信息结构.
Definition: AVDCamera.h:27
房间中视频模块回调接口.
Definition: AVDVideo.h:26
AVDResult publishLocalCamera()
发布缺省摄像头视频
AVDDeviceId getLocalDefaultCameraId()
enum AVDCameraType getCurrentCameraType()
获取当前使用的摄像头类型
房间接口类
Definition: AVDRoom.h:173
AVDStreamType
视频主辅流类型.
Definition: AVDPublishVideoOptions.h:16
NSMutableArray * subscribedCameras
已订阅摄像头信息列表
Definition: AVDVideo.h:122
AVDResult unpublishLocalCamera()
取消发布缺省摄像头视频