Background music?, How do I make a youtube video into background music using HTML |
Background music?, How do I make a youtube video into background music using HTML |
JintheKorean |
Dec 31 2013, 08:51 PM
Post
#1
|
Group: Members Posts: 9 Joined: 31-December 13 Member No.: 20,169 |
Does anyone know how to add background music using a Youtube video?
|
jimlongo |
Jan 2 2014, 01:11 AM
Post
#2
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
You could try something like this, (take the embed sharing code and set the width and height to zero to hide the video and add the auto play flag) but it's probably not going to work everywhere reliably.
Trying to put it in a hidden div doesn't seem to allow it to play. Depending on the media type and whether it has advertising it might also be a problem. <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Untitled</title> </head> <body> a page with some background music <object width="0" height="0"><param name="movie" value="http://www.youtube.com/v/_bpS-cOBK6Q&autoplay=1"></param> <embed src="http://www.youtube.com/v/_bpS-cOBK6Q&autoplay=1" type="application/x-shockwave-flash" width="0" height="0" ></embed></object> </body> </html> This post has been edited by jimlongo: Jan 2 2014, 01:19 AM |
JintheKorean |
Jan 3 2014, 08:39 PM
Post
#3
|
Group: Members Posts: 9 Joined: 31-December 13 Member No.: 20,169 |
It actually worked perfectly. Thank you. This video has an advertisement but it only play this one that is just piano. So it's not that much of a burden. Once again, many thanks Jim.
|
JintheKorean |
Jan 3 2014, 08:45 PM
Post
#4
|
Group: Members Posts: 9 Joined: 31-December 13 Member No.: 20,169 |
Just curious, what source do you use to convert your YouTube video as an SWF file?
|
jimlongo |
Jan 3 2014, 08:52 PM
Post
#5
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
I didn't convert anything, that's the youtube embed code. I think many of the old videos are still flash.
|
Lo-Fi Version | Time is now: 26th April 2024 - 07:20 AM |