public interface Player extends Controllable
Modifier and Type | Field and Description |
---|---|
static int |
CLOSED |
static int |
PREFETCHED |
static int |
REALIZED |
static int |
STARTED |
static long |
TIME_UNKNOWN |
static int |
UNREALIZED |
Modifier and Type | Method and Description |
---|---|
void |
addPlayerListener(PlayerListener playerListener) |
void |
close() |
void |
deallocate() |
String |
getContentType() |
long |
getDuration() |
long |
getMediaTime() |
int |
getState() |
void |
prefetch() |
void |
realize() |
void |
removePlayerListener(PlayerListener playerListener) |
void |
setLoopCount(int count) |
long |
setMediaTime(long now) |
void |
start() |
void |
stop() |
getControl, getControls
static final int UNREALIZED
static final int REALIZED
static final int PREFETCHED
static final int STARTED
static final int CLOSED
static final long TIME_UNKNOWN
void realize() throws MediaException
MediaException
void prefetch() throws MediaException
MediaException
void start() throws MediaException
MediaException
void stop() throws MediaException
MediaException
void deallocate()
void close()
long setMediaTime(long now) throws MediaException
MediaException
long getMediaTime()
int getState()
long getDuration()
String getContentType()
void setLoopCount(int count)
void addPlayerListener(PlayerListener playerListener)
void removePlayerListener(PlayerListener playerListener)
Copyright (c) 1990, 2012, Oracle and/or its affiliates. All rights reserved.