Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Need to embed a video
Old 01-26-2008, 08:31 AM Need to embed a video
Average Talker

Posts: 18
Name: Kevin
Trades: 0
Which is the best route to go? The videos my friend gave me for his site were FLV. I converted them to swf and can get some of them to play using fire fox but not in IE.

Any help would be great
kevinb84 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-26-2008, 09:43 AM Re: Need to embed a video
andrei155's Avatar
CEO of BLD Hosting

Posts: 1,514
Name: Andrei
Location: Canada
Trades: 6
I used this piece of code for awhile:

Code:
<script type="text/javascript" src="swfobject.js"></script>
        
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
   var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
   so.write("flashcontent");
</script>
It also needs the swfobject.js located at: http://blog.deconcept.com/swfobject/#download

Simply download that and put it into your folders root. Then copy and past the code above, changing the bold options.
__________________
No Overselling Guarantee
Now Includes a Free Domain
BLD Hosting -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Last edited by andrei155; 01-26-2008 at 09:43 AM.. Reason: spelling
andrei155 is offline
Reply With Quote
View Public Profile Visit andrei155's homepage!
 
Old 01-26-2008, 09:52 AM Re: Need to embed a video
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
I use this for Flash (change the bold to suit your needs):

Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="660" height="266" id="Doggie" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="Doggie2.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ac5d32" /><embed src="Doggie2.swf" quality="high" bgcolor="#ac5d32" width="660" height="266" name="Doggie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
and this for Mov (again, change the bold to suit):

Code:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
        codebase="http://www.apple.com/qtactivex/qtplugin.cab"
        width="320" height="260">
           <param name="src" value="video/BYJazz1.mov" />
           <param name="autoplay" value="false" />
           <param name="pluginspage" value="http://www.apple.com/quicktime/download/" />
           <param name="controller" value="true" />
           <!--[if !IE]> <-->
           <object data="video/BYJazz1.mov" width="320" height="260" type="video/quicktime">
             <param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
             <param name="autoplay" value="false" />
             <param name="controller" value="true" />
            </object>
           <!--> <![endif]-->
          </object>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Old 01-26-2008, 11:22 AM Re: Need to embed a video
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
You might want to read this stickie:
http://www.webmaster-talk.com/html-f...audio-web.html

swfObject is one of the easiest to implement and completely avoids that nasty <embed> tag. I've found DW's code to be a bit buggy.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 01:24 PM Re: Need to embed a video
Average Talker

Posts: 18
Name: Kevin
Trades: 0
Thanks a bunch! I used the swfObject script and it worked great on both IE and Firefox. The only trouble I'm having now is that at the end of the video the black screen remains there. What would be the easiest way to either make it white or add an image to replace it once the movie has finished playing?

The site in question is http://www.spinellimedia.com

Thanks
kevinb84 is offline
Reply With Quote
View Public Profile
 
Old 01-31-2008, 03:20 PM Re: Need to embed a video
TripleMoons's Avatar
Webmaster Talker

Posts: 619
Name: Stephanie Kunder
Location: Hanover, PA
Trades: 0
I imagine that's something you would have to do in Flash if you have the original file (it's my understanding you can't edit swf files).
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

TripleMoons is offline
Reply With Quote
View Public Profile Visit TripleMoons's homepage!
 
Old 01-31-2008, 07:49 PM Re: Need to embed a video
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
I agree, the flash file would need to be edited to fix that looping problem.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need to embed a video
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.70404 seconds with 12 queries