Java* Media Framework Tutorial - Lesson 1AThe Basic Player
The Java* Media Framework uses a generic interface called Player to display audio and visual media. Use the createPlayer() method of the Manager class to create an object that implements the Player interface. The Manager object then examines the URL and constructs the internal resources for this instance of the Player. The Manager class can build a Player from numerous URL file types. To create a Player call: Player myPlayer = Manager.createPlayer(new URL(getDocumentBase(), "clip.avi"));
This page was last updated on Feb 11th, 1997.
|