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, setAudioSource
getBitrate, getDestinationPorts, getLocalPorts, getPacketizer, getSSRC, getStreamingMethod, isStreaming, setDestinationAddress, setDestinationPorts, setDestinationPorts, setOutputStream, setStreamingMethod, setTimeToLive, stop
public void start() throws java.lang.IllegalStateException, java.io.IOException
start
in interface Stream
start
in class MediaStream
java.lang.IllegalStateException
java.io.IOException
public void configure() throws java.lang.IllegalStateException, java.io.IOException
MediaStream
VideoStream.setVideoQuality(net.majorkernelpanic.streaming.video.VideoQuality)
for a VideoStream
and AudioStream.setAudioQuality(net.majorkernelpanic.streaming.audio.AudioQuality)
for a AudioStream
.configure
in interface Stream
configure
in class MediaStream
java.lang.IllegalStateException
java.io.IOException
public java.lang.String getSessionDescription()
getSessionDescription
in interface Stream
getSessionDescription
in class MediaStream