PDA

View Full Version : Change the video from a menu



handemmet
3 Apr 2012, 8:17 AM
Hi

Is it possible to change the video from a menu? I have a dozen buttons on the left and a video element on the right. I need the video to change its source when each button is clicked.
I don't want to create 12 scenes as these buttons and videos will be updated regularly.
Thanks for the help!!

arnebech
3 Apr 2012, 11:52 AM
Yeah, you could give the video a custom id and add a click action to the buttons where you can change the video source.

you'll find some examples here on how to potentially change the video source
http://stackoverflow.com/questions/5235145/changing-source-on-html5-video-tag