Files
yinmeng-ios/xplan-ios/Main/RTC/RtcImpl/RtcInterface.h

54 lines
947 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// RtcInterface.h
// xplan-ios
//
// Created by zu on 2021/10/20.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@protocol RtcInterface <NSObject>
@required
/**
加入频道(房间)
*/
- (BOOL)joinChannel:(NSString *)channelId completion:(void(^ __nullable)(void))completion;
/**
静音
*/
- (BOOL)muteRemote:(BOOL)mute;
/**
上下麦(说话)
*/
- (void)broadcast:(BOOL)on;
/**
闭麦
*/
- (BOOL)muteLocal:(BOOL)mute;
/**
退出频道
*/
- (void)exitChannel:(void(^ __nullable)(void))completion;
/**
销毁引擎
*/
- (void)destory;
@optional
/**
加入频道房间TRTC 进房需要动态签名。
*/
- (BOOL)joinChannel:(NSString *)channelId sign:(NSString *)sign completion:(void(^ __nullable)(void))completion;
///发起跨房通话
- (void)connectOtherRoom:(NSString *)roomUId userId:(NSString *)userId;
///退出跨房通话
- (void)disconnectOtherRoom;
@end
NS_ASSUME_NONNULL_END