homepage Welcome to WebmasterWorld Guest from 54.242.241.20
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / Web Video Creation and Optimization
Forum Library, Charter, Moderators: travelin cat

Web Video Creation and Optimization Forum

    
What code for embedding .flv-files on own website
Oliver Henniges

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3811966 posted 7:48 pm on Dec 20, 2008 (gmt 0)

I made some first tests with flv-files, which I am trying to integrate into my website. However, my browser attempts to download the file, instead of displaying them in the flash-player.

I found some code-snippets here on webmasterworld, but still did not manage to modify them properly. Is there an additonal .htaccess-entry required? Or is that an alternative method? What's the exact syntax for a file named "test.flv"?

 

Oliver Henniges

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3811966 posted 8:39 pm on Dec 20, 2008 (gmt 0)

OK, I found I need an .swf-file to preload the .flv-file. Any chance to create that without professional flash-software?

garabato

5+ Year Member



 
Msg#: 3811966 posted 10:21 pm on Dec 29, 2008 (gmt 0)

Sorry, but if you upload the video. Flv to your server, you must first determine whether your server supports extensions. Flv

Unfortunately, very few servers that are offered to support FLV or better ffmpeg and ruby

Ask your hosting provider if it supports flv but never be able to view videos stored on your hosting.

Another simplest and cheapest option is to take the HTML code that provide site youtube.com type, mivideotube.com, dailymotion.com or similar and paste this code into your website

Samizdata

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3811966 posted 12:13 am on Dec 30, 2008 (gmt 0)

I won't recommend one because I don't use them, but there are various ready-made embeddable SWF files available to play "Flash video for the web", and I believe that some are free or have a liberal licence.

Necessarily limited, but no Flash authoring software required.

...

Oliver Henniges

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3811966 posted 1:22 pm on Dec 30, 2008 (gmt 0)

thx for your reply.

as a matter of fact I downloaded a good swf-player and managed to implement the video a day before christmas.

However, I'm not really satisfied with this: The swf-player is fed with some javascript code, which seems to be responsible for the fact that the video cannot be shown "embedded" e.g. on google-video-search. I still did not get this syntax with "<object>...<embed>..." running.

> you must first determine whether your server supports extensions. Flv

Yes. I recall defining this in .htaccess when I put a google-earth-kmz-file on our "about-us-" page. But I thought that

a) the header of the .flv-file: Content-type: application/x-shockwave-flash
and
b) the object-notation: <object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="450" height="450"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=7,0,0,0">

which I found in various threads would automatically force the browser to download flash-player.

Do I really have to define this additionally in .htaccess? If so, what is the precise systax?

In addition to all this, I believe it is quite important to get flash-tags of whatever kind (e.g. text) indexed by the search-engines for reasons of SEO. I still have to learn quite a lot on all this.

travelin cat

WebmasterWorld Administrator travelin_cat us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3811966 posted 3:59 pm on Dec 30, 2008 (gmt 0)

Oliver,

You do not need to alter your .htaccess file to play flash files on your server.

Oliver Henniges

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3811966 posted 1:16 am on Dec 31, 2008 (gmt 0)

travelin cat,

the flash files work fine. The question is: How does the visitor's browser behave, if it doesn't have the required flash-version (9?) installed?

Samizdata

WebmasterWorld Senior Member 5+ Year Member



 
Msg#: 3811966 posted 1:38 am on Dec 31, 2008 (gmt 0)

My preferred method is to embed SWF files using swfObject, which allows you to detect the required version and offer alternate content (e.g. an image with a caption "Flash 9 Required").

And if memory serves, Flash 8 should normally be enough.

...

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Web Video Creation and Optimization
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved