com.bramosystems.oss.player.core.client.ui
Enum DivXPlayer.BufferingMode

java.lang.Object
  extended by java.lang.Enum<DivXPlayer.BufferingMode>
      extended by com.bramosystems.oss.player.core.client.ui.DivXPlayer.BufferingMode
All Implemented Interfaces:
Serializable, Comparable<DivXPlayer.BufferingMode>
Enclosing class:
DivXPlayer

public static enum DivXPlayer.BufferingMode
extends Enum<DivXPlayer.BufferingMode>

An enum of buffering modes for DivXPlayer widget. The mode is used to specify how the DivX Web Player should buffer downloaded data before attempting to start playback.


Enum Constant Summary
AUTO
          The player analyses the download speed and tries to buffer just enough so that uninterrupted progressive playback can happen at the end of the buffer period.
FULL
          The player will always buffer the full video file before starting playback.
NULL
          The player does only very minimal buffering and starts playing as soon as data is available.
 
Method Summary
static DivXPlayer.BufferingMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DivXPlayer.BufferingMode[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NULL

public static final DivXPlayer.BufferingMode NULL
The player does only very minimal buffering and starts playing as soon as data is available. This mode does not guarantee a very good user experience unless on a very fast internet connection.


AUTO

public static final DivXPlayer.BufferingMode AUTO
The player analyses the download speed and tries to buffer just enough so that uninterrupted progressive playback can happen at the end of the buffer period.


FULL

public static final DivXPlayer.BufferingMode FULL
The player will always buffer the full video file before starting playback.

Method Detail

values

public static DivXPlayer.BufferingMode[] 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 (DivXPlayer.BufferingMode c : DivXPlayer.BufferingMode.values())
    System.out.println(c);

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

valueOf

public static DivXPlayer.BufferingMode valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009-2011. All Rights Reserved.