Sound and Video Puzzles
These puzzles are used to load and play back HTML5 sounds and videos.
Creates an HTML5 audio element and loads a sound file using a specified URL. This puzzle also adds the created audio element to a memory cache so that any subsequent uses of this puzzle with the same URL do not load the same sound file again. Using .mp3 format is recommended as it is supported by most web browsers.
Creates an HTML5 video element and loads a sound file using a specified URL. This puzzle also adds the created video element to a memory cache so that any subsequent uses of this puzzle with the same URL do not load the same sound file again. Using .mp4 format is recommended as it is supported by most web browsers.
The load video puzzle does not create any visible elements on your scene. To make it visible, assign video texture to your materials using the replace texture puzzle.
Starts audio or video playback. The loop checkbox repeats playback if enabled.
Due to browser restrictions (preventing malicious websites from playing noisy sounds and videos) you should not execute this puzzle to play your assets automatically (upon scene loading). Instead, you should do this in some user-generated event. Use when clicked or event to handle such events.
There is one exception to this rule. Browsers allow playing muted videos automatically. See the mute puzzle.
Pauses audio or video playback.
Stops audio or video playback. Using this puzzle is equivalent to using the pause puzzle, followed by the rewind puzzle.
Makes the audio or video element to play from the start.
Sets the sound volume. Input volume is clamped to the 0.0-1.0 range. This puzzle also works for videos with embedded audio track.
Checks if a sound or video is being played back.
Mute a sound or video.
Apart from controlling audio volume, you can use this puzzle to start video playback automatically. This is possible, because web browsers allow playing muted videos without user interaction.
Unmute a sound or video.
Having Troubles with Puzzles?
Seek help on the forums!