VmonsterRoom
instance provides a variety of methods to manage and control the interactions and functionalities within the virtual space.
These methods enable developers to automate tasks and enhance user engagement efficiently.
The following are the instance methods.
VmonsterRoom
.
If the method operates successfully, the joined
event will be triggered.
JoinOptions.
joining
or joined
events have already occurred.MessageConfig
, which is a union of the following: TextMessageConfig
and StreamMessageConfig
.
AIAvatarState
transitions to loading
.
aiavatar-start-speaking
event is triggered.
b. The AIAvatarState
transitions to speaking
.
aiavatar-stop-speaking
event is triggered.
b. The AIAvatarState
transitions to idle
.
aiavatar-message
event.
RoomState
is not joined
when the method is called.AIAvatarState
is not idle
when the method is called.aiavatar-stop-speaking
event is triggered.AIAvatarState
transitions to idle.AIAvatarState
is not speaking when the method is called.VmonsterRoom
.
Upon execution, the left
event is triggered immediately.
Error Occurrence
joined
event has occurred.<video>
element with the id “aiavatar-video” and adds it if it doesn’t already exist.
Parent Element Determination:
unmuteUserAudio()
.
joined
event has occurred.