RtmpDisplay
More documentation see: com.pedro.library.base.DisplayBase
Created by pedro on 9/08/17.
Functions
Mute microphone, can be called before, while and after stream.
Enable a muted microphone, can be called before, while and after stream.
Force stream to work with fps selected in prepareVideo method. Must be called before prepareVideo. This is not recommend because could produce fps problems.
Get mute state of microphone.
Get record state.
Same to call: prepareAudio(64 * 1024, 32000, true, false, false);
Call this method before use @startStream. If not you will do a stream without audio.
Call this method before use @startStream for streaming internal audio only.
Same to call: rotation = 0; if (Portrait) rotation = 90; prepareVideo(640, 480, 30, 1200 * 1024, true, 0);
Call this method before use @startStream. If not you will do a stream without video.
Create Intent used to init screen capture with startActivityForResult.
Set an audio effect modifying microphone's PCM buffer.
Set a callback to know errors related with Video/Audio encoders
Set the mode to calculate timestamp. By default CLOCK. Must be called before startRecord/startStream or it will be ignored.
Set video bitrate of H264 in bits per second while stream.
Starts recording a MP4 video.
Need be called after @prepareVideo or/and @prepareAudio.
Stop record MP4 video started with @startRecord. If you don't call it file will be unreadable.
Stop stream started with @startStream.