com.bramosystems.oss.player.core.client
Enum Plugin

java.lang.Object
  extended by java.lang.Enum<Plugin>
      extended by com.bramosystems.oss.player.core.client.Plugin
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Plugin>

public enum Plugin
extends java.lang.Enum<Plugin>

An enum of supported media player plugins

Author:
Sikirulai Braheem

Enum Constant Summary
Auto
          Specifies any media player plugin that is available on the browser and features basic playback support.
DivXPlayer
          Specifies the DivX Web Player plugin
FlashPlayer
          Specifies the Flash Player plugin
MatrixSupport
          Similar to Auto, specifies any media player plugin that supports graphics manipulation with transformation matrices as defined by the MatrixSupport interface.
Native
          Specifies the browsers' native media handler.
PlaylistSupport
          Similar to Auto, specifies any media player plugin that supports client-side playlist management as defined by the PlaylistSupport interface.
QuickTimePlayer
          Specifies the QuickTime Player plugin
VLCPlayer
          Specifies the VLC Media Player plugin
WinMediaPlayer
          Specifies the Window Media Player™ plugin
 
Method Summary
 java.lang.String getDownloadURL()
          Gets the URL of the plugins' download page
 PluginVersion getVersion()
          Gets the minimum version required by this plugin
 java.lang.String toString()
           
static Plugin valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Plugin[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Auto

public static final Plugin Auto
Specifies any media player plugin that is available on the browser and features basic playback support.

Basic playback support is as defined by the AbstractMediaPlayer class.

See Also:
PlayerUtil.getPlayer(java.lang.String, boolean, java.lang.String, java.lang.String)

Native

public static final Plugin Native
Specifies the browsers' native media handler. HTML 5 compliant browsers have support for media playback via the audio and video elements.

Since:
1.1

QuickTimePlayer

public static final Plugin QuickTimePlayer
Specifies the QuickTime Player plugin


FlashPlayer

public static final Plugin FlashPlayer
Specifies the Flash Player plugin


WinMediaPlayer

public static final Plugin WinMediaPlayer
Specifies the Window Media Player™ plugin


VLCPlayer

public static final Plugin VLCPlayer
Specifies the VLC Media Player plugin

Since:
1.0

DivXPlayer

public static final Plugin DivXPlayer
Specifies the DivX Web Player plugin

Since:
1.2

PlaylistSupport

public static final Plugin PlaylistSupport
Similar to Auto, specifies any media player plugin that supports client-side playlist management as defined by the PlaylistSupport interface.

Since:
1.0
See Also:
PlayerUtil.getPlayer(Plugin, java.lang.String, boolean, java.lang.String, java.lang.String), PlaylistSupport

MatrixSupport

public static final Plugin MatrixSupport
Similar to Auto, specifies any media player plugin that supports graphics manipulation with transformation matrices as defined by the MatrixSupport interface.

Since:
1.1
See Also:
PlayerUtil.getPlayer(Plugin, java.lang.String, boolean, java.lang.String, java.lang.String), MatrixSupport
Method Detail

values

public static Plugin[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Plugin c : Plugin.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Plugin valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDownloadURL

public java.lang.String getDownloadURL()
Gets the URL of the plugins' download page

Returns:
the plugin download URL
Since:
0.6

getVersion

public PluginVersion getVersion()
Gets the minimum version required by this plugin

Returns:
the minimum version of the plugin
Since:
1.0

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Plugin>


Copyright © 2009-2011. All Rights Reserved.