|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPullBufferDataSource
org.pscode.jmf.protocol.ImageDataSource
public class ImageDataSource
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 |
|---|
public void connect()
public void disconnect()
public void start()
public void stop()
public void setLocator(MediaLocator source)
public MediaLocator getLocator()
public String getContentType()
public PullBufferStream[] getStreams()
public Time getDuration()
public Object[] getControls()
public Object getControl(String type)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||