Stream simple Flash files from Cloud Files
This tutorial describes how to stream media files from Cloud Files to a website. It assumes that you have a video file uploaded to Cloud Files and that the container it is in is public. It also uses Flowplayer, which is an open-source Flash video player registered under the GPL.
Cloud Files containers that are published and marked as public are delivered over the Akamai Technologies global content delivery network (CDN). For streaming flash files from your Cloud Files, Akamai provides pseudostreaming.
Pseudostreaming works as follows: When a video is initially loaded, the player reads and stores a list of seek points as part of the video’s metadata. These seek points are offsets in the video (both in seconds and in bytes) at which a new key frame starts. To accomplish this, Akamai’s streaming supports the HTTP Range header to identify those seek points. Real Time Messaging Protocol (RTMP) streaming is not supported.
Pseudostreaming differs from what Akamai offers with their iOS streaming. iOS streaming is a form of adaptive streaming. The encoder (or a separate segmented process) produces H.264/AAC content in a sequence of small content segments, in MPEG-2 TS format (.ts). There is also a m3u8 index file that references these segments; in the case of live content, the M3U8 is continuously updated to reflect the latest content.
For more information about pseudostreaming, see JW6: Pseudo Streaming in Flash.
For more information about iOS streaming, see Technical Note TN2224 on the Apple Developer site.
Supported streaming formats and codecs
The following formats are supported by Akamai streaming.
|Container||Video codec||Audio codec||Comments|
|Video-only works as well. For Nellymoser, only the 8 kHz and 16 kHz mono sound formats are supported.|
|Can be audio-only (AAC) or video-only.|
- A .flv video
- A text editor
- Go to the Akamai FlowPlayer and download the free version of FlowPlayer.
- Save the zip file to your desktop.
- Extract the zip file to your desktop.
- Upload the following files to Cloud Files by using the Cloud Control Panel:
Create an XHTML file
Create a simple XHTML file that calls Flowplayer and embeds it onto the page. Use the following code, making the following substitutions:
- On line 3, replace
http://c022320192.cdn.cloudfiles.rackspacecloud.com/flowplayer-3.5.min.jswith your version of this file.
- On line 7, replace
http://c022320192.cdn.cloudfiles.rackspacecloud.com/video.flvwith the location of your video file.
- On line 12, replace
http://c022320192.cdn.cloudfiles.rackspacecloud.com/flowplayer-3.5.swfwith your version of this file.
Save this XHTML file and run it from your local machine.
If it is working correctly, the Flash video loads quickly and streams. If not, check your code. If you are still having problems after that, call our Support team or submit a ticket through the Cloud Control Panel.
Continue the conversation in the Rackspace Community.
©2018 Rackspace US, Inc.
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License