INNER CODE UNIT · Java
getLocalPorts
fyhertz/libstreaming · src/net/majorkernelpanic/streaming/MediaStream.java:194
public int[] getLocalPorts() {
return mPacketizer.getRtpSocket().getLocalPorts();
}
/**
* Sets the streaming method that will be used.
*
* If the mode is set to {@link #MODE_MEDIARECORDER_API}, raw audio/video will be encoded
* using the MediaRecorder API. <br />
*
* If the mode is set to {@link #MODE_MEDIACODEC_API} or to {@link #MODE_MEDIACODEC_API_2},
* audio/video will be encoded with using the MediaCodec. <br />
*
* The {@link #MODE_MEDIACODEC_API_2} mode only concerns {@link VideoStream}, it makes
* use of the createInputSurface() method of the MediaCodec API (Android 4.3 is needed there). <br />
*
* @param mode Can be {@link #MODE_MEDIARECORDER_API}, {@link #MODE_MEDIACODEC_API} or {@link #MODE_MEDIACODEC_API_2}
*/