 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
changingtools.com

Joined: 03 Nov 2008 Posts: 7 Location: Sydney
|
Posted: Tue Nov 04, 2008 4:39 pm Need Code to start Googlevideo on website as people open pag |
|
|
|
Can anyone help me how to edit this code to start my Googlevideo as people open the webpage:
<p style="text-align: center;"><embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=-3302837392109566579&hl=en&fs=true" style="width:400px;height:326px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"> </embed></p>
This is the code from Googlevideo. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Tue Nov 04, 2008 6:36 pm |
|
|
|
| Try adding autostart="true" to embed tag. BTW, there is NO </embed> tag. You might also look into using the <object></object> tags. |
|
changingtools.com

Joined: 03 Nov 2008 Posts: 7 Location: Sydney
|
Posted: Tue Nov 04, 2008 7:01 pm No satisfaction |
|
|
|
I tried to put in the autostart="true" into the code, but with no luck. This is how the code looks like after I've edit the code:
<p style="text-align: center;"><embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=-3302837392109566579&hl=en&fs=true" autostart="true" style="width:400px;height:326px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash"> </embed></p>
If I replace <embed> with <object> and </embed> with </object> ,then the video does not show on my website.
Thanks for all help |
|
sticks464

Joined: 31 Dec 2006 Posts: 1284
|
Posted: Tue Nov 04, 2008 7:19 pm |
|
|
|
This is what your code should be
| Code: |
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' style="width:400px; height:326px;">
<param name='movie' value="http://video.google.com/googleplayer.swf?docid=-3302837392109566579&hl=en&fs=true"">
<param name='quality' value="high">
<param name='autostart' value="true">
<script type="text/javascript">
document.write('<embed src="http://video.google.com/googleplayer.swf?docid=-3302837392109566579&hl=en&fs=true"" quality="high" style="width:400px; height:326px; autostart="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">')
</script> |
autostart="true" won't work as you can't start an external movie player since it probably doesn't have action script written in to allow this parameter. |
|
changingtools.com

Joined: 03 Nov 2008 Posts: 7 Location: Sydney
|
Posted: Tue Nov 04, 2008 7:24 pm Found the Answer |
|
|
|
I found the answer and it works.
If you're trying to get your embedded video to play automatically,
find the end of the embed string and add a space followed by:
FlashVars="autoPlay=true"
My new code looks like this:
<p style="text-align: center;"><embed id="VideoPlayback" src="http://video.google.com/googleplayer.swf?docid=-3302837392109566579&hl=en&fs=true" style="width:400px;height:326px" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" FlashVars="autoPlay=true"> </embed></p>
Thanks Painless Designs for your advice as well. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 1417 Location: Biloxi, MS
|
Posted: Tue Nov 04, 2008 7:40 pm |
|
|
|
I didn't make it clear that you can't dump embed code inside of object tags and have it work. Although this site writes lousy code and inserts the </embed> tag, which doesn't exist, it does write the media player code for different media players. It also allows you to test your media if media file is online.
Embedded Media HTML Generator
For popup Video: Video Pop-Up Maker
Sometimes I don't take the time to flesh out my answers, but as you can see, I have very good backup. Thanks sticks464! |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|