Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / Flash Developer Center /

Building streaming video players in Flash with Open Source Media Framework

by R Blank

R Blank
  • Almer/Blank
  • rblank.com
  • Rich Media Institute

Created

21 December 2009

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Flash Professional OSMF streaming templates video

Requirements

Prerequisite knowledge

This course is useful for two types of students who seek to get up to speed with OSMF:

  • Low- to intermediate-level Flash ActionScript developers who are comfortable coding on the Timeline and want to learn the raw ActionScript, as well as the underlying concepts, required to work with OSMF
  • Higher level coders using Flash or Adobe Flex who want a quick rundown of the core classes utilized when building an OSMF video player

User level

Beginning

Required products

  • Flash Professional CS4 (Download trial)

Sample files

  • osmf_streaming_players.zip (14232 KB)

Additional Requirements

Flash Media Development Server 3.5

  • Download

Note: You must have a Flash Media Server installation or account you can use to fully recreate and use the files in this course:

  • Windows or Linux: Download the free development server for Windows or Linux (linked to above) and read Installing Adobe Flash Media Server 3.5 in the online documentation. Or lease hosted Flash Media Server accounts for development purposes from Influxis.
  • Mac OS: Lease hosted Flash Media Server accounts for development purposes from Influxis.

OSMF Sprint 7 (included in course files)

Note: This article assumes that you have Sprint 7 installed. If you are using a different version, please work with Sprint 7 for purposes of these tutorials. The Sprint 7 SWC is included in the course files; you can find out more about Sprint 7 on the OSMF download page.

The following lessons cover all the basic functionality and concepts required to build streaming video players and dynamic streaming video players in Adobe Flash CS4 Professional using the Open Source Media Framework. The OSMF is Adobe's community-centered approach to standardizing the way that media players—in particular, video players—are built on the Adobe Flash Platform. Although still in prelease, the OSMF encompasses media playback functionality, playlists, branding, advertising, and other monetization aspects, and represents a powerful and comprehensive attempt to standardize a huge portion of the work currently executed in Adobe Flash.

Over the course of five lessons, you'll learn the essential code involved and integrate that code into the video player that I demonstrated in my companion course, Building progressive video players in Flash with the Adobe Open Source Media Framework—which you should follow if you are interested in building progressive video players.

Lessons for building streaming video players in Flash

In these lessons, you'll start with the basics and work your way up to a dynamic streaming video player, using the project built in the previous course in this series, using the OSMF and Flash. Have fun! (Total course duration: 35 min.)

Introduction: Brief overview of the OSMF and installing the SWC

The Open Source Media Framework is useful for both its functionality and its role in standardizing the development of multimedia experiences on the Flash Platform. This section briefly explains the goals and purpose of the OSMF and concludes with a walkthrough of configuring Flash CS4 to work with the OSMF classes. (Running time: 2:45)

Launch introduction

Lesson 1: Upgrading from Sprint 5 to Sprint 7

OSMF is in prerelease, which means that it can still change—and it has in the six weeks since publishing my companion course. As you'll see, just two minor changes prevent the project from the previous course from compiling with the Sprint 7 version of OSMF. So, in this lesson, I explain those changes and get the player running again. (Running time: 6:05)

Launch Lesson 1

Lesson 2: Basic streaming in OSMF

Once you know how to play a video progressively with OSMF, learning how to stream a video is ridiculously, laughably easy. In this lesson, I cover the two options available in ActionScript 3 to stream videos with OSMF. (Running time: 5:58)

Launch Lesson 2

Lesson 3: Implementing basic streaming in your project

Now that you know how to stream, you'll implement that code in your project to have it stream a video over an RTMP connection from Flash Media Server. (Running time: 2:44)

Launch Lesson 3

Lesson 4: Dynamic streaming in OSMF

Multi-bitrate streaming occurs when you specify multiple versions of the same video, encoded at different bitrates, so you can deliver the optimal quality to viewers depending on their bandwidth. Dynamic streaming occurs when you do so on an ongoing basis, so if the viewer's bandwidth changes, you can change videos in midstream. In this lesson, you'll learn the code required to implement dynamic streaming with OSMF. (Running time: 7:50)

Launch Lesson 4

Lesson 5: Implementing dynamic streaming in your project

In this final lesson, you complete your video player by implementing the code you learned in the prior section into your project file to convert your streaming video player into a dynamic streaming video player. (Running time: 9:29)

Launch Lesson 5

Where to go from here

For more information about the OMSF, visit the Open Sourse Media Framework website. To learn more about working with video players, explore the sample projects and templates in the Video Technology Center. To learn more about working with Flash Media Server, check out the Flash Media Server Developer Center.

More Like This

  • Flash 411: Getting your video questions answered
  • Presenting video with the Flash video component in Dreamweaver CS3
  • Controlling web video with ActionScript 3 FLVPlayback programming
  • Creating a Talking-Head Flash Video
  • vidgal_structure_mx2004
  • Generating sounds dynamically in Flash Player 10
  • RealEyes OSMF Player Sample – Part 2: Building and configuration
  • Captioning Flash video with Captionate and the captioning-supported FLVPlayback component skins
  • Troubleshooting Flash video encoding and deployment
  • Delivering a reliable Flash video experience

Flash User Forum

More
04/23/2012 Auto-Save and Auto-Recovery
04/23/2012 Open hyperlinks in new window/tab/pop-up ?
04/21/2012 PNG transparencies glitched
04/01/2010 Workaround for JSFL shape selection bug?

Flash Cookbooks

More
02/13/2012 Randomize an array
02/11/2012 How to create a Facebook fan page with Flash
02/08/2012 Digital Clock
01/18/2012 Recording webcam video & audio in a flv file on local drive

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement