ツ
Hi, I was wondering how I can add background music to a webpage that would fade away stop when I play an embedded video (especially Youtube) and then start again when the video gets over.
The code I use to embed audio is:
<embed src="example.mid" autostart="true" loop="true">
I'm also aware that HTML5 has an audio tag, but can somehow that produce the effect I need (which is the music stopping when a video is played)?
Don't worry, I want to use this on an html based presentation and not an actual webpage. EDIT: I've edited this question so as to make it a bit more clear.