My Project
CCStream.h
1 //
2 // CCStream.h
3 // CCClassRoomBasic
4 //
5 // Created by cc on 17/9/18.
6 // Copyright © 2017年 cc. All rights reserved.
7 //
8 
9 
10 #import <Foundation/Foundation.h>
11 #import <UIKit/UIKit.h>
12 
16 typedef enum{
20  CCStreamType_Base,
24  CCStreamType_Local,
28  CCStreamType_Remote,
32  CCStreamType_Mixed,
36  CCStreamType_ShareScreen,
37 }CCStreamType;
38 
42 @interface CCStream : NSObject
46 @property (assign, nonatomic, readonly) CCStreamType type;
50 @property (strong, nonatomic, readonly) NSString *streamID;
54 @property (strong, nonatomic, readonly) NSString *userID;
55 
60 - (void)disableAudio;
61 
66 - (void)disableVideo;
67 
72 - (void)enableAudio;
73 
78 - (void)enableVideo;
79 
85 - (NSDictionary<NSString*,NSString*>*)attributes;
86 
91 - (void)setAttributes:(NSDictionary<NSString *,NSString *>*)attributes;
92 @end
NSString * streamID
流ID
Definition: CCStream.h:50
void enableVideo()
NSString * userID
用户ID
Definition: CCStream.h:54
void disableVideo()
void enableAudio()
Definition: CCStream.h:42
void disableAudio()
CCStreamType type
流类型
Definition: CCStream.h:46
NSDictionary< NSString *, NSString * > * attributes()