Floating full screen layer video background source change

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
Chendrys19
 
 
Posts: 2
Joined: Sat May 11, 2019 9:12 pm

Floating full screen layer video background source change

Post by Chendrys19 »

Hi Everyone!

I have a floating full screen layer with a video background.
How can I change the source of the video with an event? Example an onclick event on a button...

Is the javascript [document.getElementById("Layer_ID").src='video'] solution working?

Thanks,
Chendrys19
User avatar
Pablo
 
Posts: 21575
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Floating full screen layer video background source change

Post by Pablo »

I do not think that will work, because background video is using You Tube or Vireo, so you will need to use their APIs to change the video ID
Post Reply