prepareVideo
Call this method before use @startStream. If not you will do a stream without video.
Return
true if success, false if you get a error (Normally because the encoder selected doesn't support any configuration seated or your device hasn't a H264 encoder).
Parameters
resolution in px.
resolution in px.
frames per second of the stream.
H264 in bps.
could be 90, 180, 270 or 0 (Normally 0 if you are streaming in landscape or 90
codec value from MediaCodecInfo.CodecProfileLevel class
codec value from MediaCodecInfo.CodecProfileLevel class if you are streaming in Portrait). This only affect to stream result. NOTE: Rotation with encoder is silence ignored in some devices.
backward compatibility reason
Same to call: isHardwareRotation = true; if (openGlVIew) isHardwareRotation = false; prepareVideo(640, 480, 30, 1200 * 1024, isHardwareRotation, 90);
Return
true if success, false if you get a error (Normally because the encoder selected doesn't support any configuration seated or your device hasn't a H264 encoder).