org.pscode.jmf.protocol
Class ImageDataSource

java.lang.Object
  extended by PullBufferDataSource
      extended by org.pscode.jmf.protocol.ImageDataSource

public class ImageDataSource
extends PullBufferDataSource

A DataSource to read from an array of JPEG image byte arrays and turn that into a stream of JMF buffers. The DataSource is not seekable or positionable.


Method Summary
 void connect()
           
 void disconnect()
           
 String getContentType()
          Content type is of RAW since we are sending buffers of video frames without a container format.
 Object getControl(String type)
           
 Object[] getControls()
           
 Time getDuration()
          We could have derived the duration from the number of frames and frame rate.But for the purpose of this program, it's not necessary.
 MediaLocator getLocator()
           
 PullBufferStream[] getStreams()
          Return the ImageSourceStreams.
 void setLocator(MediaLocator source)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

connect

public void connect()

disconnect

public void disconnect()

start

public void start()

stop

public void stop()

setLocator

public void setLocator(MediaLocator source)

getLocator

public MediaLocator getLocator()

getContentType

public String getContentType()
Content type is of RAW since we are sending buffers of video frames without a container format.


getStreams

public PullBufferStream[] getStreams()
Return the ImageSourceStreams.


getDuration

public Time getDuration()
We could have derived the duration from the number of frames and frame rate.But for the purpose of this program, it's not necessary.


getControls

public Object[] getControls()

getControl

public Object getControl(String type)