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, toggleFlash
getBitrate, getDestinationPorts, getLocalPorts, getPacketizer, getSSRC, getStreamingMethod, isStreaming, setDestinationAddress, setDestinationPorts, setDestinationPorts, setOutputStream, setStreamingMethod, setTimeToLive
public H263Stream() throws java.io.IOException
java.io.IOException
public H263Stream(int cameraId)
cameraId
- Can be either CameraInfo.CAMERA_FACING_BACK or CameraInfo.CAMERA_FACING_FRONTjava.io.IOException
public void start() throws java.lang.IllegalStateException, java.io.IOException
start
in interface Stream
start
in class VideoStream
java.lang.IllegalStateException
java.io.IOException
public void configure() throws java.lang.IllegalStateException, java.io.IOException
VideoStream
VideoStream.getSessionDescription()
to apply your configuration of the stream.configure
in interface Stream
configure
in class VideoStream
java.lang.IllegalStateException
java.io.IOException
public java.lang.String getSessionDescription()
getSessionDescription
in interface Stream
getSessionDescription
in class VideoStream