Top Fields Constructors Methods
com.sun.webkit.graphics

public abstract Class WCMediaPlayer

extends Ref
Class Inheritance
Known Direct Subclasses
com.sun.javafx.webkit.prism.WCMediaPlayerImpl
Imports
com.sun.javafx.logging.PlatformLogger, com.sun.webkit.Invoker

Field Summary

Modifier and TypeField and Description
protected static final PlatformLogger
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
private int
private Runnable
private long
private boolean
private int
protected static final int
protected static final int
protected static final int
private boolean
protected static final int
protected static final int
protected static final int
protected static final int
protected static final int
private int
private boolean

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
protected abstract void
protected abstract void
private void
private void
private float
private void
fwkLoad(String url, String userAgent)

private void
private void
private void
private void
fwkSeek(float time)

private void
fwkSetMute(boolean mute)

private void
fwkSetPreload(int preload)

private void
fwkSetPreservesPitch(boolean preserve)

private void
fwkSetRate(float rate)

private void
fwkSetSize(int w, int h)

private void
fwkSetVolume(float volume)

protected abstract float
protected int
protected int
protected boolean
getPreservesPitch()

Obtains current "preserves pitch" value.

protected int
protected boolean
protected boolean
protected abstract void
load(String url, String userAgent)

Methods to implement

protected void
notifyBufferChanged(float[] ranges, int bytesLoaded)

ranges array contains pairs [start,end] of the buffered times

private native void
notifyBufferChanged(long nPtr, float[] ranges, int bytesLoaded)

protected void
notifyDurationChanged(float newDuration)

private native void
notifyDurationChanged(long nPtr, float duration)

protected void
private native void
notifyFinished(long nPtr)

protected void
notifyNetworkStateChanged(int networkState)

private native void
notifyNetworkStateChanged(long nPtr, int networkState)

protected void
private native void
notifyNewFrame(long nPtr)

protected void
notifyPaused(boolean paused)

private native void
notifyPaused(long nPtr, boolean paused)

protected void
notifyReady(boolean hasVideo, boolean hasAudio, float duration)

got metadata

private native void
notifyReady(long nPtr, boolean hasVideo, boolean hasAudio, float duration)

protected void
notifyReadyStateChanged(int readyState)

private native void
notifyReadyStateChanged(long nPtr, int readyState)

protected void
notifySeeking(boolean seeking, int readyState)

private native void
notifySeeking(long nPtr, boolean seeking, int readyState)

protected void
notifySizeChanged(int width, int height)

private native void
notifySizeChanged(long nPtr, int width, int height)

protected abstract void
protected abstract void
play()

protected abstract void
pack-priv void
render(WCGraphicsContext gc, int x, int y, int w, int h)

protected abstract void
renderCurrentFrame(WCGraphicsContext gc, int x, int y, int w, int h)

protected abstract void
seek(float time)

protected abstract void
setMute(boolean mute)

pack-priv void
setNativePointer(long nativePointer)

protected abstract void
setPreservesPitch(boolean preserve)

protected abstract void
setRate(float rate)

protected abstract void
setSize(int w, int h)

protected abstract void
setVolume(float volume)

Inherited from com.sun.webkit.graphics.Ref:
derefgetIDhasRefsref

Field Detail

logback to summary
protected static final PlatformLogger log
NETWORK_STATE_DECODE_ERRORback to summary
protected static final int NETWORK_STATE_DECODE_ERROR
NETWORK_STATE_EMPTYback to summary
protected static final int NETWORK_STATE_EMPTY
NETWORK_STATE_FORMAT_ERRORback to summary
protected static final int NETWORK_STATE_FORMAT_ERROR
NETWORK_STATE_IDLEback to summary
protected static final int NETWORK_STATE_IDLE
NETWORK_STATE_LOADEDback to summary
protected static final int NETWORK_STATE_LOADED
NETWORK_STATE_LOADINGback to summary
protected static final int NETWORK_STATE_LOADING
NETWORK_STATE_NETWORK_ERRORback to summary
protected static final int NETWORK_STATE_NETWORK_ERROR
networkStateback to summary
private int networkState
newFrameNotifierback to summary
private Runnable newFrameNotifier
nPtrback to summary
private long nPtr
pausedback to summary
private boolean paused
preloadback to summary
private int preload
PRELOAD_AUTOback to summary
protected static final int PRELOAD_AUTO
PRELOAD_METADATAback to summary
protected static final int PRELOAD_METADATA
PRELOAD_NONEback to summary
protected static final int PRELOAD_NONE
preserveback to summary
private boolean preserve
READY_STATE_HAVE_CURRENT_DATAback to summary
protected static final int READY_STATE_HAVE_CURRENT_DATA
READY_STATE_HAVE_ENOUGH_DATAback to summary
protected static final int READY_STATE_HAVE_ENOUGH_DATA
READY_STATE_HAVE_FUTURE_DATAback to summary
protected static final int READY_STATE_HAVE_FUTURE_DATA
READY_STATE_HAVE_METADATAback to summary
protected static final int READY_STATE_HAVE_METADATA
READY_STATE_HAVE_NOTHINGback to summary
protected static final int READY_STATE_HAVE_NOTHING
readyStateback to summary
private int readyState
seekingback to summary
private boolean seeking

Constructor Detail

WCMediaPlayerback to summary
protected WCMediaPlayer()

Method Detail

cancelLoadback to summary
protected abstract void cancelLoad()
disposePlayerback to summary
protected abstract void disposePlayer()
fwkCancelLoadback to summary
private void fwkCancelLoad()
fwkDisposeback to summary
private void fwkDispose()
fwkGetCurrentTimeback to summary
private float fwkGetCurrentTime()
fwkLoadback to summary
private void fwkLoad(String url, String userAgent)
fwkPauseback to summary
private void fwkPause()
fwkPlayback to summary
private void fwkPlay()
fwkPrepareToPlayback to summary
private void fwkPrepareToPlay()
fwkSeekback to summary
private void fwkSeek(float time)
fwkSetMuteback to summary
private void fwkSetMute(boolean mute)
fwkSetPreloadback to summary
private void fwkSetPreload(int preload)
fwkSetPreservesPitchback to summary
private void fwkSetPreservesPitch(boolean preserve)
fwkSetRateback to summary
private void fwkSetRate(float rate)
fwkSetSizeback to summary
private void fwkSetSize(int w, int h)
fwkSetVolumeback to summary
private void fwkSetVolume(float volume)
getCurrentTimeback to summary
protected abstract float getCurrentTime()
getNetworkStateback to summary
protected int getNetworkState()
getPreloadback to summary
protected int getPreload()
getPreservesPitchback to summary
protected boolean getPreservesPitch()

Obtains current "preserves pitch" value.

getReadyStateback to summary
protected int getReadyState()
isPausedback to summary
protected boolean isPaused()
isSeekingback to summary
protected boolean isSeeking()
loadback to summary
protected abstract void load(String url, String userAgent)

Methods to implement

notifyBufferChangedback to summary
protected void notifyBufferChanged(float[] ranges, int bytesLoaded)

ranges array contains pairs [start,end] of the buffered times

notifyBufferChangedback to summary
private native void notifyBufferChanged(long nPtr, float[] ranges, int bytesLoaded)
notifyDurationChangedback to summary
protected void notifyDurationChanged(float newDuration)
notifyDurationChangedback to summary
private native void notifyDurationChanged(long nPtr, float duration)
notifyFinishedback to summary
protected void notifyFinished()
notifyFinishedback to summary
private native void notifyFinished(long nPtr)
notifyNetworkStateChangedback to summary
protected void notifyNetworkStateChanged(int networkState)
notifyNetworkStateChangedback to summary
private native void notifyNetworkStateChanged(long nPtr, int networkState)
notifyNewFrameback to summary
protected void notifyNewFrame()
notifyNewFrameback to summary
private native void notifyNewFrame(long nPtr)
notifyPausedback to summary
protected void notifyPaused(boolean paused)
notifyPausedback to summary
private native void notifyPaused(long nPtr, boolean paused)
notifyReadyback to summary
protected void notifyReady(boolean hasVideo, boolean hasAudio, float duration)

got metadata

notifyReadyback to summary
private native void notifyReady(long nPtr, boolean hasVideo, boolean hasAudio, float duration)
notifyReadyStateChangedback to summary
protected void notifyReadyStateChanged(int readyState)
notifyReadyStateChangedback to summary
private native void notifyReadyStateChanged(long nPtr, int readyState)
notifySeekingback to summary
protected void notifySeeking(boolean seeking, int readyState)
notifySeekingback to summary
private native void notifySeeking(long nPtr, boolean seeking, int readyState)
notifySizeChangedback to summary
protected void notifySizeChanged(int width, int height)
notifySizeChangedback to summary
private native void notifySizeChanged(long nPtr, int width, int height)
pauseback to summary
protected abstract void pause()
playback to summary
protected abstract void play()
prepareToPlayback to summary
protected abstract void prepareToPlay()
renderback to summary
pack-priv void render(WCGraphicsContext gc, int x, int y, int w, int h)
renderCurrentFrameback to summary
protected abstract void renderCurrentFrame(WCGraphicsContext gc, int x, int y, int w, int h)
seekback to summary
protected abstract void seek(float time)
setMuteback to summary
protected abstract void setMute(boolean mute)
setNativePointerback to summary
pack-priv void setNativePointer(long nativePointer)
setPreservesPitchback to summary
protected abstract void setPreservesPitch(boolean preserve)
setRateback to summary
protected abstract void setRate(float rate)
setSizeback to summary
protected abstract void setSize(int w, int h)
setVolumeback to summary
protected abstract void setVolume(float volume)