res\\raw
文件夹下的三个音频文件来达到替换铃声的目的:文件名 | 用途 |
phone_dialing.mp3 | 发起呼叫时的铃音 |
phone_hangup.mp3 | 被挂断的铃音 |
phone_ringing.mp3 | 接到呼叫时的铃音 |
TUICallKit.createInstance(context).setCallingBell(filePath)
TUICallKit.createInstance(context).setCallingBell(filePath);
TUICallKit.createInstance(context).enableMuteMode(true)
TUICallKit.createInstance(context).enableMuteMode(true);
class DemoApplication : Application() {override fun onCreate() {TUIOfflinePushConfig.getInstance().isAndroidPrivateRing = true}}
public class DemoApplication extends Application {@Overridepublic void onCreate() {TUIOfflinePushConfig.getInstance().setAndroidPrivateRing(true);}}
val pushInfo = OfflinePushInfo()pushInfo.iosSound = "铃声名称.mp3"pushInfo.androidSound = "铃声名称"
TUICallDefine.OfflinePushInfo pushInfo = new TUICallDefine.OfflinePushInfo();pushInfo.setIOSSound("铃声名称.mp3");pushInfo.setAndroidSound("铃声名称");
val pushInfo = OfflinePushInfo()pushInfo.iosSound = "铃声名称.mp3"pushInfo.androidSound = "铃声名称"pushInfo.androidXiaoMiChannelID = "厂商申请的channelID"
TUICallDefine.OfflinePushInfo pushInfo = new TUICallDefine.OfflinePushInfo();pushInfo.setIOSSound("铃声名称.mp3");pushInfo.setAndroidSound("铃声名称");pushInfo.setAndroidXiaoMiChannelID("厂商申请的channelID");
public class PrivateConstants {// FCM 通道指定 channel IDpublic static String fcmPushChannelId = "FCM ChannelID";// FCM 需指定通道的推送铃音名称,与AndroidStudio 工程里 res/raw 目录中的铃音文件名一致,不需要后缀名public static String fcmPushChannelSoundName = "铃声名称";}
val pushInfo = OfflinePushInfo()pushInfo.iosSound = "铃声名称.mp3"pushInfo.androidSound = "铃声名称"pushInfo.androidFCMChannelID = "厂商申请的channelID"
TUICallDefine.OfflinePushInfo pushInfo = new TUICallDefine.OfflinePushInfo();pushInfo.setIOSSound("铃声名称.mp3");pushInfo.setAndroidSound("铃声名称");pushInfo.setAndroidFCMChannelID("厂商申请的channelID");
本页内容是否解决了您的问题?