javax.media
Interface ExtendedCachingControl

All Superinterfaces:
CachingControl, Control

public interface ExtendedCachingControl
extends CachingControl

Since:
JMF 2.0

Field Summary
 
Fields inherited from interface javax.media.CachingControl
LENGTH_UNKNOWN
 
Method Summary
 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.
 
Methods inherited from interface javax.media.CachingControl
getContentLength, getContentProgress, getControlComponent, getProgressBarComponent, isDownloading
 

Method Detail

setBufferSize

public 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

public Time getBufferSize()

pauseDownload

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


resumeDownload

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


getStartOffset

public long getStartOffset()

getEndOffset

public long getEndOffset()

addDownloadProgressListener

public void addDownloadProgressListener(DownloadProgressListener l,
                                        int numKiloBytes)

removeDownloadProgressListener

public void removeDownloadProgressListener(DownloadProgressListener l)