Page is a not externally linkable
- Code, Content, and Presentation
-- Site Graphics and Multimedia Design
---- Streaming video for the first time


rocknbil - 6:26 pm on Aug 26, 2008 (gmt 0)


The embed element you are using is specific to NN/FF (mozilla). Normally, the way Flash is done is you have an <object> element to display in IE with parameters with the embed tag nested inside that for Moz browsers. It's invalid code, but is what Flash generates on publish.

I wont provide sample code because this is really not the best approach. The best is to use the open source library SWFObject. Google for it and follow the examples. It's really easy to set up. What it does is places a static image of the Flash as a placeholder:

<div id="video"><img src="your-screen-cap-of-video.jpg"></div>

Then when it loads, it replaces the content of video with the Flash. Best of both worlds, it provides accessible content to non-Javascript or Flash enabled browsers.

And it's valid code.

The other problem you might face:

flvplayer.swf

If this is truly a streaming flash player, it will load the .flv externally, buffer it, and begin to play once the buffer is filled. If the entire video is loaded before playing, it's not really streaming. (Google for "NetConnection()" for samples.) But let's get it playing first before deciding if it's streaming or not.


Thread source:: http://www.webmasterworld.com/graphics_multimedia/3730589.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com