ignitesystems
Newbie
- Oct 21, 2008
- 14
- 12
OK. Solved,
You can not use the normal embed code to get this done it's impossible despite rumours of adding a parameter called mute on the embed code here's how if have done it.
http://ignite-systems.com/vids/youtube_embed.html
The vid opens, auto plays and then it's also muted
View source of my page. All you need to accomplish this is to download swfobject.js and make it sit in the same location as the vid page. VOILA !
I can now add this URL inside an image source tag or I can use this url in an autohits exchange to gain video views from tonnes of people.
<script type="text/javascript" src="swfobject/swfobject.js"></script>
<div id="ytapiplayer">
You need Flash player 8+ and JavaScript enabled to view this video.
</div>
<script type="text/javascript">
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/v/82-FJyniP7A&enablejsapi=1&playerapiid=ytplayer&autoplay=1",
"ytapiplayer", "425", "356", "8", null, null, params, atts);
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById("myytplayer");
ytplayer.mute();
}
</script>
You can not use the normal embed code to get this done it's impossible despite rumours of adding a parameter called mute on the embed code here's how if have done it.
http://ignite-systems.com/vids/youtube_embed.html
The vid opens, auto plays and then it's also muted
I can now add this URL inside an image source tag or I can use this url in an autohits exchange to gain video views from tonnes of people.
<script type="text/javascript" src="swfobject/swfobject.js"></script>
<div id="ytapiplayer">
You need Flash player 8+ and JavaScript enabled to view this video.
</div>
<script type="text/javascript">
var params = { allowScriptAccess: "always" };
var atts = { id: "myytplayer" };
swfobject.embedSWF("http://www.youtube.com/v/82-FJyniP7A&enablejsapi=1&playerapiid=ytplayer&autoplay=1",
"ytapiplayer", "425", "356", "8", null, null, params, atts);
function onYouTubePlayerReady(playerId) {
ytplayer = document.getElementById("myytplayer");
ytplayer.mute();
}
</script>