HTML5 and Sound (Object2VR)
From Garden Gnome Software
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.
- Play button: Add a Set Text action with the following parameters:
- Text =
<audio src="audio/your.mp3" controls="controls"></audio> - Target = the text box added in skin editor
- Stop button: Add a Set Text action with the following parameters:
- Text = leave this field blank
- Target = the text box added in skin editor