SIGN UP

ICameraManager

Interface that may be used to manage cameras on Android device.

Methods

void addCameraEventsListener(ICameraEventsListener cameraEventsListener)

Add ICameraEventsListener to be notified about camera events

Parameters

String[] getCameraDeviceNames()

Get available camera device names.

Returns

  • Return:

    String[]

    camera device names

List<CameraResolution> getCameraSupportedResolutions(String cameraName)

Get all supported resolutions of the specified camera.

Parameters

  • cameraName:

    String

    Camera name to request supported resolutions

Returns

void removeCameraEventsListener(ICameraEventsListener cameraEventsListener)

Remove previously added ICameraEventsListener

Parameters

void setCamera(int cameraIndex, int frameWidth, int frameHeight)

Select camera and local video frame resolution. Camera will capture frames in a format that is as close as possible to frameWidth x frameHeight

Parameters

  • cameraIndex:

    int

    Should be 0 for back facing camera or 1 for front facing camera

  • frameWidth:

    int

    Camera resolution width.

  • frameHeight:

    int

    Camera resolution height

void setCamera(int cameraIndex, VideoQuality quality)

Select camera and local video frame resolution quality.

Parameters

  • cameraIndex:

    int

    Should be 0 for back facing camera and 1 for front facing camera

  • quality:

    VideoQuality

    Quality for local video