com.voximplant.sdk.hardware

Interface ICameraManager



  • public interface ICameraManager
    Interface that may be used to manage cameras on Android device.
    • Method Detail

      • setCamera

        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 - Should be 0 for back facing camera or 1 for front facing camera
        frameWidth - camera resolution width.
        frameHeight - camera resolution height
      • setCamera

        void setCamera(int cameraIndex, VideoQuality quality)
        Select camera and local video frame resolution quality.
        Parameters:
        cameraIndex - Should be 0 for back facing camera and 1 for front facing camera
        quality - quality for local video
        See Also:
        VideoQuality
      • getCameraDeviceNames

        java.lang.String[] getCameraDeviceNames()
        Get available camera device names.
        Returns:
        camera device names
      • getCameraSupportedResolutions

        java.util.List<CameraResolution> getCameraSupportedResolutions(java.lang.String cameraName)
        Get all supported resolutions of the specified camera.
        Parameters:
        cameraName - Camera name to request supported resolutions
        Returns:
        List of camera resolutions.
        See Also:
        CameraResolution
      • addCameraEventsListener

        void addCameraEventsListener(ICameraEventsListener cameraEventsListener)
        Add ICameraEventsListener to be notified about camera events
        Parameters:
        cameraEventsListener - ICameraEventsListener instance
        See Also:
        ICameraEventsListener
      • removeCameraEventsListener

        void removeCameraEventsListener(ICameraEventsListener cameraEventsListener)
        Remove previously added ICameraEventsListener
        Parameters:
        cameraEventsListener - ICameraEventsListener instance
        See Also:
        ICameraEventsListener