Flash Video Streaming : Introduction – Part 1

December 31, 2010 2:46 am Tags: , No Comments 0


Flash media can be streamed either through Flash Media Communication Protocol (RTMP) or HTTP protocol. This article will explain the differences between these two methods and the different types of stream configurations that you can employ. Additionally, we will provide detailed instructions on how to secure and archive your Flash media in another article.

Types of Flash Media Streaming

GravityLab offers three different methods through which you can stream your Flash media:  Live StreamCast, On-Demand, and HTTP Progressive Download. ‘Live StreamCast’ and ‘On-Demand’ use Flash Media Communication Protocol (Real Time Messaging Protocol or RTMP) to stream Flash media to your clients. HTTP Progressive Download uses standard HTTP protocol to stream flash media. The main advantages that RTMP brings to streaming Flash media is that it is more secure and it supports live streaming. The main advantage of HTTP Progressive Download is that it is easy to implement, the HTTP protocol is more widely supported through firewalls, and it has a more resilient infrastructure.

We’re going to get into a little more detail about some strategies and tactics for deploying your Flash video on GravityLab’s CDN in Flash Media Video Streaming Part 2 (click here to jump to the article).

But we know you’re eager to start embedding your media, so let’s take a minute to go over the embed code you’ll be using:

Let’s Get Going! (Embed your JW player) :

Follow this link over to our members center to automatically embed your video player.

If you are looking to get your flash video up and running quickly without using an automatic embedder, here is a quick cheat sheet for deployment –

1. Upload your FLV, SWF or mp4 video files into your FTP account, into a directory that you create.

FLV files should not be in your account root folder, so create a directory to upload your video into. You can call it whatever you wish.

2. Embed your video player using the code below with links to your video or playlist. Simply copy and paste.

3. You will need to replace the following items for your specific account:

XXXX = Your 4 digit account number

account_name = Your account name that you chose

file_name.flv = Your filename for the video you uploaded, can be FLV, mp4 or SWF

Still need help? Open a support ticket and we’ll be glad to assist!



<script type='text/javascript' src='http://account_name.gravlab.net/00XXXX/jwplayer/swfobject.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
var so = new SWFObject('http://account_name.gravlab.net/00XXXX/jwplayer/player.swf','mpl','480','320','9');



You will need to replace the following lines in the embed code with links to your account and your file (below). It will look just like the example, but with your account / file info. Anywhere you see the number ’00XXXX’ in the code above or below, that needs to be replaced with your account number.

XXXX = Your account number is 4 characters can be numbers and letters.Your code should look like the code above, the numbered list below is just for organization here:

1. var so = new SWFObject(‘http://your_account_name.XXXX.gravlab.net/00XXXX/jwplayer/player.swf’,’mpl’,’480,’320′,’9′); –> Replace the ‘480’,’320′ with the width and height of your video. (don’t forget to replace the XXXX with your account number)

2. <script type=’text/javascript’ src=’http://your_acount_name.XXXX.gravlab.net/00XXXX/jwplayer/swfobject.js’></script> (don’t forget to replace the XXXX with your account number)

3. so.addVariable(‘file’,’Your_file_name.flv’);

5. so.addVariable(‘streamer’,’rtmp://fms.XXXX.gravlab.net/00XXXX/flv/’); (don’t forget to replace the XXXX with your account number – and if you named your folder with your video inside something besides ‘flv’ replace /flv/ with the name of your folder)

6. so.addVariable(‘file’,’XXXX.flv’);

You’re done. Embed the entire code from the START to the END above, anywhere you like in your website.

Take a look at what this video player looks like here

Still have questions? No problem, we’re eager to provide all the support you need. Open a support ticket, send us an email at support@gravlab.com or give us a call. 24x7x365, we’re here to help.