Adds work on the new MediaService (Work in Progress)

cusax-fix
Emil Ivov 17 years ago
parent 262fed3e9f
commit a1bb5aed2d

@ -6,6 +6,8 @@
*/
package net.java.sip.communicator.service.neomedia;
import net.java.sip.communicator.service.neomedia.device.*;
/**
* The <tt>MediaService</tt> service is meant to be a wrapper of media libraries
* such as JMF, FMJ, FFMPEG, and others. It takes care of all media play and
@ -15,6 +17,26 @@
*/
public interface MediaService
{
/**
* Returns an array of <tt>MediaType</tt> instances indicating the types
* that an implementation supports. A <tt>MediaType</tt> is considered
* supported if an implementation supports either rendering or capturing
* that type of media.
*
* @return an array of <tt>MediaType</tt> instances indicating the types of
* media that this service supports.
*/
public MediaType[] getSupportedMediaTypes();
/**
* Returns the default <tt>MediaDevice</tt> for the specified media
* <tt>type</tt>. In most cases users
*
* @param type a <tt>MediaType</tt> instance indicating the kind of device
* that we are trying to obtain.
*
* @return the currently default <tt>MediaDevice</tt> for the specified
* <tt>MediaType</tt>, or <tt>null</tt> if no such device exists.
*/
public MediaDevice getDefaultDevice(MediaType type);
}

@ -8,7 +8,7 @@
/**
* The <tt>MediaType</tt> enumeration contains a list of media types
* currently known to and handled by the MediaService.
* currently known to and handled by the <tt>MediaService</tt>.
*
* @author Emil Ivov
*/

Loading…
Cancel
Save