android mp3 lib,【音视频】Android CallLib 开发指南

RongCallClient.getInstance().setVoIPCallListener(newIRongCallListener() {

/**

* 电话已拨出。

* 主叫端拨出电话后,通过回调 onCallOutgoing 通知当前 call 的详细信息。

*

* @paramcallSession 通话实体。

* @paramlocalVideo  本地 camera 信息。

*/

@Override

publicvoidonCallOutgoing(RongCallSession callSession, SurfaceView localVideo) {

}

/**

* 已建立通话。

* 通话接通时,通过回调 onCallConnected 通知当前 call 的详细信息。

*

* @paramcallSession 通话实体。

* @paramlocalVideo  本地 camera 信息。

*/

@Override

publicvoidonCallConnected(RongCallSession callSession, SurfaceView localVideo) {

}

/**

* 通话结束。

* 通话中,对方挂断,己方挂断,或者通话过程网络异常造成的通话中断,都会回调 onCallDisconnected。

*

* @paramcallSession 通话实体。

* @paramreason      通话中断原因。

*/

@Override

publicvoidonCallDisconnected(RongCallSession callSession, RongCallCommon.CallDisconnectedReason reason) {

}

/**

* 被叫端正在振铃。

* 主叫端拨出电话,被叫端收到请求,发出振铃响应时,回调 onRemoteUserRinging。

*

* @paramuserId 振铃端用户 id。

*/

@Override

publicvoidonRemoteUserRinging(String userId) {

}

/**

* 被叫端加入通话。

* 主叫端拨出电话,被叫端收到请求后,加入通话,回调 onRemoteUserJoined。

*

* @paramuserId      加入用户的 id。

* @parammediaType  加入用户的媒体类型,audio or video。

* @paramremoteVideo 加入用户者的 camera 信息。    */

@Override

publicvoidonRemoteUserJoined(String userId, RongCallCommon.CallMediaType mediaType, SurfaceView remoteVideo) {

}

/**

* 通话中的某一个参与者,邀请好友加入通话,发出邀请请求后,回调 onRemoteUserInvited。

*

* @paramuserId    被邀请者的 id。

* @parammediaType 被邀请者的 id。

*/

@Override

publicvoidonRemoteUserInvited(String userId, RongCallCommon.CallMediaType mediaType) {

}

/**

* 通话中的远端参与者离开。

* 回调 onRemoteUserLeft 通知状态更新。

*

* @paramuserId 远端参与者的 id。

* @paramreason 远端参与者离开原因。

*/

@Override

publicvoidonRemoteUserLeft(String userId, RongCallCommon.CallDisconnectedReason reason) {

}

/**

* 当通话中的某一个参与者切换通话类型,例如由 audio 切换至 video,回调 onMediaTypeChanged。

*

* @paramuserId    切换者的 userId。

* @parammediaType 切换者,切换后的媒体类型。

* @paramvideo    切换着,切换后的 camera 信息,如果由 video 切换至 audio,则为 null。

*/

@Override

publicvoidonMediaTypeChanged(String userId, RongCallCommon.CallMediaType mediaType, SurfaceView video) {

}

/**

* 通话过程中,发生异常。

*

* @paramerrorCode 异常原因。

*/

@Override

publicvoidonError(RongCallCommon.CallErrorCode errorCode) {

}

/**

* 远端参与者 camera 状态发生变化时,回调 onRemoteCameraDisabled 通知状态变化。

*

* @paramuserId  远端参与者 id。

* @paramdisabled 远端参与者 camera 是否可用。

*/

@Override

publicvoidonRemoteCameraDisabled(String userId,booleandisabled) {

}

});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值