cn.tee3.avd_SDK-Objectc  2.1.0
AVDScreen.h
浏览该文件的文档.
1 //
2 // AVDVideo.h
3 // avd_sdk
4 //
5 // Created by skin on 15-7-21.
6 // Copyright (c) 2015年 t3ee. All rights reserved.
7 //
8 
9 #ifndef avd_sdk_AVDScreen_h
10 #define avd_sdk_AVDScreen_h
11 
12 #import "AVDModule.h"
13 #import "AVDVideoDevice.h"
14 #import "AVDVideoRenderer.h"
15 
16 @class AVDRoom;
17 
23 @protocol AVDScreenDelegate<NSObject>
24 
25 @required
27 
33 - (void) onScreenStatusNotify:(enum AVDDeviceStatus)status deviceId:(AVDDeviceId)fromId;
34 
35 @optional
43 - (void) onScreenDataNotify:(NSInteger)level description:(NSString*)description deviceId:(AVDDeviceId)fromId;
51 - (void) onPublishScreenNotify:(AVDVideoDevice *)screen;
59 - (void) onUnpublishScreenNotify:(AVDVideoDevice *)screen;
60 
62 
69 - (void) onSubscribeResult:(AVDResult)result deviceId:(AVDDeviceId)fromId;
77 - (void) onUnsubscribeResult:(AVDResult)result deviceId:(AVDDeviceId)fromId;
78 
79 @end
80 
81 
87 @interface AVDScreen : AVDModule
88 
89 @property (nonatomic,weak) id <AVDScreenDelegate>delegate;
91 @property (nonatomic,retain,readonly) NSMutableArray* publishedScreens;
93 @property (nonatomic,retain,readonly) NSMutableArray* subscribedScreens;
100 + (AVDScreen* ) getScreen:(AVDRoom*)room;
101 
102 
110 - (AVDResult) subscribe:(AVDDeviceId)deviceId;
118 - (AVDResult) unsubscribe:(AVDDeviceId)deviceId;
121 - (BOOL) isScreenSubscribed:(AVDDeviceId)deviceId;
122 
124 
134 - (AVDResult) attachRenderWithDeviceId:(AVDDeviceId)deviceId render:(id<AVDVideoRenderer>)render;
141 - (AVDResult) detachRenderWithDeviceId:(AVDDeviceId)deviceId;
147 - (AVDResult) detachRenderWithRender:(id<AVDVideoRenderer>) render;
148 
149 
150 #ifndef DOXYGEN_SHOULD_SKIP_THIS
151 // Disallow init and don't add to documentation
152 - (id)init __attribute__((
153  unavailable("init is not a supported initializer for this class.")));
154 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
155 
156 @end
157 
158 #endif
设备信息结构.
Definition: AVDVideoDevice.h:19
AVDDeviceStatus
设备状态.
Definition: AVDDevice.h:14
id< AVDScreenDelegate > delegate
屏幕窗口共享模块回调接口代理
Definition: AVDScreen.h:89
房间中屏幕窗口共享模块回调接口.
Definition: AVDScreen.h:23
NSString * AVDDeviceId
Definition: AVDCommon.h:17
Definition: AVDModule.h:24
NSInteger AVDResult
Definition: AVDCommon.h:14
NSMutableArray * publishedScreens
已共享屏幕窗口信息列表,数组中存放AVDVideoDevice对象
Definition: AVDScreen.h:91
Definition: AVDVideoRenderer.h:27
(unavailable("init is not a supported initializer for this class." __attribute__()
初始状态
Definition: AVDRoomInfo.h:37
NSMutableArray * subscribedScreens
已订阅屏幕窗口信息列表,数组中存放AVDVideoDevice对象
Definition: AVDScreen.h:93
房间中屏幕窗口共享模块接口.
Definition: AVDScreen.h:87
房间接口类
Definition: AVDRoom.h:173