com.bramosystems.oss.player.core.event.client
Enum PlayerStateEvent.State

java.lang.Object
  extended by java.lang.Enum<PlayerStateEvent.State>
      extended by com.bramosystems.oss.player.core.event.client.PlayerStateEvent.State
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PlayerStateEvent.State>
Enclosing class:
PlayerStateEvent

public static enum PlayerStateEvent.State
extends java.lang.Enum<PlayerStateEvent.State>

An enum of media player states


Enum Constant Summary
BufferingFinished
          The player has stopped buffering
BufferingStarted
          The player has started buffering
DimensionChangedOnVideo
          The dimension of the player has changed.
FullScreenFinished
          The player has exited fullscreen display mode
FullScreenStarted
          The player has entered fullscreen display mode
Ready
          The player is initialized and ready
 
Method Summary
static PlayerStateEvent.State valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PlayerStateEvent.State[] 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

Ready

public static final PlayerStateEvent.State Ready
The player is initialized and ready


BufferingStarted

public static final PlayerStateEvent.State BufferingStarted
The player has started buffering


BufferingFinished

public static final PlayerStateEvent.State BufferingFinished
The player has stopped buffering


DimensionChangedOnVideo

public static final PlayerStateEvent.State DimensionChangedOnVideo
The dimension of the player has changed.

This state is raised when the dimension of the player changes to match the size of the current media (especially video).


FullScreenStarted

public static final PlayerStateEvent.State FullScreenStarted
The player has entered fullscreen display mode

Since:
1.2

FullScreenFinished

public static final PlayerStateEvent.State FullScreenFinished
The player has exited fullscreen display mode

Since:
1.2
Method Detail

values

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

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

valueOf

public static PlayerStateEvent.State 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


Copyright © 2009-2011. All Rights Reserved.