-
-
Notifications
You must be signed in to change notification settings - Fork 774
Camera1Base
With Camera1Base (RtmpCamera1 and RtspCamera1) you can use the following methods:
Set an audio effect modifying microphone's PCM buffer
Methods:
Callback to get fps while record or stream. Set null to disable.
Methods:
Experimental. Enable face detection returning faces detected in the callback.
Methods:
Experimental. Disable face detection
Methods:
Check if you are using front camera. True if front camera, false if back camera.
Methods:
Enable lantern.
Methods:
Disable lantern
Methods:
Check if you are using front camera. True if front camera, false if back camera.
Methods:
Authentication with server. Call this methods before startStream. Methods: String user, String password
Call this method before use startStream. Configure your video parameters. NOTE: Rotation with encoder is silence ignored in some devices.
Methods:
- int width, int height, int fps, int bitrate, boolean hardwareRotation, int iFrameInterval, int rotation, int avcProfile, int avcProfileLevel
- int width, int height, int fps, int bitrate, boolean hardwareRotation, int iFrameInterval, int rotation
- int width, int height, int fps, int bitrate, boolean hardwareRotation, int rotation
- No params
Call this method before use startStream. Configure your audio parameters
Methods:
- int bitrate, int sampleRate, boolean isStereo, boolean echoCanceler, boolean noiseSuppressor
- No params
Force use audio and video software, hardware or first compatible found encoder
Methods:
Start record a video. Should be called after prepareVideo and prepareAudio
Methods:
Stop record MP4 video started with startRecord. If you don't call it file will be unreadable
Methods:
Replace glInterface used on fly. Ignored if you use SurfaceView or TextureView
Methods:
Start camera preview. Ignored, if stream or preview is started.
Methods:
- CameraHelper.Facing cameraFacing, int width, int height, int rotation
- CameraHelper.Facing cameraFacing, int width, int height
- CameraHelper.Facing cameraFacing
- int width, int height
- No params
Stop camera preview. Ignored if streaming or already stopped. You need call it after stopStream to release camera properly if you will close activity.
Methods:
Change preview orientation can be called while stream. Could be 90, 180, 270 or 0.
Methods:
Set zoomIn or zoomOut to camera. Expected to get event.getPointerCount() > 1
Methods:
Need be called after prepareVideo or/and prepareAudio. This method override resolution of startPreview to resolution seated in prepareVideo. If you never startPreview this method startPreview for you to resolution seated in prepareVideo
Methods:
Stop stream started with startStream
Methods:
Try reconnect to server as many times as indicated in setReTries method.
Methods:
Set number of reTry to do.
Methods:
Return valid camera back resolutions.
Methods:
Return valid camera back resolutions.
Methods:
Mute microphone, can be called before, while and after stream
Methods:
Enable a muted microphone, can be called before, while and after stream
Methods:
Get mute state of microphone
Methods:
Get video bitrate setted
Methods:
Get resolution value (width x height)
Methods:
Get stream width resolution
Methods:
Get stream height resolution
Methods:
Switch camera used. Can be called on preview or while stream, ignored with preview off. CameraOpenException If the other camera doesn't support same resolution.
Methods:
Get GlInterface if you are using OpenGlVIew or LightOpenGlView
Methods:
Set video bitrate in kb while stream
Methods:
Set limit FPS while stream. This will be override when you call to prepareVideo method. This could produce a change in iFrameInterval
Methods:
Check if streaming
Methods:
Check if preview is enabled
Methods:
Check if recording
Methods:
Pause video record
Methods:
Resume a paused video record
Methods:
Get record status. STARTED, STOPPED, RECORDING, PAUSED, RESUMED
Methods: