I want to be able to have a video as the visual, and I want the video to be muted and have a YouTube video be the audio for it. This is what I have:
<video width="320" height="240" controls muted>
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
This just makes a mute video play. Now I want to add a YouTube video like this:
<iframe width="1" height="1"
src="https://www.youtube.com/embed/tgbNymZ7vqY">
</iframe>
And I want this YouTube video to play when the user plays the HTML5 video, and when the user pauses the video the YouTube video audio stops. Basically I want the YouTube video to be the audio of the HTML5 video, and the other HTML5 video should just be muted and just be visual.