public class AMRNBStream extends AudioStream
Session instantiated with SessionBuilder instead of using this class directly.
Call MediaStream.setDestinationAddress(InetAddress), MediaStream.setDestinationPorts(int) and AudioStream.setAudioQuality(AudioQuality)
to configure the stream. You can then call start() to start the RTP stream.
Call MediaStream.stop() to stop the stream.MODE_MEDIACODEC_API, MODE_MEDIACODEC_API_2, MODE_MEDIARECORDER_API, PIPE_API_LS, PIPE_API_PFD| Constructor and Description |
|---|
AMRNBStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure()
Configures the stream with the settings supplied with
VideoStream.setVideoQuality(net.majorkernelpanic.streaming.video.VideoQuality)
for a VideoStream and AudioStream.setAudioQuality(net.majorkernelpanic.streaming.audio.AudioQuality)
for a AudioStream. |
java.lang.String |
getSessionDescription()
Returns a description of the stream using SDP.
|
void |
start()
Starts the stream.
|
getAudioQuality, setAudioQuality, setAudioSourcegetBitrate, getDestinationPorts, getLocalPorts, getPacketizer, getSSRC, getStreamingMethod, isStreaming, setDestinationAddress, setDestinationPorts, setDestinationPorts, setOutputStream, setStreamingMethod, setTimeToLive, stoppublic void start()
throws java.lang.IllegalStateException,
java.io.IOException
start in interface Streamstart in class MediaStreamjava.lang.IllegalStateExceptionjava.io.IOExceptionpublic void configure()
throws java.lang.IllegalStateException,
java.io.IOException
MediaStreamVideoStream.setVideoQuality(net.majorkernelpanic.streaming.video.VideoQuality)
for a VideoStream and AudioStream.setAudioQuality(net.majorkernelpanic.streaming.audio.AudioQuality)
for a AudioStream.configure in interface Streamconfigure in class MediaStreamjava.lang.IllegalStateExceptionjava.io.IOExceptionpublic java.lang.String getSessionDescription()
getSessionDescription in interface StreamgetSessionDescription in class MediaStream