Agora Java API Reference for Android
Classes | Static Public Member Functions | List of all members
io.agora.rtc.video.CameraHelper Class Reference

Classes

class  Capability
 

Static Public Member Functions

static boolean checkPermission ()
 
static Capability createCapability (int id, int facing, Camera.Parameters param)
 
static synchronized List< CapabilitygetCameraCapability ()
 

Detailed Description

Created by liwei on 6/9/15.

Member Function Documentation

◆ createCapability()

static Capability io.agora.rtc.video.CameraHelper.createCapability ( int  id,
int  facing,
Camera.Parameters  param 
)
static

Creates a capability object from the camera parameters. If the parameters do not contain the preview resolution and fps information, it will throw an exception.

Parameters
idcamera id
paramcamera parameters
Returns
Capability

◆ getCameraCapability()

static synchronized List<Capability> io.agora.rtc.video.CameraHelper.getCameraCapability ( )
static

get camera device's preview capability from system. Caution: call this function may take a long time to complete on some device. Call this function before VideoCaptureAndroid is created. If channal is joined and camera is already opened, it will throw a RuntimeException. There is not camera device on some platform like top set box, it will also throw a RuntimeException.

Returns
List<Capability>