The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Background music?, How do I make a youtube video into background music using HTML
JintheKorean
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JintheKorean
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
JintheKorean
post 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?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 07:20 AM