de.enough.polish.video
Class VideoContainer.Test

java.lang.Object
  extended by de.enough.polish.video.VideoContainer.Test
Enclosing class:
VideoContainer

public static class VideoContainer.Test
extends Object

Static methods to test videoplayback

Author:
Andre Schmidt

Constructor Summary
VideoContainer.Test()
           
 
Method Summary
static Player createPlayer(String resource)
          Creates a player using the given resource
static boolean isSeekSupported(Player player)
          Tests on a player if seek (FF/RW) is supported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VideoContainer.Test

public VideoContainer.Test()
Method Detail

createPlayer

public static Player createPlayer(String resource)
                           throws Exception
Creates a player using the given resource

Parameters:
resource - the url of a resource file
Returns:
the resulting player
Throws:
Exception

isSeekSupported

public static boolean isSeekSupported(Player player)
Tests on a player if seek (FF/RW) is supported

Parameters:
player - the player to test with
Returns:
true if seek is supported, otherwise false