// Articles / Streaming Video in HTML Pages

Posted The: 01/10/2008 - AT: 4:34

There are several methods to stream your video, this article will eventually cover each method, (when either i get the time, or someone elese has posted it in the comments).

Streaming with Flash

For now lets cover an increasingly used method, which is converting your videos to flash. The flash player installed on your users system will automatically start playing the file while its downloading, this dose however not work in Internet explore. Luckily there is simple, and well known solution, which i describe later.

The code to embed a flash file is displayed below:

<object type="application/x-shockwave-flash"
data="Player.swf?path=Video.swf" style="width:320px;height:240px;">
<param name="movie" 
value="Player.swf?path=Video.swf">
</object>

To make Streaming work in Internet explore, we need to include the video inside another swf file.

Before we can do this, we need to tell the other file where the video is located, this is done through the use of an URL parameter, Player.swf?path=(YourVideoHere.swf). Luckily we could use this to our advantage by designing our own player in ActionScript, more on this later.

I expect to update this article, when i got better time.

For now, simply make a new flash file called Player.swf, with a single frame containing the following actionscript:

_root.loadMovie(_root.path,0);

This should make sure your streaming works both in IE as well as other browsers.

Stumble It!

Author: BlueBoden

Comments: [0]

  1. HTML Tutorial
  2. CSS Tutorial
  3. XHTML Tutorial
  4. RSS Tutorial
  5. PHP Tutorial
  6. htaccess Tutorial
  7. Server Tutorial

Checked At:09:15

6 Guests

0 Users

Online doing the past 15 Minutes!

PageRanking.dk - Flere hits og højere PageRank - GRATIS tilmelding!

This page was created in 0.0701858997345 seconds

Welcome Guest