FromFileBase
Wrapper to stream a MP4 file with H264 video codec. Only Video is streamed, no Audio. Can be executed in background. API requirements: API 18+. Created by pedro on 7/07/17.
Inheritors
Constructors
Link copied to clipboard
constructor(videoDecoderInterface: VideoDecoderInterface, audioDecoderInterface: AudioDecoderInterface)
constructor(context: Context, videoDecoderInterface: VideoDecoderInterface, audioDecoderInterface: AudioDecoderInterface)
OpenGl mode, necessary context.
constructor(openGlView: OpenGlView, videoDecoderInterface: VideoDecoderInterface, audioDecoderInterface: AudioDecoderInterface)
Functions
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get record state.
Link copied to clipboard
Get stream state.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun prepareVideo(fileDescriptor: FileDescriptor, bitRate: Int, rotation: Int, profile: Int, level: Int): Boolean
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set a callback to know errors related with Video/Audio encoders
Link copied to clipboard
Link copied to clipboard
If you want reproduce video in loop.
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
Link copied to clipboard
Starts recording a MP4 video.
Link copied to clipboard
Need be called after @prepareVideo.
Link copied to clipboard
Link copied to clipboard
Stop record MP4 video started with @startRecord.
Link copied to clipboard
Stop stream started with @startStream.