RtspServerFromFile

@RequiresApi(api = 21)
class RtspServerFromFile : FromFileBase

Constructors

Link copied to clipboard
constructor(openGlView: OpenGlView, connectCheckerRtsp: ConnectChecker, port: Int, videoDecoderInterface: VideoDecoderInterface, audioDecoderInterface: AudioDecoderInterface)
constructor(context: Context, connectCheckerRtsp: ConnectChecker, port: Int, videoDecoderInterface: VideoDecoderInterface, audioDecoderInterface: AudioDecoderInterface)

Properties

Link copied to clipboard
Link copied to clipboard
open val audioTime: Double
Link copied to clipboard
open val bitrate: Int
Link copied to clipboard
open val glInterface: GlInterface?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val recordStatus: RecordController.Status?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val streamHeight: Int
Link copied to clipboard
open val streamWidth: Int
Link copied to clipboard
Link copied to clipboard
open val videoTime: Double

Functions

Link copied to clipboard
open fun forceBt709Color(enabled: Boolean)
Link copied to clipboard
open fun forceCodecType(codecTypeVideo: CodecUtil.CodecType?, codecTypeAudio: CodecUtil.CodecType?)
Link copied to clipboard
open fun forceFpsLimit(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun moveTo(time: Double)
Link copied to clipboard
open fun pauseRecord()
Link copied to clipboard
open fun playAudioDevice()
Link copied to clipboard
open fun prepareAudio(filePath: String?): Boolean
open fun prepareAudio(context: Context?, uri: Uri?): Boolean
open fun prepareAudio(fileDescriptor: FileDescriptor?, bitRate: Int): Boolean
open fun prepareAudio(filePath: String?, bitRate: Int): Boolean
open fun prepareAudio(context: Context?, uri: Uri?, bitRate: Int): Boolean
Link copied to clipboard
open fun prepareVideo(fileDescriptor: FileDescriptor?): Boolean
open fun prepareVideo(filePath: String?): Boolean
open fun prepareVideo(context: Context?, uri: Uri?): Boolean
open fun prepareVideo(fileDescriptor: FileDescriptor?, bitRate: Int, rotation: Int): Boolean
open fun prepareVideo(filePath: String?, bitRate: Int, rotation: Int): Boolean
open fun prepareVideo(context: Context?, uri: Uri?, bitRate: Int, rotation: Int): Boolean
open fun prepareVideo(fileDescriptor: FileDescriptor?, bitRate: Int, rotation: Int, profile: Int, level: Int): Boolean
open fun prepareVideo(filePath: String?, bitRate: Int, rotation: Int, profile: Int, level: Int): Boolean
open fun prepareVideo(context: Context?, uri: Uri?, bitRate: Int, rotation: Int, profile: Int, level: Int): Boolean
Link copied to clipboard
open fun replaceAudioFile(fileDescriptor: FileDescriptor?)
open fun replaceAudioFile(filePath: String?)
open fun replaceAudioFile(context: Context?, uri: Uri?)
Link copied to clipboard
open fun replaceVideoFile(fileDescriptor: FileDescriptor?)
open fun replaceVideoFile(filePath: String?)
open fun replaceVideoFile(context: Context?, uri: Uri?)
Link copied to clipboard
open fun replaceView(context: Context?)
open fun replaceView(openGlView: OpenGlView?)
Link copied to clipboard
open fun requestKeyFrame()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun resumeRecord()
Link copied to clipboard
open fun reSyncFile()
Link copied to clipboard
open fun setAudioCodec(codec: AudioCodec?)
Link copied to clipboard
open fun setAudioExtractor(extractor: Extractor?)
Link copied to clipboard
open fun setDecoderErrorCallback(codecErrorCallback: CodecErrorCallback?)
Link copied to clipboard
open fun setEncoderErrorCallback(encoderErrorCallback: CodecErrorCallback?)
Link copied to clipboard
open fun setFpsListener(callback: FpsListener.Callback?)
Link copied to clipboard
open fun setLoopMode(loopMode: Boolean)
Link copied to clipboard
open fun setRecordController(recordController: RecordController?)
Link copied to clipboard
open fun setTimestampMode(timestampModeVideo: TimestampMode?, timestampModeAudio: TimestampMode?)
Link copied to clipboard
@RequiresApi(api = 19)
open fun setVideoBitrateOnFly(bitrate: Int)
Link copied to clipboard
open fun setVideoCodec(codec: VideoCodec?)
Link copied to clipboard
open fun setVideoExtractor(extractor: Extractor?)
Link copied to clipboard
@RequiresApi(api = 26)
open fun startRecord(@NonNull fd: FileDescriptor)
open fun startRecord(@NonNull path: String)
@RequiresApi(api = 26)
open fun startRecord(@NonNull fd: FileDescriptor, @Nullable listener: RecordController.Listener?)
open fun startRecord(@NonNull path: String, @Nullable listener: RecordController.Listener?)
Link copied to clipboard
open fun startStream(url: String?)
Link copied to clipboard
open fun stopAudioDevice()
Link copied to clipboard
open fun stopRecord()
Link copied to clipboard
open fun stopStream()