Rachel
Toggle table of contents
3.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.components.media
/
love.yinlin.media
/
AudioPlayer
Audio
Player
@
Stable
abstract
class
AudioPlayer
(
val
context
:
Context
,
val
onEndListener
:
(
)
->
Unit
)
Members
Constructors
Audio
Player
Link copied to clipboard
constructor
(
context
:
Context
,
onEndListener
:
(
)
->
Unit
)
Properties
context
Link copied to clipboard
val
context
:
Context
duration
Link copied to clipboard
abstract
val
duration
:
Long
时长
is
Init
Link copied to clipboard
abstract
val
isInit
:
Boolean
是否初始化
is
Playing
Link copied to clipboard
abstract
val
isPlaying
:
Boolean
是否播放
on
End
Listener
Link copied to clipboard
val
onEndListener
:
(
)
->
Unit
position
Link copied to clipboard
abstract
val
position
:
Long
当前位置
Functions
init
Link copied to clipboard
abstract
suspend
fun
init
(
)
初始化
load
Link copied to clipboard
abstract
suspend
fun
load
(
path
:
Path
)
加载
pause
Link copied to clipboard
abstract
fun
pause
(
)
暂停
play
Link copied to clipboard
abstract
fun
play
(
)
播放
release
Link copied to clipboard
abstract
fun
release
(
)
释放
seek
To
Link copied to clipboard
abstract
fun
seekTo
(
position
:
Long
)
调整进度
stop
Link copied to clipboard
abstract
fun
stop
(
)
停止