Java Media Player thorugh JMF

33 %
67 %
Information about Java Media Player thorugh JMF

Published on June 8, 2008

Author: prashantnasa

Source: slideshare.net

Description

This is a Presentation of my final Year Project in which we developed a java Media Player using Java Media Framework(jMF) which can play various media files inc Video(mpeg,avi,qt etc) and Audio(mp3,wma etc).

Development of JAVA Multimedia Player Using JAVA Media Framework(JMF) Prashant Singh

Introduction

What is Media Player?

Basic Terminology

JAVA Multimedia Framework

 

JMF Architecture,its Interfaces & its classes

Alternatives for Media Player

 

Framework

Data Model JMF media players usually use DataSources to manage the transfer of media-content. A DataSource encapsulates both the location of media and the protocol and software used to deliver the media. Once obtained, the source cannot be reused to deliver other media. A DataSource is identified by either a JMF MediaLocator or a URL (universal resource locator). A MediaLocator is similar to a URL and can be constructed from a URL , but can be constructed even if the corresponding protocol handler is not installed on the system. ( Note : In Java, a URL can only be constructed if the corresponding protocol handler is installed on the system.) A standard data source uses a byte array as the unit of transfer. A buffer data source uses a Buffer object as its unit of transfer. JMF data sources can be categorized according to how data transfer is initiated: Pull Data-Source --the client initiates the data transfer and controls the flow of data from pull data-sources. Push Data-Source --the server initiates the data transfer and controls the flow of data from a push data-source. Push data-sources include broadcast media, multicast media, and video-on-demand (VOD).

JMF media players usually use DataSources to manage the transfer of media-content. A DataSource encapsulates both the location of media and the protocol and software used to deliver the media. Once obtained, the source cannot be reused to deliver other media.

A DataSource is identified by either a JMF MediaLocator or a URL (universal resource locator). A MediaLocator is similar to a URL and can be constructed from a URL , but can be constructed even if the corresponding protocol handler is not installed on the system. ( Note : In Java, a URL can only be constructed if the corresponding protocol handler is installed on the system.)

A standard data source uses a byte array as the unit of transfer. A buffer data source uses a Buffer object as its unit of transfer.

JMF data sources can be categorized according to how data transfer is initiated:

Pull Data-Source --the client initiates the data transfer and controls the flow of data from pull data-sources.

Push Data-Source --the server initiates the data transfer and controls the flow of data from a push data-source. Push data-sources include broadcast media, multicast media, and video-on-demand (VOD).

Managers JMF uses four managers: Manager --handles the construction of Players, Processors, DataSources, and DataSinks. This level of indirection allows new implementations to be integrated seamlessly with JMF. PackageManager --maintains a registry of packages that contain JMF classes, such as custom Players, Processors, DataSources, and DataSinks. CaptureDeviceManager --maintains a registry of available capture devices. PlugInManager --maintains a registry of available JMF plug-in processing components, such as Multiplexers, Demultiplexers, Codecs, Effects, and Renderers.

JMF uses four managers:

Manager --handles the construction of Players, Processors, DataSources, and DataSinks. This level of indirection allows new implementations to be integrated seamlessly with JMF.

PackageManager --maintains a registry of packages that contain JMF classes, such as custom Players, Processors, DataSources, and DataSinks.

CaptureDeviceManager --maintains a registry of available capture devices.

PlugInManager --maintains a registry of available JMF plug-in processing components, such as Multiplexers, Demultiplexers, Codecs, Effects, and Renderers.

JMF: Main Functionality Presentation Take media content from a DataSource and render it. This functionality is contained in the Controller interface Player extends this interface Processing Take media content from a DataSource , perform some user-defined processing on it, and output it This functionality is contained in the Processor interface Processor extends the Player interface Capture A capturing device can act as a source for multimedia data. Capture devices are abstracted as DataSources . Media Storage and Transmission A DataSink reads media data from a DataSource and renders it to some destination (generally a destination other than a presentation device). E.g., A DataSink might write data to a file, write data across the network.

Presentation

Take media content from a DataSource and render it.

This functionality is contained in the Controller interface

Player extends this interface

Processing

Take media content from a DataSource , perform some user-defined processing on it, and output it

This functionality is contained in the Processor interface

Processor extends the Player interface

Capture

A capturing device can act as a source for multimedia data.

Capture devices are abstracted as DataSources .

Media Storage and Transmission

A DataSink reads media data from a DataSource and renders it to some destination (generally a destination other than a presentation device).

E.g., A DataSink might write data to a file, write data across the network.

Player A Player processes an input stream of media data and renders it at a precise time. A DataSource is used to deliver the input media-stream to the Player.The rendering destination depends on the type of media being presented. DataSource Player

A Player processes an input stream of media data and renders it at a precise time. A DataSource is used to deliver the input media-stream to the Player.The rendering destination depends on the type of media being presented.

Processor A Processor is a Player that takes a DataSource as input, performs some user-defined processing on the media data, and then outputs the processed media data . Processor Pre A->B Post Pre A->B Post Codec Plugin Post-Proc. Plugin Pre-Proc. Plugin Track1 Track2 Demux Plugin Mux Plugin Renderer Plugin Renderer Plugin

A Processor is a Player that takes a DataSource as input, performs some user-defined processing on the media data, and then outputs the processed media data .

JMF Defines Six States in Player

JMF:Extensibility One can extend JMF by implementing custom plug-ins, media handlers, and data sources. Implementing the Demultiplexer interface enables you to control how individual tracks are extracted from a multiplexed media stream. Implementing the Codec interface enables you to perform the processing required to decode compressed media data, convert media data from one format to another, and encode raw media data into a compressed format. Implementing the Effect interface enables you to perform custom processing on the media data. Implementing the Multiplexer interface enables you to specify how individual tracks are combined to form a single interleaved output stream for a Processor. Implementing the Renderer interface enables you to control how data is processed and rendered to an output device.

One can extend JMF by implementing custom plug-ins, media handlers, and data sources.

Implementing the Demultiplexer interface enables you to control how individual tracks are extracted from a multiplexed media stream.

Implementing the Codec interface enables you to perform the processing required to decode compressed media data, convert media data from one format to another, and encode raw media data into a compressed format.

Implementing the Effect interface enables you to perform custom processing on the media data.

Implementing the Multiplexer interface enables you to specify how individual tracks are combined to form a single interleaved output stream for a Processor.

Implementing the Renderer interface enables you to control how data is processed and rendered to an output device.

Reference JAVA 2 : The Complete Reference by Herbert Shildt. The Main Site: java.sun.com Other Site: javaworld.com http://wikipedia.com

JAVA 2 : The Complete Reference by Herbert Shildt.

The Main Site: java.sun.com

Other Site: javaworld.com

http://wikipedia.com

Thank You!

Add a comment

Related presentations

Related pages

Java Media Player thorugh JMF - Technology - documents.mx

This is a Presentation of my final Year Project in which we developed a java Media Player using Java Media Framework(jMF) which can play various media ...
Read more

Java Media Player thorugh JMF - 豆丁网 - docin.com

Java Media Player thorugh JMF ... FrameworkData Model JMFmedia players usually use DataSources DataSourceencapsulates both softwareused media.Once obtained ...
Read more

JAVA Media Player - Engineering - documents

Java Media Player thorugh JMF. ... Inhalt Java Media APIs Architektur Zeitmodell Manager Ereignismodell Datenmodell Control Controller Player Processor ...
Read more

Jmf | LinkedIn

Social Media Manager at JMF, Editor In charge at Aharam, JMF Education ... Java Media Player thorugh JMF. 21,834 Views. stefanmeissner. Introduction to JDF ...
Read more

js控制media player(转) - IT计算机文档网(doc,pdf,ppt文档免费下载)

js控制media player(转), ... 彻底删除Windows Media Player Java Media Player thorugh JMF WPF 中嵌入Windows Media Player Windows Media Player ...
Read more

Jmf | LinkedIn

Facebook JMF. https://www.facebook.com/JMFCertificacionPMPyPDUs . Juan Manuel Fajardo, PMP Instructor and Coach. Project Manager, Instructor y Coach PMP ...
Read more

Java media er for mobile - writepaperorv.files.wordpress.com

Java media er for mobile Learn more about Java, ... player and i uploaded it here to help the students to cover Java Media Player thorugh JMF
Read more