1 //
2 // JCMediaChannelCallback.h
3 // JCSDK-OC
4 //
5 // Created by maikireton on 2017/8/11.
6 // Copyright © 2017年 juphoon. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "JCMediaChannelParticipant.h"
11 #import "JCMediaChannelConstants.h"
12 #import "JCMediaChannelQueryInfo.h"
13 #import "JCMediaChannelParticipant.h"
14 
21 
25 @protocol JCMediaChannelCallback <NSObject>
26 
39 -(void)onMediaChannelStateChange:(JCMediaChannelState)state oldState:(JCMediaChannelState)oldState;
40 
46 -(void)onMediaChannelPropertyChange:(JCMediaChannelPropChangeParam *)changeParam;
47 
57 -(void)onJoin:(bool)result reason:(JCMediaChannelReason)reason channelId:(NSString*)channelId;
58 
65 -(void)onLeave:(JCMediaChannelReason)reason channelId:(NSString*)channelId;
66 
75 -(void)onStop:(bool)result reason:(JCMediaChannelReason)reason;
76 
87 -(void)onQuery:(int)operationId result:(bool)result reason:(JCMediaChannelReason)reason queryInfo:(JCMediaChannelQueryInfo*)queryInfo;
88 
94 -(void)onParticipantJoin:(JCMediaChannelParticipant*)participant;
95 
101 -(void)onParticipantLeft:(JCMediaChannelParticipant*)participant;
102 
109 -(void)onParticipantUpdate:(JCMediaChannelParticipant*)participant participantChangeParam:(JCMediaChannelParticipantChangeParam *)participantChangeParam;
110 
118 -(void)onMessageReceive:(NSString *)type content:(NSString *)content fromUserId:(NSString *)fromUserId;
119 
129 -(void)onInviteSipUserResult:(int)operationId result:(bool)result reason:(int)reason;
130 
136 -(void)onParticipantVolumeChange:(JCMediaChannelParticipant*)participant;
137 
138 @end
139 
最后更新时间: 11/9/2021, 5:34:32 PM