Transcript Document

Electrical Engineering Software Lab - Technion
Java Multimedia
Player Project
Winter semester 2001/02
Developers:
Omer Boker
Yoel Krasny
Supervisor:
Yan Futerman
Project Definition




Multimedia Player and Converter.
The project is built as stand alone Java application.
The project is built as multi-platform application, in
purpose to run on every platform that has java virtual
machine.
The application is based on Java Multimedia
Framework which is Sun java library supporting
multimedia applications.
Project Features






Playing and presenting multimedia files from all popular
formats.
Converting multi media files from one format to another.
Possibility to save multimedia files in each format.
Managing play lists.
Playing play lists in consecutive or random order.
Provide the user a convenient and multimedia-oriented
Graphical User Interface.
MultiPlatform Media Player
Playing media files in JMF
Playing media file in JMF is possible through the Player
Interface. The Player activity is determined by its state,
and it uses events to notify its user of state transition.
Player is dedicated to specific media file, which its
path/URL is given to the Player upon creation.
Unrealized
Realized
Prefeteched
Player states
Started
Playing media files in JMF
Unrealized – The initial state of the Player. In this
state the Player doesn’t recognize the media file
format and no resources are allocated.
Unrealized
Realized
Prefeteched
Player.realize()
Started
Play Lists Management
Play Lists basic configuration
GUI
User
ManagementFrame
PlayListManager
playLists
PlayList
mediaEntities
PlayList
mediaEntities
PlayList
mediaEntities
MediaEntity
MediaEntity
current play list
current
media
lentity
MediaEntity
Media file playing – Play List control (Solution)
Wakes up every
timeout time
Open
media
file
player
is dead?
Yes
Prepare
player
Start
player
has eom
arrived?
No
Media file progress
No
End of media
flag
Play List Module
End of
media
flag
Yes
Kill
player
End of
media
Event
The Converter
The media file format conversion is performed using a dedicated Processor
for each conversion.
The Converter class uses event driven model of operation by listening from
one hand to GUI events and from other hand to Processor Event.
GUI
Events
User
Processor
Events
Converter
Processor
Source file
WAV
Memory