RtspServerCamera1

class RtspServerCamera1 : Camera1Base

Created by pedro on 13/02/19.

Constructors

Link copied to clipboard
constructor(surfaceView: SurfaceView, connectChecker: ConnectChecker, port: Int)
constructor(textureView: TextureView, connectCheckerRtsp: ConnectChecker, port: Int)
@RequiresApi(api = 18)
constructor(openGlView: OpenGlView, connectChecker: ConnectChecker, port: Int)
@RequiresApi(api = 18)
constructor(context: Context, connectChecker: ConnectChecker, port: Int)

Properties

Link copied to clipboard
open val bitrate: Int
Link copied to clipboard
open val cameraFacing: CameraHelper.Facing?
Link copied to clipboard
open var exposure: 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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val maxExposure: Int
Link copied to clipboard
open val maxZoom: Int
Link copied to clipboard
open val minExposure: Int
Link copied to clipboard
open val minZoom: Int
Link copied to clipboard
open val recordStatus: RecordController.Status?
Link copied to clipboard
Link copied to clipboard
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 whiteBalance: String?
Link copied to clipboard
open val zoom: Float

Functions

Link copied to clipboard
open fun disableAudio()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun disableLantern()
Link copied to clipboard
Link copied to clipboard
open fun enableAudio()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun enableFaceDetection(faceDetectorCallback: FaceDetectorCallback?): Boolean
Link copied to clipboard
open fun enableLantern()
Link copied to clipboard
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
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): Boolean
open fun prepareVideo(width: Int, height: Int, fps: Int, bitrate: Int, iFrameInterval: Int, rotation: Int): Boolean
open fun prepareVideo(width: Int, height: Int, fps: Int, bitrate: Int, iFrameInterval: Int, rotation: Int, profile: Int, level: Int): Boolean
Link copied to clipboard
@RequiresApi(api = 18)
open fun replaceView(context: Context?)
@RequiresApi(api = 18)
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 setAudioCodec(codec: AudioCodec?)
Link copied to clipboard
open fun setCameraCallbacks(callbacks: CameraCallbacks?)
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 setPreviewOrientation(orientation: Int)
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 setZoom(event: MotionEvent?)
open fun setZoom(level: Int)
open fun setZoom(event: MotionEvent?, delta: Int)
Link copied to clipboard
open fun startPreview()
open fun startPreview(cameraFacing: CameraHelper.Facing?)
open fun startPreview(cameraFacing: Int)
open fun startPreview(cameraFacing: CameraHelper.Facing?, rotation: Int)
open fun startPreview(width: Int, height: Int)
open fun startPreview(cameraFacing: CameraHelper.Facing?, width: Int, height: Int)
open fun startPreview(cameraFacing: Int, width: Int, height: Int)
open fun startPreview(cameraFacing: CameraHelper.Facing?, width: Int, height: Int, rotation: Int)
open fun startPreview(cameraFacing: Int, width: Int, height: Int, rotation: Int)
open fun startPreview(cameraFacing: CameraHelper.Facing?, width: Int, height: Int, fps: Int, rotation: Int)
open fun startPreview(cameraId: Int, width: Int, height: Int, fps: Int, rotation: Int)
Link copied to clipboard
@RequiresApi(api = 26)
open fun startRecord(@NonNull fd: FileDescriptor)
@RequiresApi(api = 18)
open fun startRecord(@NonNull path: String)
@RequiresApi(api = 26)
open fun startRecord(@NonNull fd: FileDescriptor, @Nullable listener: RecordController.Listener?)
@RequiresApi(api = 18)
open fun startRecord(@NonNull path: String, @Nullable listener: RecordController.Listener?)
Link copied to clipboard
open fun startStream(url: String?)
Link copied to clipboard
@RequiresApi(api = 18)
open fun startStreamAndRecord(url: String?, path: String?)
@RequiresApi(api = 18)
open fun startStreamAndRecord(url: String?, path: String?, listener: RecordController.Listener?)
Link copied to clipboard
open fun stopCamera()
Link copied to clipboard
open fun stopPreview()
Link copied to clipboard
@RequiresApi(api = 18)
open fun stopRecord()
Link copied to clipboard
open fun stopStream()
Link copied to clipboard
open fun switchCamera()
open fun switchCamera(cameraId: Int)
Link copied to clipboard
open fun tapToFocus(view: View?, event: MotionEvent?): Boolean