cn.tee3.avd_SDK-Objectc  2.1.0
AVDLivecastViewer.h
浏览该文件的文档.
1 //
2 // AVDLivecastViewer.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_AVDLivecastViewer_h
10 #define avd_sdk_AVDLivecastViewer_h
11 
12 #import "AVDLivecast.h"
13 
19 @protocol AVDLivecastViewerDelegate<NSObject>
20 
21 @required
23 
28 - (void) onDialogueResult:(AVDResult)result;
29 
30 @optional
32 
36 - (void) onRtmpPlay:(NSString*)url;
39 - (void) onRtmpStop;
40 
41 @end
42 
49 
50 @property (nonatomic,weak) id <AVDLivecastViewerDelegate>delegate2;
57 + (AVDLivecastViewer* ) obtain:(AVDRoomId)roomId;
58 
59 - (instancetype) initWithRoomId:(AVDRoomId)roomId;
60 
65 - (AVDResult) setBroadcasterId:(AVDUserId)broadcasterId;
73 - (AVDResult) watchRoom:(NSString*)playUrl render:(id<AVDVideoRenderer>)render;
80 
82 
84 - (NSString*) getPlayUrl;
87 - (id<AVDVideoRenderer>) getRender;
88 
89 #ifndef DOXYGEN_SHOULD_SKIP_THIS
90 // Disallow init and don't add to documentation
91 - (id)init __attribute__((
92  unavailable("init is not a supported initializer for this class.")));
93 #endif /* DOXYGEN_SHOULD_SKIP_THIS */
94 
95 @end
96 
97 #endif
AVDResult dialogue()
与主播连麦对话
void onRtmpStop()
直播对讲状态通知
(unavailable("init is not a supported initializer for this class." __attribute__()
NSInteger AVDResult
Definition: AVDCommon.h:14
直播观众接口类
Definition: AVDLivecastViewer.h:48
NSString * AVDRoomId
Definition: AVDCommon.h:16
id< AVDLivecastViewerDelegate > delegate2
直播回调代理
Definition: AVDLivecastViewer.h:50
直播观众回调接口类
Definition: AVDLivecastViewer.h:19
NSString * AVDUserId
Definition: AVDCommon.h:15
直播接口类
Definition: AVDLivecast.h:83
初始状态
Definition: AVDRoomInfo.h:37
id< AVDVideoRenderer > getRender()
获取对讲视频显示对象
NSString * getPlayUrl()
for detail viewer imp