-
1. Re: How do you play/stop/show/hide 5 different fullscreen background videos?
sudeshna sarkar May 25, 2014 9:24 PM (in response to jamesfootight)Hi ,
You can the following snippet to say the buttons -
Button 1 to play just video 1 and hide all other videos(in this case only handling say video 2)
sym.$("video2")[0].pause();
sym.$("video2").hide();
sym.$("video1").show();
sym.$("video1")[0].currentTime = 0;
sym.$("video1")[0].play();
Similarly, code on button 2 to hide all the other videos and play only video 1 :
sym.$("video1")[0].pause();
sym.$("video1").hide();
// Show an element
sym.$("video2").show();
// Play a video track
sym.$("video2")[0].currentTime = 0;
sym.$("video2")[0].play();
Hope that helps!
Thanks and Regards,
Sudeshna Sarkar
-
2. Re: How do you play/stop/show/hide 5 different fullscreen background videos?
jamesfootight May 26, 2014 4:31 AM (in response to sudeshna sarkar)Hi,
I may be doing this wrong, but I think because the videos are background videos, and their info on how to play are in the class element, controlled by edgehero javascript, the code you gave me is not affecting the videos. Please see attached link to my project, the buttons to trigger the videos are in a symbo called Videoimages.
-
3. Re: How do you play/stop/show/hide 5 different fullscreen background videos?
jamesfootight May 26, 2014 4:51 AM (in response to jamesfootight)ps this is mi code in creation complete:
yepnope ( { load: "http://edgehero.js/0.2/edgehero-0.2-min.js"})
// this will set the video as background of the div/rectangle
backgroundvideo_1_mp4 ='SUNSHINE.mp4';
backgroundvideo_2_mp4 ='SHADOW.mp4';
backgroundvideo_3_mp4 ='CARLTON_BREEZY.mp4';
backgroundvideo_4_mp4 ='Land of Dreams.mp4';
backgroundvideo_5_mp4 ='Isobar_FINAL.mp4';
// put new edgehero.js variables here
-
4. Re: How do you play/stop/show/hide 5 different fullscreen background videos?
sudeshna sarkar May 26, 2014 9:34 PM (in response to jamesfootight)Hi James,
I guess the attached sample is different or is missing some of the assets. I don't see the "Videoimages" symbol in the library and nor the video assets. Am I missing something?
Regards,
Sudeshna
-
5. Re: How do you play/stop/show/hide 5 different fullscreen background videos?
jamesfootight May 29, 2014 11:26 PM (in response to sudeshna sarkar)thanks it was my error, but your original code did work so thanks!!


