MOCpages : Share your LEGO® creations
LEGO models my own creation MOCpages toys shop Bionicle DisplayBionicle
Welcome to the world's greatest LEGO fan community!
Explore cool creations, share your own, and have lots of fun together.  ~  It's all free!
Conversation »
Autoplay Music
How do I convert a web address into auto-play music?
Permalink
| July 7, 2010, 8:46 am
First get the embed code like this one(The theme of my latest moc):

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/T7L4TXbfBjo&hl=en_US&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/T7L4TXbfBjo&hl=en_US&fs=1"; type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>


Permalink
| July 7, 2010, 9:03 am
Cut everything before '<embed' and cut every thin after the first = sign

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/T7L4TXbfBjo&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>

<embed src="http://www.youtube.com/v/T7L4TXbfBjo&amp;hl=en_US&amp;fs=

1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
Permalink
| July 7, 2010, 9:10 am
Now copy and paste this:1&autoplay=1&loop=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"hidden="true"></embed>

So that there is no space between the = and the 1. Like so:

<embed src="http://www.youtube.com/v/T7L4TXbfBjo&hl=en_US&fs=1&autoplay=1&loop=1"; type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true"hidden="true"></embed>

And your good.
Permalink
| July 7, 2010, 9:15 am
Hmmm, well I'm working on a System creation, and I'm going to take pictures of scenes and match them along with bits of lyrics from a music video, as the real music is playing to that viewers can read along. I don't want the music to begin right away, so how do I get the actual video on to my page? If anyone understands me, or knows how, help would be much appreciated.
Permalink
| August 27, 2010, 6:30 pm
 Group moderator 
Well, just copy the embed code, it's located right below the video, if it's on youtube.
Permalink
| August 27, 2010, 9:00 pm
 Group admin 
In the Embed Code, you will see a little box for the height, and one for the width. They look like this:

width="480" height="385"

and are found at the bottom of the Code. If you change the width to 30 and the height to 25, you end up with only the play button showing, so you can play the music without taking up much space on your page or showing an unrelated vid. It also allows, if you allow autoplay, for a viewer to turn off the music if they wish.

To autoplay, you have to add &autoplay=1 into the Embed Code. The best place to put it is after this part of the code here:

http://www.youtube.com/v/eauYGierNK8?fs=1&amp;hl=en_GB&amp;color1=0x234900&amp;color2=0x4e9e00

to

http://www.youtube.com/v/eauYGierNK8?fs=1&amp;hl=en_GB&amp;color1=0x234900&amp;color2=0x4e9e00&autoplay=1";

Be sure to close the speech marks on this section, otherwise the video won't work. The song will loop continuously now unless someone presses the play button.
Permalink
| August 28, 2010, 9:54 am
Quoting Johann Dakitsch
Well, just copy the embed code, it's located right below the video, if it's on youtube.

Hmmm...I can't seem to find the embed code. And yes, it is on Youtube. I'll keep looking, but thanks for the help from both you guys.
Permalink
| August 28, 2010, 3:42 pm
Group moderators have locked this conversation.
Other topics
...Mata Heads... Updated yesterday
Hello? Updated Tuesday



LEGO models my own creation MOCpages toys shop Bionicle DisplayBionicle


You Your home page | LEGO creations | Favorite builders
Activity Activity | Comments | Creations
Explore Explore | Recent | Groups
MOCpages is an unofficial, fan-created website. LEGO® and the brick configuration are property of The LEGO Group, which does not sponsor, own, or endorse this site.
©2002-2014 Sean Kenney Design Inc | Privacy policy | Terms of use