Amazon.com: Essential JMF - Java Media Framework (0076092004509): Rob Gordon, Stephen Talley: Books

Have one to sell? Sell yours here
Essential JMF - Java Media Framework
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Essential JMF - Java Media Framework [Paperback]

Rob Gordon (Author), Stephen Talley (Author)
3.0 out of 5 stars  See all reviews (5 customer reviews)


Available from these sellers.



Book Description

November 12, 1998 Essential (Prentice Hall)
Essential JMF delivers all the information experienced developers need to build multimedia players with the new Java Media Framework. Like all books in Prentice Hall PTR's Essential Series, it delivers no-nonsense, nuts-and-bolts coverage in a task-oriented format that helps professional developers get answers fast. The authors start by introducing JMF, including class structure, player design and basic multimedia concepts. They show how to customize JMF, presenting an Abstract Player Framework that cuts 90% of the work needed to create custom players. You'll walk through building a robust mixer applet, learn to media-enable existing Java software, integrate JMF with JavaScript, and much more. If you want to build multimedia into your Java applications, Essential JMF is all you need to get started.

Customers Who Bought This Item Also Bought


Editorial Reviews

From the Inside Flap

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?

Everyone.

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 JDKThe Swing component set from the Java Foundation ClassesAn implementation of the JMFThe 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.If you still have a versionof JDK 1.02 sitting around and will only be using Intel's JMF, you are set.However, to use the examples included with this book, you will need JDK 1.1.

As part of installing your JDK, you will want to set the JDK_HOME environmentvariable to reference the directory in which the JDK was installed. Thisenvironment variable is referred to in later discussions.

Downloading Swing

Since all the GUI code written for this book uses Swing components, you willneed to have the Swing jar files installed on your system.

The Swing component set is available from The Swing Connection.The downloaded file is a ZIP filecontaining jar files for different platforms. After unzipping the downloadedfile, say in /jfc (d:\jfc for Windows), you will want to change yourCLASSPATH as shown below, depending on which platform you are running.Swing on Solaris

On Solaris, you will want to include swing.jar in your CLASSPATH. Forexample, using ksh, type:

% export CLASSPATH="/jfc/swing.jar:$CLASSPATH"

Swing on Windows

If you are running on a Windows machine and want the Windows Look &Feel, you will also need to add windows.jar to your path.

% set CLASSPATH=\
   c:\jfc\swing.jar;c:\jfc\windows.jar;%CLASSPATH%

Including only swing.jar file in your CLASSPATH will give you the Java(or Metal) Look & Feel.

If you are new to Swing, there is more information on the above topics inthe README file that comes with the Swing distribution and resides in theinstall directory.

Downloading JMF

You can obtain a copy of a JMF implementation from either Sun or Intel. Ifyou will be using JMF on Solaris, you are limited to Sun's implementation. Ifyou will be running on Windows 9x or Windows NT, you can choose betweenSun and Intel.For example, if youhave downloaded the JMF distribution file into /home/me/tmp and you wantto install JMF in /home/me/jmf, you would perform the following steps:

% cd /home/me
% sh /home/me/tmp/jmf101-solaris2-sparc.bin
% export JMFHOME=/home/me/jmf

The JMF will now be installed in /home/me/jmf and the JMFHOME environmentvariable will have the value /home/me/jmf.

The following table describes the recommended configuration for usingSun's JMF on a Solaris platform.

Up-to-date installation instructions and system requirements can be foundin $JMFHOME/html/setup.html after you have downloaded and installedthe JMF. This file also contains instructions for running the sample code thatcomes with the JMF distribution.

Before using Sun's JMF on Solaris, you need to augment two environmentvariables. First, you must add the JMF classes to your CLASSPATH.

% export CLASSPATH="$JMFHOME/lib/jmf.jar:$CLASSPATH"

You must also modify your LD_LIBRARY_PATH variable so that the JavaVirtual Machine (JVM) can find the native libraries required by the JMF.

% export LD_LIBRARY_PATH="$JMFHOME/lib:$LD_LIBRARY_PATH"

Installing Sun Implementation on Windows

Sun's JMF for Windows 9x and Windows NT is installed using InstallShield.Simply double-click on the downloaded file and the installation begins. Notethe name of the directory in which you install the JMF and set the JMFHOMEenvironment variable to this value. This environment variable is referred tothroughout this Preface.

The following table describes the recommended configuration for usingSun's JMF on a Windows machine.

Up to date installation instructions and system requirements can be foundin $JMFHOME/html/setup.html after you have downloaded and installedthe JMF. This file also has instructions for running the sample code that comeswith the JMF distribution.

Before using Sun's JMF on a Windows machine, you need to augment twoenvironment variables. First, you must add the JMF class

About the Author

Rob Gordonis a software consultant for Sun Microsystems, Inc., serving on the JMF development team. He has extensive experience as a Java software developer and as a developer of educational materials on advanced information technology. Stephen Talleyis a software engineer for Sun Microsystems, Inc., and a member of the JMF development team.

Product Details

  • Paperback: 672 pages
  • Publisher: Prentice Hall; 1st edition (November 12, 1998)
  • Language: English
  • ISBN-10: 0130801046
  • ISBN-13: 978-0130801043
  • Product Dimensions: 9 x 6 x 1.2 inches
  • Shipping Weight: 1.8 pounds
  • Average Customer Review: 3.0 out of 5 stars  See all reviews (5 customer reviews)
  • Amazon Best Sellers Rank: #100,158 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

 

Customer Reviews

5 Reviews
5 star:
 (1)
4 star:
 (1)
3 star:    (0)
2 star:
 (3)
1 star:    (0)
 
 
 
 
 
Average Customer Review
3.0 out of 5 stars (5 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

4 of 4 people found the following review helpful:
4.0 out of 5 stars Excellent intro to JMF, but only covers 1.0, August 18, 2003
By A Customer
This review is from: Essential JMF - Java Media Framework (Paperback)
I'm about halfway through this book. After being mystefied for a while by the Player, Contoller, Clock, the various transition states, when calls are legal, syncStart, etc., I finally decided to read up on it. The good news is that the API and JMF architecture are explained thoroughly and in detail. The bad news is that JMF has been significanly enhanced since the book was published. I would recommend reading the JMF Programmer's guide from the JMF web site to get up to snuff on version 2.

The point is that you can intelligently read the programmers guide, which assumes a lot of knowledge, if you've become grounded in the basics. There is no way you can read through this book and not have a very clear understanding of the underpinnings of JMF.

The other thing I enjoy about this book is the programming examples. The authors clearly understanding the Java language and how it was intended to be used. I think this is important for guys like me out in the field who are self-taught. In particularly, the threading code is nicely done and provides good instruction in an area this book isn't necessarily intended for.

The authors implement a framework for JMF in part 2. Studying how this framework is implemented gives a great "under-the-hood" look at JMF. I've gotten a chapter or two into that and plan to finish out studying Part 2 this week.

I found out that the author's work for sun and at least one was part of the JMF development team. This makes sense, because the primary focus of the book is the JMF API. I feel much more competent looking through the JMF docs now, in part because of the familiarity with the JMF API developed from this book.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


4 of 4 people found the following review helpful:
5.0 out of 5 stars Nice book !!, June 10, 2001
By A Customer
This review is from: Essential JMF - Java Media Framework (Paperback)
Compare core Java media framework ( by author Linden DeCarmo), this book is much better!! It is orgainzed very well and also has something you can search from outside of JMF reference guide. The code is previous and professional!
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


2 of 2 people found the following review helpful:
2.0 out of 5 stars Not a good book., March 23, 2002
By A Customer
This review is from: Essential JMF - Java Media Framework (Paperback)
It is good book for someone want learn the basics of JMF. But it doesn't cover some important topic like broadcasting and conferencing. This cover only javax.media. Not good for advanced users.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews



Only search this product's reviews



Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product).
 
(1)

Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   
Related forums


Listmania!


Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject