toggle menu
Android-RTCLib-SDK
5.6.9
cn.rongcloud.rtc
switch theme
search in API
Android-RTCLib-SDK
/
cn.rongcloud.rtc.api
/
RCRTCAudioRouteManager
RCRTCAudio
Route
Manager
public
abstract
class
RCRTCAudioRouteManager
Author
gusd @Date 2021/08/23
Members
Constructors
RCRTCAudio
Route
Manager
Link copied to clipboard
public
void
RCRTCAudioRouteManager
(
)
Functions
get
Current
Route
Type
Link copied to clipboard
public
abstract
RCAudioRouteType
getCurrentRouteType
(
)
获取当前音频路由类型
get
Instance
Link copied to clipboard
public
static
RCRTCAudioRouteManager
getInstance
(
)
has
Bluetooth
A2dp
Connected
Link copied to clipboard
public
abstract
boolean
hasBluetoothA2dpConnected
(
)
是否连接蓝牙耳机
has
Head
Set
Link copied to clipboard
public
abstract
boolean
hasHeadSet
(
)
是否插有线耳机
has
Init
Link copied to clipboard
public
abstract
boolean
hasInit
(
)
是否初始化
init
Link copied to clipboard
public
abstract
void
init
(
Context context
)
初始化音频路由管理类
reset
Audio
Route
State
Link copied to clipboard
public
abstract
void
resetAudioRouteState
(
)
根据当前设备状态重置音频路由状态
set
On
Audio
Route
Changed
Listener
Link copied to clipboard
public
abstract
void
setOnAudioRouteChangedListener
(
IRCRTCAudioRouteListener listener
)
设置耳机状态改变监听
un
Init
Link copied to clipboard
public
abstract
void
unInit
(
)
反初始化,释放相关资源