DisplayBase
Wrapper to stream display screen of your device and microphone. Can be executed in background. API requirements: API 21+. Created by pedro on 9/08/17.
Inheritors
Functions
Link copied to clipboard
Mute microphone, can be called before, while and after stream.
Link copied to clipboard
Enable a muted microphone, can be called before, while and after stream.
Link copied to clipboard
Link copied to clipboard
Force stream to work with fps selected in prepareVideo method.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get mute state of microphone.
Link copied to clipboard
Get record state.
Link copied to clipboard
Get stream state.
Link copied to clipboard
Link copied to clipboard
Same to call: prepareAudio(64 * 1024, 32000, true, false, false);
open fun prepareAudio(bitrate: Int, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
open fun prepareAudio(audioSource: Int, bitrate: Int, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
Call this method before use @startStream.
Link copied to clipboard
open fun prepareInternalAudio(bitrate: Int, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
Call this method before use @startStream for streaming internal audio only.
Link copied to clipboard
Same to call: rotation = 0; if (Portrait) rotation = 90; prepareVideo(640, 480, 30, 1200 * 1024, true, 0);
open fun prepareVideo(width: Int, height: Int, fps: Int, bitrate: Int, rotation: Int, dpi: Int): Boolean
open fun prepareVideo(width: Int, height: Int, fps: Int, bitrate: Int, rotation: Int, dpi: Int, profile: Int, level: Int, iFrameInterval: Int): Boolean
Call this method before use @startStream.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Create Intent used to init screen capture with startActivityForResult.
Link copied to clipboard
Link copied to clipboard
Set an audio effect modifying microphone's PCM buffer.
Link copied to clipboard
Set a callback to know errors related with Video/Audio encoders
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set the mode to calculate timestamp.
Link copied to clipboard
Set video bitrate of H264 in bits per second while stream.
Link copied to clipboard
Link copied to clipboard
Starts recording a MP4 video.
Link copied to clipboard
Need be called after @prepareVideo or/and @prepareAudio.
Link copied to clipboard
Stop record MP4 video started with @startRecord.
Link copied to clipboard
Stop stream started with @startStream.