chrriis.dj.nativeswing.swtimpl.components.win32
Class WMPMedia

java.lang.Object
  extended by chrriis.dj.nativeswing.swtimpl.components.win32.WMPMedia

public class WMPMedia
extends Object

A Media Player object responsible for media-related actions.

Author:
Christopher Deckers, Matt Brooke-Smith

Method Summary
 int getDuration()
          Get the duration in milliseconds of the current media.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDuration

public int getDuration()
Get the duration in milliseconds of the current media.

Returns:
the duration in milliseconds, or -1 in case of failure.