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 Media Server Developer Center /

Understanding live DVR – Part 2: Using DVRCast with Flash Media Live Encoder 3

by David Hassoun

David Hassoun
  • david.realeyes.com

Created

22 May 2009

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Flash Media Interactive Serv... Flash Professional streaming templates video

Requirements

Prerequisite knowledge

A basic understanding of how to use video in Flash CS4 Profesisonal, the FLVPlayback component, and Flash Media Server 3.5.

User level

Intermediate

Required products

  • Flash Media Live Encoder (Download trial)
  • Flash Professional CS4 (Download trial)

Sample files

  • live_dvr_pt2.zip (734 KB)

Additional Requirements

DVRCast 1.1 application, FLVPlayback 2.5 component

  • Download

This article provides a simple example of streaming and displaying live DVR-enabled content. You will capture and encode the content with Adobe Flash Media Live Encoder 3, stream the content to the DVRCast application (dvrcast_origin) on Flash Media Interactive Server 3.5, and play the content with the FLVPlayback 2. 5 component.

As I mentioned in Part 1, live DVR is the process of recording or "caching" a live video stream on the server and then enabling viewer access to the live or recorded stream content as it streams. A unique opportunity for this approach is making video-on-demand (VOD) content available quickly following the live event without the time-consuming requirement of sending, encoding, and uploading it. The recorded content can be made available as VOD content.

After reading this article, you should have a basic understanding of implementing the new DVRCast server-side application, streaming and recording content with Flash Media Live Encoder 3, and playing back the live DVR content with the updated FLVPlayback 2.5 component. If you want to use Flash Media Live Encoder for DVR, you must pair it with the DVRCast server-side application. This application is provided by Adobe and used in this article, and you must use Flash Media Live Encoder 3, as previous versions will not work. The same goes for the FLVPlayback 2.5 component; the updated version linked to in this article must be used when pairing with the new DVRCast server-side application.

Note: DVR functionality is not available with Flash Media Streaming Server because of the server-side caching/recording requirements.

DVRCast with FLVPayback 2.5 and Flash Media Live Encoder 3

As a broadcaster, you can enhance your high-quality, live streams with DVR functionality. Flash Media Live Encoder 3 has been updated to support enabling DVR functionality on your live stream. Adobe released the Flash Media Interactive Server application called DVRCast—available for download from Adobe's Flash Media Server Productivity Tools page—to help manage your DVR workflow. To make it easier to develop your client application, the updated FLVPlayback 2.5 component for Flash CS4 Professional and Adobe Flex 3 has been enhanced with new functionality and management capabilities to consume and interact with live DVR-enabled streams.

Building an appropriate and robust solution requires additional encoding and streaming tools, plus the addition of a robust client-side player with server-side script to manage the event, recording, scheduling, and client-side interaction—as well as considerations for multiserver or origin/edge configurations. Along with the updated tools, the addition of the DVRCast server-side application offers a solution that is powerful, extensible, and easy to use out of the box. Flash Media Live Encoder 3 supports server-side recording, both on the start of publishing and after publishing has started, by manually invoking recording from the interface. An important note about using the new server-side recording functionality provided by Flash Media Live Encoder 3 is that it requires the server-side ActionScript (SSAS) provided with the DVRCast application. The source code is available and can be copied or merged in with existing server-side applications to enable Flash Media Live Encoder 3 and the FLVPlayback 2.5 component to work.

The updated FLVPlayback 2.5 component sports a few new properties regarding DVR with Flash Media Server. For simple usage, all you have to do is set the isDVR property to true—which will supersede the isLive property. There are also other parameters for initially snapping to the live point, such as dvrSnapToLive, and properties to allow some more fine-tuned performance or accuracy.

By default, when using the updated FLVPlayback 2.5 component with the DVRCast server-side application, the player will have a dynamic progress bar in relation to the preset or growing size of the recorded content. The FLVPlayback 2.5 component also has the ability to set a fixed, predetermined duration which will be represented in the progress bar in the client application if you desire. If you set a fixed, predetermined duration, it will disable the logic meant to handle the dynamic duration as the content is being recorded for you from the DVRCast application. (Read more about the dvrFixedDuration property in the special ActionScript 3.0 API documentation that accompanies the FLVPlayback 2.5 fl.video package.)

To get the DVRCast server-side application, Flash Media Live Encoder 3, and the updated FLVPlayback 2.5 component, check out the links in the Requirements section of this article.

Walkthrough: DVRCast 1.1, Flash Media Live Encoder 3, FLVPlayback 2.5

In this walkthrough you will:

  • Copy the DVRCast application to the Flash Media Server applications folder
  • Broadcast a live video from Flash Media Live Encoder and record the content to the server
  • Use the FLVPlayback 2.5 component to connect to a live DVR stream (see Figure 1)
Flash Media Live Encoder, Flash Media Interactive Server, and the FLVPlayback 2.5 component working together to form a live DVR streaming media solution
Figure 1. Flash Media Live Encoder, Flash Media Interactive Server, and the FLVPlayback 2.5 component working together to form a live DVR streaming media solution
  1. Install the dvrcast_origin application into the {Flash Media Server install}/applications/ directory. This is done after extracting the dvrcast_origin application and moving it into the Flash Media Server application directory.
  2. Download and install the FLVPlayback 2.5 component.
  3. Launch Flash CS4 Professional.
  4. Open the file DVR-FLVPlayback.fla in the {start files}/hands-on/DVR-FMLE-FLVPB/start/ directory.
  5. Open the Components panel (Window > Components) and expand the Video category (see Figure 2).
Expanded Video category in the Components panel
Figure 2. Expanded Video category in the Components panel
  1. Drag the FLVPlayback 2.5 component onto the Stage, and click it to select it.
  2. Open the Component inspector (Window > Component Inspector) and set the isDVR property to true. Also set the source property to the following (see also Figure 3):
rtmp://{yourserver}:1935/dvrcast_origin/livestream
Setting the source property for the live video stream
Figure 3. Setting the source property for the live video stream
  1. Launch Flash Media Live Encoder 3.
  2. Under the Encoding Options tab, enable video by clicking the Video check box (see Figure 4).
Enabling video on the Encoding Options tab
Figure 4. Enabling video on the Encoding Options tab
  1. Set the RTMP path to the following (see also Figure 5):
rtmp://{your server}/dvrcast_origin
Setting the RTMP path
Figure 5. Setting the RTMP path
  1. Click the Connect button.
  2. Check the DVR Auto Record option at the bottom of the Flash Media Live Encoder window (see Figure 6).
Setting DVR Auto Record option
Figure 6. Setting DVR Auto Record option
  1. Click Start.
  2. Return to Flash and test the application (Control > Test Movie). You should see the live stream that is being recorded from Flash Media Live Encoder playing in the SWF file (see Figure 7).
Live stream playing in the SWF file
Figure 7. Live stream playing in the SWF file

Where to go from here

The DVRCast application from Adobe paired with Flash Media Live Encoder 3 and the enhanced FLVPlayback 2.5 component provide a powerful trident of tools to deliver powerful live DVR solutions to your audiences quickly. Live DVR can be easy to implement and extend its features and manage using the tools provided.

This article provided only a cursory overview of the full potential of the DVRCast server-side ActionScript application. To learn more, consult the DVRCast documentation on the Flash Media Server Productivity Tools page.

More Like This

  • HTTP Dynamic Streaming with Flash Access protection
  • Beginning Flash Media Server 4.5 – Part 1: Installation
  • Video encoding and transcoding recommendations for HTTP Dynamic Streaming on the Flash Platform
  • Creating a simple multicast video player using OSMF
  • Creating a video sharing web application using Flex, Flash Media Server, and Flash Media Encoding Server
  • Drilling down into new features of Flash Media Server 3
  • Learning Flash Media Server excerpt: Server-side streams
  • Introducing Adobe Flash Media Server 4.5
  • Beginning Flash Media Server 4.5 – Part 5: Streaming with OSMF players
  • Beginning Flash Media Server 4.5 – Part 2: RTMP streaming on-demand video

Tutorials & Samples

Tutorials

  • OSMF video player for AIR for TV using Flash Professional
  • OSMF video player for AIR for TV using Flash Builder
  • Capture, encode, and stream live video over HTTP to Flash and iOS

Samples

  • Best practices for real-time collaboration using Flash Media Server
  • Understanding live DVR – Part 2: Using DVRCast with Flash Media Live Encoder 3
  • Understanding live DVR – Part 1: Implementing a live DVR player

Flash Media Server Forum

More
04/23/2012 FMS Issues
04/23/2012 FMLE 3.2 to FMS 4.5 - Over time the stream delay increases
04/23/2012 Live stream on FMS issues when reaching 1600 concurrent users
04/23/2012 How does main.asc work in signed folder ('live' or 'vod') with FMS4.5?

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