javax.media
Interface ExtendedCachingControl


public interface ExtendedCachingControl
extends CachingControl

Since:
JMF 2.0

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)


Submit a bug or feature
Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. See the Specification License for more details.
Sun, Sun Microsystems, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.