I’ve got a little hype generated page running that shows a simulation of some Augmented Reality work my company is doing…
It’s based on the reveal script with some image overlays, overflow masking, etc. That part is working great.
What I’m trying to figure out is how to allow the audio to play. I’m fine having it muted at startup and adding a button to un-mute (needs to remain in sync w/ the picture though), then I’d like to have the volume based on the timeline so that when the center of the window is over the AR, you can hear it and it fades out as you move off center.
Here’s a zip of the project if that helps…
You can set the volume of the element by using a button like this:
First, you would need to set the ‘Unique Element ID’ of the video to be
Some more info on these properties can be found here: Controlling Audio & Advanced Techniques (Play, Pause, Rewind, Volume control)
var myVideo = document.getElementById("napo-video");
hypeDocument.continueTimelineNamed('Main Timeline', hypeDocument.kDirectionForward);
The video doesn’t seem to work – can you reencode it in h264 with a standard audio codes like AAC or MP3?
This is just to show you what I would do based on what you’ve said. As @Daniel said there was no audio with the file so I’ve added some white noise to the video just to show you the volume.
The volume is controlled by a script based on the drag.