Search
Preparing search index...
The search index is not available
zego-express-engine-video-uniapp
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
"impl/ZegoExpressEngineImpl"
ZegoMediaPlayerImpl
Class ZegoMediaPlayerImpl
Hierarchy
ZegoMediaPlayerImpl
Implements
ZegoMediaPlayer
Index
Constructors
constructor
Properties
_index
Methods
_call
Method
enable
Accurate
Seek
enable
Aux
enable
Repeat
get
Audio
Track
Count
get
Current
Progress
get
Current
State
get
Index
get
Network
Resource
Cache
get
Play
Volume
get
Publish
Volume
get
Total
Duration
load
Resource
mute
Local
off
on
pause
resume
seek
To
set
Audio
Track
Index
set
Network
Buffer
Threshold
set
Network
Resource
Max
Cache
set
Play
Speed
set
Play
Volume
set
Player
View
set
Progress
Interval
set
Publish
Volume
set
Voice
Changer
Param
set
Volume
start
stop
take
Snapshot
Constructors
constructor
new
Zego
Media
Player
Impl
(
index
:
number
)
:
ZegoMediaPlayerImpl
Parameters
index:
number
Returns
ZegoMediaPlayerImpl
Properties
Private
_index
_index
:
number
Methods
Private
_call
Method
_call
Method<T>
(
method
:
string
, args
?:
undefined
|
{}
)
:
Promise
<
T
>
Type parameters
T
Parameters
method:
string
Optional
args:
undefined
|
{}
Returns
Promise
<
T
>
enable
Accurate
Seek
enable
Accurate
Seek
(
enable
:
boolean
, config
:
ZegoAccurateSeekConfig
)
:
Promise
<
void
>
Parameters
enable:
boolean
config:
ZegoAccurateSeekConfig
Returns
Promise
<
void
>
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
State
get
Current
State
(
)
:
Promise
<
ZegoMediaPlayerState
>
Returns
Promise
<
ZegoMediaPlayerState
>
get
Index
get
Index
(
)
:
number
Returns
number
get
Network
Resource
Cache
get
Network
Resource
Cache
(
)
:
Promise
<
ZegoNetWorkResourceCache
>
Returns
Promise
<
ZegoNetWorkResourceCache
>
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
>
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
Network
Buffer
Threshold
set
Network
Buffer
Threshold
(
threshold
:
number
)
:
Promise
<
void
>
Parameters
threshold:
number
Returns
Promise
<
void
>
set
Network
Resource
Max
Cache
set
Network
Resource
Max
Cache
(
time
:
number
, size
:
number
)
:
Promise
<
void
>
Parameters
time:
number
size:
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
(
playerID
:
number
)
:
Promise
<
void
>
Parameters
playerID:
number
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
Voice
Changer
Param
set
Voice
Changer
Param
(
param
:
ZegoVoiceChangerParam
, audioChannel
:
ZegoMediaPlayerAudioChannel
)
:
Promise
<
void
>
Parameters
param:
ZegoVoiceChangerParam
audioChannel:
ZegoMediaPlayerAudioChannel
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
>
take
Snapshot
take
Snapshot
(
)
:
Promise
<
ZegoMediaPlayerTakeSnapshotResult
>
Returns
Promise
<
ZegoMediaPlayerTakeSnapshotResult
>
Globals
"
Zego
Express
Defines"
"
Zego
Express
Engine"
"
Zego
Express
Event
Handler"
"impl/
Zego
Express
Engine
Impl"
"index"
Zego
Express
Engine
Impl
Zego
Media
Player
Impl
constructor
_index
_call
Method
enable
Accurate
Seek
enable
Aux
enable
Repeat
get
Audio
Track
Count
get
Current
Progress
get
Current
State
get
Index
get
Network
Resource
Cache
get
Play
Volume
get
Publish
Volume
get
Total
Duration
load
Resource
mute
Local
off
on
pause
resume
seek
To
set
Audio
Track
Index
set
Network
Buffer
Threshold
set
Network
Resource
Max
Cache
set
Play
Speed
set
Play
Volume
set
Player
View
set
Progress
Interval
set
Publish
Volume
set
Voice
Changer
Param
set
Volume
start
stop
take
Snapshot
Prefix
Zego
Event
Zego
Express
Native
Engine
Moudle
engine
Generated using
TypeDoc