Translations: Japanese
BGM Playback
In verse-three, the BGM playback process is not performed and only the volume control UI is provided.
TIP
When playing cross-origin (≒ different domain) sound sources, the volume cannot be adjusted in some browsers.
In such cases, the UI is displayed only for ON/OFF switching.
const bgmControllerFunc = (volume /* 0 .. 1.0 */) => {
...
};
const res = await VerseThree.start(
adapter,
scene,
VERSE_WASM_URL,
ENTRANCE_SERVER_URL,
DEFAULT_AVATAR_URL,
ANIMATION_MAP,
ICE_SERVERS,
{
maxNumberOfPeople: adapter.isLowSpecMode() ? 8 : 16,
maxNumberOfParallelFileTransfers: adapter.isLowSpecMode() ? 2 : 4,
setBgmVolume: bgmControllerFunc,
isCrossOriginBGM: isCrossOriginBGM,
presetAvatars: PRESET_AVATARS,
}
);