public class H263Stream extends VideoStream
Session instantiated with SessionBuilder instead of using this class directly.
Call MediaStream.setDestinationAddress(InetAddress), MediaStream.setDestinationPorts(int) and VideoStream.setVideoQuality(VideoQuality)
to configure the stream. You can then call start() to start the RTP stream.
Call VideoStream.stop() to stop the stream.MODE_MEDIACODEC_API, MODE_MEDIACODEC_API_2, MODE_MEDIARECORDER_API, PIPE_API_LS, PIPE_API_PFD| Constructor and Description |
|---|
H263Stream()
Constructs the H.263 stream.
|
H263Stream(int cameraId)
Constructs the H.263 stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure()
Configures the stream.
|
java.lang.String |
getSessionDescription()
Returns a description of the stream using SDP.
|
void |
start()
Starts the stream.
|
getCamera, getFlashState, getVideoQuality, setCamera, setFlashState, setPreferences, setPreviewOrientation, setSurfaceView, setVideoQuality, startPreview, stop, stopPreview, switchCamera, toggleFlashgetBitrate, getDestinationPorts, getLocalPorts, getPacketizer, getSSRC, getStreamingMethod, isStreaming, setDestinationAddress, setDestinationPorts, setDestinationPorts, setOutputStream, setStreamingMethod, setTimeToLivepublic H263Stream()
throws java.io.IOException
java.io.IOExceptionpublic H263Stream(int cameraId)
cameraId - Can be either CameraInfo.CAMERA_FACING_BACK or CameraInfo.CAMERA_FACING_FRONTjava.io.IOExceptionpublic void start()
throws java.lang.IllegalStateException,
java.io.IOException
start in interface Streamstart in class VideoStreamjava.lang.IllegalStateExceptionjava.io.IOExceptionpublic void configure()
throws java.lang.IllegalStateException,
java.io.IOException
VideoStreamVideoStream.getSessionDescription()
to apply your configuration of the stream.configure in interface Streamconfigure in class VideoStreamjava.lang.IllegalStateExceptionjava.io.IOExceptionpublic java.lang.String getSessionDescription()
getSessionDescription in interface StreamgetSessionDescription in class VideoStream