I have embedded an HTML5 audio file with the controls, and it works fine. I have also embedded an HTML5 video file without the controls with autoplay, and found a script that toggles between pause and play, and it works, as long as I have only one video per page (probably something to do with the script…). My website isn’t done, so I just copied the elements I’m speaking about into a new page. Here’s my share link:
but because of the video embed, you have to visit the published site to see it…
I don’t know how to write code, and I haven’t been able to find any posts on this forum or else where on the internet that I can alter to make it work for me… I’ve found a couple code snippets that describe what I’m wanting, but I can’t make it work!
Basically, for both video and audio, I’d like to be able to have the user not have to pause the currently playing media file to be able to play the next one. I’d like the action of playing the next one to pause all current or active players. I’ve found scripts that have event listeners, but unfortunately, I don’t know enough code to be able to alter it for what I need… I image it would be easier to not show the controls for the browser player, and instead have a play button that triggers the script?
I’m also wondering why when I duplicate the video embed, that has the script, why does the script no longer function? (Button to second page with multiple videos)
I also read something about scripts in the HTML embed not being allowed, but need to be in the dashboard? Is this part of my problem?
Thanks so much!!