//// //// SMLinphoneConfig.h //// SiMiCloudShare //// //// Created by MAC_OSSS on 17/4/17. //// Copyright © 2017年 MAC_OSSS. All rights reserved. //// // //#import // //typedef struct LinphoneCall ESCall; // //extern NSString *const ES_ON_REMOTE_OPEN_CEMERA; //extern NSString *const ES_ON_CALL_COMMING; //extern NSString *const ES_ON_CALL_END; //extern NSString *const ES_ON_CALL_STREAM_UPDATE; // //@interface SMLinphoneConfig : NSObject // //+ (SMLinphoneConfig *)instance; // //- (void)registeByUserName:(NSString *)userName pwd:(NSString *)pwd domain:(NSString *)domain tramsport:(NSString *)transport; // //- (void)callPhoneWithPhoneNumber:(NSString *)phone withVideo:(BOOL)video; // //- (void)switchCamera; // //- (void)enableVideoCodecWithString:(NSString *)codec enable:(BOOL)enable; // //- (NSMutableArray *)getAllEnableVideoCodec; // //- (NSMutableArray *)getAllEnableAudioCodec; // //- (void)acceptCall; // //- (void)hold; // //- (void)unhold; // //- (void)remoteAccount; // //- (void)haveCall; // //- (void)muteMic; // //- (void)enableSpeaker; // //- (void)tabeSnapshot; // //- (void)takePreviewSnapshot; // //- (void)setVideoSize; // //- (void)showVideo; // //- (void)setRemoteVieoPreviewWindow:(UIView *)preview; // //- (void)setCurrentVideoPreviewWindow:(UIView *)preview; // ///** // 登录sip服务器 // // @param username 用户名 // @param password 密码 // @param displayName 显示名 // @param domain ip/域名 // @param port 端口 // @param transport 传输协议 UDP | TCP | TLS // */ //- (void) login: (NSString*) username password: (NSString*) password displayName: (NSString*) displayName domain: (NSString*) domain port: (NSString *) port withTransport: (NSString*) transport; // // ///** // 退出登录,注销账户 // */ //- (void) logout; // // ///** // 拨打电话 // // @param username 用户名 // @param displayName 显示名 // */ //- (void) call: (NSString*) username displayName: (NSString*) displayName; // //- (void) callPhoneWithPhoneNumber:(NSString *)phone withVideo:(BOOL)video; // /////** //// 接听电话 //// //// @param call 电话 //// */ ////- (void) acceptCall: (ESCall*) call; ///** // 挂断 // */ //- (void) hangUpCall; // ///** // 请求对方打开摄像头 // */ //- (void) requestOpenCamera; // ///** // 关闭摄像头 // */ //- (void) closeCamera; // ///** // 判断当前通话是否开启视频 // // @param call 通话 // @return bool // */ //- (BOOL) isVideoEnabled: (ESCall*) call; // ///** // 同意打开摄像头 // // @param call 通话 // */ //-(void) allowToOpenCameraByRemote: (ESCall*)call; // ///** // 拒绝打开摄像头 // // @param call 通话 // */ //-(void) refuseToOpenCameraByRemote: (ESCall*)call; // // //@end