Uh-oh, it looks like your Internet Explorer is out of date.

For a better shopping experience, please upgrade now.

Essential JMF: Developer's Java Media Players

Essential JMF: Developer's Java Media Players

by Rob Gordon, Stephen Talley, Stephen Talley, Robert Gordon (Joint Author)
Essential JMF: Java Media Framework helps you master the key elements of JMF development, including class structure and Player Design, plus advanced techniques such as synchronizing multiple Players and creating Player controls. Walk step-by-step through constructing robust JMF-based software. Learn how to extend the support of the Java Media Framework by


Essential JMF: Java Media Framework helps you master the key elements of JMF development, including class structure and Player Design, plus advanced techniques such as synchronizing multiple Players and creating Player controls. Walk step-by-step through constructing robust JMF-based software. Learn how to extend the support of the Java Media Framework by creating Players for new media formats and protocols. Discover straightfoward ways to produce media-enabled software that works with web browsers and plug-ins.

If you're an experienced Java developer, Essential JMF: Java Media Framework brings together insiders' insights, world-class techniques, and industrial-strength sample code in one concise book. Essential JMF delivers:

  • Detailed coverage of the Java Media Player API - the most eagerly anticipated part of the JMF
  • The best techniques for managing Players, Clocks, and Controller states
  • A complete toolkit of reusable software components for easy use and extension of the JMF
  • Extensive example code to help you learn and understand the fine points of the Java Media Framework

Editorial Reviews

Describes JMF's player API and how it is used to integrate audio and video playback into Java applications and applets. The discussion of how to implement Java APIs takes place in the context of developing a custom framework for building player implementation. Material covered includes explanations of the controller, the player, multiple player synchronization, controller interface and transitions, and building applets and applications. Annotation c. by Book News, Inc., Portland, Or.

Product Details

Pearson Education
Publication date:
Essential Series for Web Professionals
Product dimensions:
5.97(w) x 8.92(h) x 1.31(d)

Read an Excerpt

PREFACE: Preface

What This Book Is About

This book describes the Java Media Framework (JMF) API and how to use itto integrate audio and video playback into Java applications and applets.The JMF API consists of three pieces: playback, capture and video conferencing.This book covers only the first piece, specifically, the Java MediaPlayer API.

This book does not stop at the API, however. It also discusses the differentimplementations of that API, how they differ, and even their failure to conformto the API. Where the API is open to interpretation, a discussion of variousinterpretations is undertaken.

This discussion appears in the context of developing a framework for build-ingyour own custom Player implementation. The framework code appearingin this book provides all the API-compliance code necessary for building anAPI-compliant Java Media Player, leaving you to focus on the media-specificcoding issues.

Finally, this book has sprinkled throughout examples from the EssentialJMF Toolkit, a collection of reusable Java classes for many multimedia occasions.1

Who Should Read This Book?

This book is written for the Java engineer or aspiring Java engineer who needsto integrate audio and video into his applications or applets. It assumes somefamiliarity with the Java language but you need not be an expert. Webmasterswith JavaScript and perl experience could easily adopt some of the examplesin this book for rudimentary multimedia applications. In other words, if youare interested in Java and multimedia, this book becomes you.

1Cocktail parties, bar mitzvahs,baptisms, etc.

Who Should Buy This Book?


Structure of This Book

This book contains four distinct parts. We have even named the parts andinserted a decorative page between them so there is no doubt as to which iswhich.

Part I, "Using the Java Media Framework," comprises the first ten chapters.Part I was written for the reader who wants to learn to use the JMF Player.After finishing Part I, you will know all there is to know about using a Playerfor playback of currently supported media types.

If that is not enough to satisfy you, Part II, "Extending the Java MediaFramework," will show you how to build a complete Player to support a newmedia type. Not only will Part II show you how to do this, but when you arefinished, you will have a good deal of code available to use with still newerand more exciting media types.

In addition, Part II covers the building of a custom GUI for a Player, againproviding lots of reusable code. And, if that were not enough, Part II coversthe creation of a new DataSource for support of an actual protocol, the NNTPprotocol for downloading articles from news groups. Put together the customPlayer and DataSource developed in Part II and you have a Java Media Playerfor reading articles from your favorite news group. Strange, but elegant!

In Part III, "Building JMF Applets and Applications," a simple media mixerapplication is presented. Using this application you can generate HTML forinclusion in your web pages that need to playback multiple media sources.The MultiPlayer class, also presented in Part III, can then be dropped rightinto your applet to play the media described by the HTML.

The books finishes up with a collection of appendices in Part IV. Hereinyou will find complete reference material for the JMF API and the EssentialJMF Toolkit. There is also a discussion of the use of the JMF with variousbrowsers, some potentially useful URL resources and a virtual glossary, toboot.

Using This Book

The first three parts of this book can, more or less, stand alone. If you do nothave an immediate need to create your own Player, reading Part I and referencingthe appendices as needed will meet your needs.

If you need to create your own custom Player to support a new media format,Part II is for you. If you are in a real hurry, you may be able to get by withjust reading Chapter 18, "Creating a Custom Player." You can at least startthere and refer back to earlier chapters in Part II as necessary. In any case,understanding Part II really depends upon having the knowledge and wisdomcontained in Part I. If you did not get such knowledge from somewhere else,you may as well get it from there.If you need an easy way to play multiple media files from an applet, godirectly to Part III.

Part IV is the work horse section of the book: It is there when you need it,ready and willing.

We recommend you do not read this book backwards. We cannot guaranteethat there are no hidden, satanic messages.

Gathering the Pieces

To derive the fullest benefit and pleasure from reading this book, you willneed to have the following pieces of software installed on your computingdevice.

  • A version of the JDK
  • The Swing component set from the Java Foundation Classes
  • An implementation of the JMF
  • The Essential JMF example source and Toolkit

A section is dedicated to the acquisition and installation of each of thesepieces. In addition to this software, there is the presumption that some fundamentalsoftware already exists on your computer, specifically, the necessaryaudio and video device drivers. For Solaris and Windows machines that havenot been butchered by an overzealous system administrator, this a safeassumption.

Downloading JDK

To use Sun's implementation of the JMF, you will first need to have installedsome flavor of JDK 1.1.x. The latest version is available at ...

Customer Reviews

Average Review:

Post to your social network


Most Helpful Customer Reviews

See all customer reviews