jmcvideo
Class VideoUtils
java.lang.Object
jmcvideo.VideoUtils
public class VideoUtils
- extends java.lang.Object
Methods for calculating bounds & formatting strings, etc.
|
Method Summary |
static java.lang.String |
formatMediaTime(double mediaTime)
Formats the media time into a more readable string for printing, debugging, etc. |
static void |
sleep(long ms)
|
static java.net.URI |
toURI(java.io.File file)
|
static java.net.URI |
toURI(java.net.URL url)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VideoUtils
public VideoUtils()
toURI
public static java.net.URI toURI(java.net.URL url)
toURI
public static java.net.URI toURI(java.io.File file)
formatMediaTime
public static java.lang.String formatMediaTime(double mediaTime)
- Formats the media time into a more readable string for printing, debugging, etc.
- Parameters:
mediaTime - The time as returned by the media provider.
- Returns:
- a more readable String representation of the mediaTime.
sleep
public static void sleep(long ms)