com.mamarce.mhp.mf.components
Class VideoPlayer

java.lang.Object
  extended by com.mamarce.mhp.mf.components.VideoPlayer

public class VideoPlayer
extends java.lang.Object

This class is a helper class with different methods for video size control.

Author:
buechl

Method Summary
 javax.tv.media.AWTVideoSizeControl getAWTVideoSizeControl(javax.media.Player player)
          Returns a AWT Video Size Control.
static VideoPlayer getInstance()
          Get an instance of the VideoPlayer.
 javax.media.Player getVideoPlayer(javax.tv.xlet.XletContext xletContext)
          Returns a video player.
 javax.tv.media.AWTVideoSizeControl getVideoSizeControl(javax.tv.xlet.XletContext xletContext)
          Returns a video size control.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static VideoPlayer getInstance()
Get an instance of the VideoPlayer.

Returns:
A new instance of a VideoPlayer

getVideoSizeControl

public javax.tv.media.AWTVideoSizeControl getVideoSizeControl(javax.tv.xlet.XletContext xletContext)
Returns a video size control.

Parameters:
xletContext - is the xlet context for which a control is reuested.
Returns:
instance of a video size control.

getVideoPlayer

public javax.media.Player getVideoPlayer(javax.tv.xlet.XletContext xletContext)
Returns a video player.

Parameters:
xletContext - is the xlet context for which a video player is requested.
Returns:
instance of a video player.

getAWTVideoSizeControl

public javax.tv.media.AWTVideoSizeControl getAWTVideoSizeControl(javax.media.Player player)
Returns a AWT Video Size Control.

Parameters:
player - is the player for which an AWT control is requested.
Returns:
an instance of AWT video size control.