Appearance
@tmrw-realityos/world • Docs
@tmrw-realityos/world / Components / MediaPlayer
Class: MediaPlayer
Media player component
Extends
Constructors
new MediaPlayer()
new MediaPlayer():
MediaPlayer
Returns
Overrides
Defined in
world/components/mediaPlayer.ts:26
Properties
autoplay
autoplay:
boolean
=true
Defined in
world/components/mediaPlayer.ts:21
enabled
enabled:
boolean
=true
Inherited from
Defined in
loop
loop:
boolean
=true
Defined in
world/components/mediaPlayer.ts:20
mustSave
mustSave:
boolean
=true
Inherited from
Defined in
muted
muted:
boolean
=true
Defined in
world/components/mediaPlayer.ts:19
parent?
optional
parent:ComponentsContainer
Inherited from
Defined in
texture_channel
texture_channel:
eTextureChannel
=eTextureChannel.EMISSIVE
Defined in
world/components/mediaPlayer.ts:22
uid
uid:
string
=""
Inherited from
Defined in
url
url:
string
=""
Defined in
world/components/mediaPlayer.ts:17
volume
volume:
number
=0.25
Defined in
world/components/mediaPlayer.ts:18
compName
static
compName:string
="MediaPlayer"
Overrides
Defined in
world/components/mediaPlayer.ts:15
Accessors
entity
get
entity():undefined
|Entity
set
entity(_v
):void
Parameters
• _v: Entity
Returns
undefined
| Entity
Inherited from
Defined in
Methods
configure()
configure(
o
):void
Parameters
• o
• o.url: string
Returns
void
Overrides
Defined in
world/components/mediaPlayer.ts:66
getCompName()
getCompName():
string
Returns
string
Inherited from
Defined in
onAdded()
onAdded():
void
Returns
void
Overrides
Defined in
world/components/mediaPlayer.ts:32
onClick()?
optional
onClick():void
Returns
void
Inherited from
Defined in
onRemoved()
onRemoved():
void
Returns
void
Overrides
Defined in
world/components/mediaPlayer.ts:41
onUpdate()?
optional
onUpdate(dt
):void
Parameters
• dt: number
Returns
void
Inherited from
Defined in
preloadVideo()
preloadVideo():
void
Returns
void
Defined in
world/components/mediaPlayer.ts:61
preRender()
preRender(
_cam
):void
Parameters
• _cam: Camera
Returns
void
Defined in
world/components/mediaPlayer.ts:47
serialize()
serialize():
void
Returns
void