A few words of thanks would be greatly appreciated.

Autostart Youtube Videos on MySpace


In a previous article I talk about how to add a YouTube video to your MySpace profile. I have also noticed that lots of people ask for solution to make Youtube video auto play on MySpace.

Autostarting YouTube videos on MySpace is definitely possible. In essence it's very easy. All you need to do is to tweak your Youtube code a bit. The following procedure I put together will help you to auto play YouTube videos on MySpace.

This tutorial includes two parts:
Part 1: How to do this with YouTube code
Part 2: How to do this without YouTube code

Part 1: How to do this with YouTube code

Step 1. Go to Youtube and find the EMBED code for the video.
This embed code is in the "About This Video" section of the video and will be automatically be selected in the "Embed" textbox.


Step 2. Copy the embed code of the video on Youtube to NotePad
You can either use Ctrl+C on the keyboard or right click this box and select Copy to copy the code. Delete everything before <embed and everything after </embed>


Step 3. Add the &autoplay=1 suffix to the video URL as specified in the object and embed tags in the NotePad

<embed src="http://www.youtube.com/v/qrXmDiYHUY0&autoplay=1" type="application/x-shockwave-flash"
wmode="transparent" width="425" height="350">

Step 4. Paste the code you just copied from Youtube in NotePad to your MySpace profile relative section


Step 5. Click Preview Profile and check how your profile looks.

Step 6. Click Save button to save the change.

Part 2: How to do this without YouTube code

Step 1. Download the Youtube video (tool needed: Leawo YouTube Download, it is free)
Download the Youtube video you want to add to your MySpace profile from the Internet to your PC with Leawo YouTube Download.

Step 2. Make the Youtube video auto play (tool needed: Moyea Web Player, it is free)
Launch Moyea Web Player in your PC, add the FLV file you have just downloaded on your computer to the program. Moyea Web Player Pro is a flash video player maker which is a quick solution to generate a custom flash video player for website and add videos to web page.


Find "Template" menu>>Options>>Playback settings, uncheck the "Pause at first frame" option, and this will make your Youtube video auto playe on web page. See the screenshot of this feature below:


Step 3. Moyea web player publishes some files like a swf file named mwplayer.swf and a html file named index.html

Step 4. Upload all the published files to the same folder of a host server, e.g.: http://www.free-webhosts.com/foldername/

Step 5. Embed the generated player onto your webpage with the code below, (you can get it on the generated index.html file):
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent">Player will show here</div>
<script type="text/javascript">
var so = new SWFObject('mwplayer.swf','player','500','450','9');

Note: 1. mwplayer.swf is the actual flash video player. If it resides in another directory, then point to it with a relative path (e.g. video/mwplayer.swf) or an absolute path (e.g.http://www.yourdomain.com/video/mwplayer.swf ).

Then the flash videos will appear on your website.


Thanks to Shirley1874 for this tip on the forum.

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled "Autostart Youtube Videos on MySpace," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).