Skip to Content
Flex 4 Cookbook
book

Flex 4 Cookbook

by Rich Tretola, Marco Casario, Todd Anderson, Joshua Noble, Garth Braithwaite
May 2010
Intermediate to advanced
760 pages
19h 26m
English
O'Reilly Media, Inc.
Content preview from Flex 4 Cookbook

Chapter 10. Video

With a high level of adoption and good codec support, the Flash Player is a powerful platform for creating video players. Customizing these video players has never been easier, thanks to the Flex 4 SDK’s improved video support and the new Spark skinning architecture. The s:VideoPlayer component contains skin parts for the individual video controls, including a play/pause button, video scrub bar, volume control, and full screen button. This chapter covers the basics of setting, using, and skinning the video players provided in the SDK.

This chapter looks at the Open Source Media Framework (OSMF) for displaying video within a Flex application. The OSMF is an ActionScript 3-based extensible media framework designed to facilitate video monetization through advertising and standard player development. As the name implies, it is an open source project; it was created by Adobe (http://opensource.adobe.com), and although it is not dependent on any Flex classes, it is included in the SDK. The fact that it is not dependent on the Flex framework allows the OSMF to facilitate standard video player development across Flex and ActionScript-only projects.

10.1. Create a Basic Video Player

Problem

You need to display video in your Flex application.

Solution

Use s:VideoDisplay to create a basic chromeless video player.

Discussion

The s:VideoDisplay component is a simple way to display video. Because the component is chromeless, it does not contain any controls. You must, therefore, control ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

What Successful Brick-and-Mortar Retailers Get Right

What Successful Brick-and-Mortar Retailers Get Right

Rob Angell
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
Coaching for High Performance

Coaching for High Performance

MIT Sloan Management Review

Publisher Resources

ISBN: 9781449388195Errata Page