HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Need Code to start Googlevideo on website as people open pag
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia
View previous topic :: View next topic  
Author Message
changingtools.com



Joined: 03 Nov 2008
Posts: 7
Location: Sydney

PostPosted: Tue Nov 04, 2008 4:39 pm     Need Code to start Googlevideo on website as people open pag Reply with quote

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

PostPosted: Tue Nov 04, 2008 6:36 pm     Reply with quote

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

PostPosted: Tue Nov 04, 2008 7:01 pm     No satisfaction Reply with quote

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

PostPosted: Tue Nov 04, 2008 7:19 pm     Reply with quote

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

PostPosted: Tue Nov 04, 2008 7:24 pm     Found the Answer Reply with quote

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

PostPosted: Tue Nov 04, 2008 7:40 pm     Reply with quote

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!
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial