RtspServerDisplay

@RequiresApi(api = 21)
class RtspServerDisplay(context: Context, useOpengl: Boolean, connectChecker: ConnectChecker, port: Int) : DisplayBase

Constructors

Link copied to clipboard
constructor(context: Context, useOpengl: Boolean, connectChecker: ConnectChecker, port: Int)

Properties

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

Functions

Link copied to clipboard
open fun disableAudio()
Link copied to clipboard
open fun enableAudio()
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 pauseRecord()
Link copied to clipboard
open fun prepareAudio(): Boolean
open fun prepareAudio(bitrate: Int, sampleRate: Int, isStereo: Boolean): Boolean
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
Link copied to clipboard
@RequiresApi(api = 29)
open fun prepareInternalAudio(bitrate: Int, sampleRate: Int, isStereo: Boolean): Boolean
@RequiresApi(api = 29)
open fun prepareInternalAudio(bitrate: Int, sampleRate: Int, isStereo: Boolean, echoCanceler: Boolean, noiseSuppressor: Boolean): Boolean
Link copied to clipboard
open fun prepareVideo(): Boolean
open fun prepareVideo(width: Int, height: Int, bitrate: Int): Boolean
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
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 sendIntent(): Intent?
Link copied to clipboard
open fun setAudioCodec(codec: AudioCodec?)
Link copied to clipboard
open fun setCustomAudioEffect(customAudioEffect: CustomAudioEffect?)
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 setIntentResult(resultCode: Int, data: Intent?)
Link copied to clipboard
open fun setMediaProjectionCallback(mediaProjectionCallback: MediaProjection.Callback?)
Link copied to clipboard
open fun setRecordController(recordController: RecordController?)
Link copied to clipboard
open fun setTimestampMode(timestampModeVideo: TimestampMode?, timestampModeAudio: TimestampMode?)
Link copied to clipboard
open fun setVideoBitrateOnFly(bitrate: Int)
Link copied to clipboard
open fun setVideoCodec(codec: VideoCodec?)
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 stopRecord()
Link copied to clipboard
open fun stopStream()