Chapter 32. Playing Video

FEATURED CLASSES

  • flash.net.NetConnection

  • flash.net.NetStream

  • flash.media.Video

In this chapter, I'll cover a huge topic: video. Flash Player is, at the moment, the leading way to watch video content on the web. Although many technologies are nipping at its heels, none has the reach that Flash Player does. With wide adoption of the Open Screen Project (http://www.openscreenproject.org), the Flash Platform is poised to continue delivering content on not just computers but a plethora of thin and mobile devices.

To do real justice to all the activities and topics surrounding video in Flash, I'd need another thick book. Not surprisingly, several such tomes exist. For an expertly detailed reference, I recommend Video with Adobe Flash CS4 Professional Studio Techniques by Robert Reinhardt (Adobe Press, 2009). There are other such books and reference materials available in print and online.

In this chapter, I'll survey how the Flash Platform deals with video: how you can create, encode, deliver, and play it. Most of these activities fall outside of Flash Player, but they are important aspects of video in the Flash universe. After this overview, you'll learn about how to handle video inside Flash Player using ActionScript 3.0, building a simple video player from scratch.

Video and the Flash Platform

In this section, I'll overview the topics surrounding video and the Flash platform, without diving into code. I'll cover what Flash Player is capable of, the many kinds of video, ...

Get ActionScript 3.0 Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.