RtmpStream
Created by pedro on 14/3/22.
If you use VideoManager.Source.SCREEN/AudioManager.Source.INTERNAL. Call changeVideoSourceScreen/changeAudioSourceInternal is necessary to start it.
Constructors
Properties
Functions
Change audio source. Must be called after prepareAudio.
Change video source to Camera1 or Camera2. Must be called after prepareVideo.
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 glInterface used to render video. This is useful to send filters to stream. Must be called after prepareVideo.
return surface texture that can be used to render and encode custom data. Return null if video not prepared. start and stop rendering must be managed by the user.
Pause record. Ignored if you are not recording.
Resume record. Ignored if you are not recording and in pause mode.
Set a callback to know errors related with Video/Audio encoders
Change stream orientation depend of activity orientation. This method affect to preview and stream. Must be called after prepareVideo.
Set video bitrate in bits per second while streaming.
Start preview in the selected SurfaceView. Must be called after prepareVideo.
Start preview in the selected TextureView. Must be called after prepareVideo.
Start preview in the selected SurfaceTexture. Must be called after prepareVideo.
Start preview in the selected Surface. Must be called after prepareVideo.
Start record.
Start stream.
Stop preview. Must be called after prepareVideo.
Stop stream.