HTML5 and Sound (Object2VR)

Currently, there is no Skin Editor sound support for the HTML5 output in Object2VR.

However, sound can be added using a text box and some HTML code:

  • Enter this code into the text field of the text box (found in the text box’s element editor):
    <audio src="audio/your.mp3" controls="controls"></audio>
This will add a player with controls.

You can also use buttons to play and stop the audio via the audio player.

Text = <audio src="audio/your.mp3" controls="controls"></audio>
Target = the text box added in skin editor
Text = leave this field blank
Target = the text box added in skin editor

See also

Apple Devices and Sound