net.sf.fmj.media.protocol.rtp
Class LookAheadPushBufferStream
java.lang.Object
net.sf.fmj.media.protocol.rtp.LookAheadPushBufferStream
- All Implemented Interfaces:
- Controls, PushBufferStream, SourceStream
public class LookAheadPushBufferStream
- extends java.lang.Object
- implements PushBufferStream
Looks ahead in the RTP PushBufferStream to fill in details of the VideoFormat, particularly the resolution.
Only supports JPEG/RTP.
- Author:
- Ken Larson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LookAheadPushBufferStream
public LookAheadPushBufferStream(PushBufferStream s)
lookAheadAndFindFullFormat
public void lookAheadAndFindFullFormat()
throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
endOfStream
public boolean endOfStream()
- Specified by:
endOfStream
in interface SourceStream
getContentDescriptor
public ContentDescriptor getContentDescriptor()
- Specified by:
getContentDescriptor
in interface SourceStream
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface SourceStream
getControl
public java.lang.Object getControl(java.lang.String controlType)
- Specified by:
getControl
in interface Controls
getControls
public java.lang.Object[] getControls()
- Specified by:
getControls
in interface Controls
getFormat
public Format getFormat()
- Specified by:
getFormat
in interface PushBufferStream
read
public void read(Buffer buffer)
throws java.io.IOException
- Specified by:
read
in interface PushBufferStream
- Throws:
java.io.IOException
setTransferHandler
public void setTransferHandler(BufferTransferHandler transferHandler)
- Specified by:
setTransferHandler
in interface PushBufferStream