javax.media
接口 ExtendedCachingControl

所有超级接口:
CachingControl, Control

public interface ExtendedCachingControl
extends CachingControl

从以下版本开始:
JMF 2.0

字段摘要
 
从接口 javax.media.CachingControl 继承的字段
LENGTH_UNKNOWN
 
方法摘要
 void addDownloadProgressListener(DownloadProgressListener l, int numKiloBytes)
           
 Time getBufferSize()
           
 long getEndOffset()
           
 long getStartOffset()
           
 void pauseDownload()
          If downloading is in progress, it will be paused
 void removeDownloadProgressListener(DownloadProgressListener l)
           
 void resumeDownload()
          If downloading was paused, it will be resumed
 void setBufferSize(Time t)
          Block until you have buffered up t.getSeconds() seconds of data.
 
从接口 javax.media.CachingControl 继承的方法
getContentLength, getContentProgress, getControlComponent, getProgressBarComponent, isDownloading
 

方法详细信息

setBufferSize

void setBufferSize(Time t)
Block until you have buffered up t.getSeconds() seconds of data. Can be tricky to implement for non-interleaved quicktime or avi files with all the audio in the beginning and all the video at the end


getBufferSize

Time getBufferSize()

pauseDownload

void pauseDownload()
If downloading is in progress, it will be paused


resumeDownload

void resumeDownload()
If downloading was paused, it will be resumed


getStartOffset

long getStartOffset()

getEndOffset

long getEndOffset()

addDownloadProgressListener

void addDownloadProgressListener(DownloadProgressListener l,
                                 int numKiloBytes)

removeDownloadProgressListener

void removeDownloadProgressListener(DownloadProgressListener l)