-
1. Re: How do I create a single action that hides several elements at once?
vivekuma Dec 2, 2014 7:05 PM (in response to CTLVideo)1. sym.$("video").hide(); will hide all the video elements, then you can selectively show a particular video as sym.$("Vidoe01").show();
2. Write a function in the compositionReady like:
sym.hideShowVideo = function(name) {
sym.$("video").hide();
sym.$(name).show();
}
And call this function for each button like sym.hideShowVideo("Video01");
hth,
Vivekuma
-
2. Re: How do I create a single action that hides several elements at once?
CTLVideo Dec 3, 2014 7:43 AM (in response to vivekuma)Thanks, that worked great! However, I've discovered that merely hiding the video won't accomplish what I want since it's still playing in the background. So, I added a bit more code to make that functionality work as well. If anyone reading this is looking to do something similar, here's the code I added after the showHide ending bracket:
sym.playPauseVideo = function(name) {
sym.$("video").pause();
sym.$(name).play();
}


