正在准备搜索索引...
搜索索引不可用
LayaAir3引擎API
LayaAir3引擎API
platforms/minigame/MgMediaAdapter
MgMediaAdapter
类 MgMediaAdapter
层级
MediaAdapter
MgMediaAdapter
索引
构造函数
constructor
属性
audio
Ctx
audio
Data
Cache
long
Audio
Class
short
Audio
Class
touch
To
Start
video
Player
Class
video
Texture
Class
方法
can
Play
Type
create
Sound
Channel
create
Video
Player
create
Video
Texture
decode
Audio
Data
resume
Until
Got
Focus
构造函数
constructor
new
Mg
Media
Adapter
(
)
:
MgMediaAdapter
返回
MgMediaAdapter
属性
audio
Ctx
audio
Ctx
:
AudioContext
audio
Data
Cache
audio
Data
Cache
:
AudioDataCache
long
Audio
Class
long
Audio
Class
:
(
new
(
url
:
string
)
=>
SoundChannel
)
short
Audio
Class
short
Audio
Class
:
(
new
(
url
:
string
)
=>
SoundChannel
)
touch
To
Start
touch
To
Start
:
boolean
= true
video
Player
Class
video
Player
Class
:
(
new
(
)
=>
VideoPlayer
)
video
Texture
Class
video
Texture
Class
:
(
new
(
)
=>
VideoTexture
)
方法
can
Play
Type
can
Play
Type
(
type
)
:
CanPlayTypeResult
参数
type
:
string
返回
CanPlayTypeResult
create
Sound
Channel
create
Sound
Channel
(
url
,
longAudioUsage
?
)
:
SoundChannel
参数
url
:
string
可选
longAudioUsage
:
boolean
返回
SoundChannel
create
Video
Player
create
Video
Player
(
)
:
VideoPlayer
返回
VideoPlayer
create
Video
Texture
create
Video
Texture
(
)
:
VideoTexture
返回
VideoTexture
decode
Audio
Data
decode
Audio
Data
(
data
)
:
Promise
<
any
>
参数
data
:
ArrayBuffer
返回
Promise
<
any
>
resume
Until
Got
Focus
resume
Until
Got
Focus
(
media
)
:
void
参数
media
:
SoundChannel
|
VideoTexture
|
VideoPlayer
返回
void
切换版本:
显示设置
成员可见性
继承
外部
配色
自动
浅色
深色
目录
构造函数
constructor
属性
audio
Ctx
audio
Data
Cache
long
Audio
Class
short
Audio
Class
touch
To
Start
video
Player
Class
video
Texture
Class
方法
can
Play
Type
create
Sound
Channel
create
Video
Player
create
Video
Texture
decode
Audio
Data
resume
Until
Got
Focus
LayaAir3引擎API
加载中……