Search
Preparing search index...
The search index is not available
zego-express-engine-reactnative
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"impl/ZegoExpressEngineImpl"
ZegoMediaPlayerImpl
Class ZegoMediaPlayerImpl
Hierarchy
ZegoMediaPlayer
ZegoMediaPlayerImpl
Index
Constructors
constructor
Properties
_index
Methods
enable
Aux
enable
Repeat
get
Audio
Track
Count
get
Current
Progress
get
Current
Rendering
Progress
get
Current
State
get
Index
get
Play
Volume
get
Publish
Volume
get
Total
Duration
load
Resource
load
Resource
With
Config
mute
Local
off
on
pause
resume
seek
To
set
Audio
Track
Index
set
Play
Speed
set
Play
Volume
set
Player
View
set
Progress
Interval
set
Publish
Volume
set
Volume
start
stop
Constructors
constructor
new
Zego
Media
Player
Impl
(
index
:
number
)
:
ZegoMediaPlayerImpl
Parameters
index:
number
Returns
ZegoMediaPlayerImpl
Properties
Private
_index
_index
:
number
Methods
enable
Aux
enable
Aux
(
enable
:
boolean
)
:
Promise
<
void
>
Parameters
enable:
boolean
Returns
Promise
<
void
>
enable
Repeat
enable
Repeat
(
enable
:
boolean
)
:
Promise
<
void
>
Parameters
enable:
boolean
Returns
Promise
<
void
>
get
Audio
Track
Count
get
Audio
Track
Count
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Current
Progress
get
Current
Progress
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Current
Rendering
Progress
get
Current
Rendering
Progress
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Current
State
get
Current
State
(
)
:
Promise
<
ZegoMediaPlayerState
>
Returns
Promise
<
ZegoMediaPlayerState
>
get
Index
get
Index
(
)
:
number
Returns
number
get
Play
Volume
get
Play
Volume
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Publish
Volume
get
Publish
Volume
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Total
Duration
get
Total
Duration
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
load
Resource
load
Resource
(
path
:
string
)
:
Promise
<
ZegoMediaPlayerLoadResourceResult
>
Parameters
path:
string
Returns
Promise
<
ZegoMediaPlayerLoadResourceResult
>
load
Resource
With
Config
load
Resource
With
Config
(
resource
:
ZegoMediaPlayerResource
)
:
Promise
<
ZegoMediaPlayerLoadResourceResult
>
Parameters
resource:
ZegoMediaPlayerResource
Returns
Promise
<
ZegoMediaPlayerLoadResourceResult
>
mute
Local
mute
Local
(
mute
:
boolean
)
:
Promise
<
void
>
Parameters
mute:
boolean
Returns
Promise
<
void
>
off
off<MediaPlayerEventType>
(
event
:
MediaPlayerEventType
, callback
?:
ZegoMediaPlayerListener
[
MediaPlayerEventType
]
)
:
void
Type parameters
MediaPlayerEventType
:
keyof
ZegoMediaPlayerListener
Parameters
event:
MediaPlayerEventType
Optional
callback:
ZegoMediaPlayerListener
[
MediaPlayerEventType
]
Returns
void
on
on<MediaPlayerEventType>
(
event
:
MediaPlayerEventType
, callback
:
ZegoMediaPlayerListener
[
MediaPlayerEventType
]
)
:
void
Type parameters
MediaPlayerEventType
:
keyof
ZegoMediaPlayerListener
Parameters
event:
MediaPlayerEventType
callback:
ZegoMediaPlayerListener
[
MediaPlayerEventType
]
Returns
void
pause
pause
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
resume
resume
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
seek
To
seek
To
(
millisecond
:
number
)
:
Promise
<
ZegoMediaPlayerSeekToResult
>
Parameters
millisecond:
number
Returns
Promise
<
ZegoMediaPlayerSeekToResult
>
set
Audio
Track
Index
set
Audio
Track
Index
(
index
:
number
)
:
Promise
<
void
>
Parameters
index:
number
Returns
Promise
<
void
>
set
Play
Speed
set
Play
Speed
(
speed
:
number
)
:
Promise
<
void
>
Parameters
speed:
number
Returns
Promise
<
void
>
set
Play
Volume
set
Play
Volume
(
volume
:
number
)
:
Promise
<
void
>
Parameters
volume:
number
Returns
Promise
<
void
>
set
Player
View
set
Player
View
(
view
:
ZegoView
)
:
Promise
<
void
>
Parameters
view:
ZegoView
Returns
Promise
<
void
>
set
Progress
Interval
set
Progress
Interval
(
millisecond
:
number
)
:
Promise
<
void
>
Parameters
millisecond:
number
Returns
Promise
<
void
>
set
Publish
Volume
set
Publish
Volume
(
volume
:
number
)
:
Promise
<
void
>
Parameters
volume:
number
Returns
Promise
<
void
>
set
Volume
set
Volume
(
volume
:
number
)
:
Promise
<
void
>
Parameters
volume:
number
Returns
Promise
<
void
>
start
start
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Globals
Internals
"index"
Externals
"
Zego
Express
Defines"
"
Zego
Express
Engine"
"
Zego
Express
Event
Handler"
"
Zego
Render
View"
"impl/
Zego
Express
Engine
Impl"
Zego
Audio
Effect
Player
Impl
Zego
Express
Engine
Impl
Zego
Media
Player
Impl
constructor
_index
enable
Aux
enable
Repeat
get
Audio
Track
Count
get
Current
Progress
get
Current
Rendering
Progress
get
Current
State
get
Index
get
Play
Volume
get
Publish
Volume
get
Total
Duration
load
Resource
load
Resource
With
Config
mute
Local
off
on
pause
resume
seek
To
set
Audio
Track
Index
set
Play
Speed
set
Play
Volume
set
Player
View
set
Progress
Interval
set
Publish
Volume
set
Volume
start
stop
Zego
Any
Callback
Prefix
Zego
Event
Zego
Express
Native
Module
engine
Generated using
TypeDoc