IPolyCameraService

interface IPolyCameraService

Camera service exposed for PolyOs Clients

Functions

Link copied to clipboard
abstract fun deletePreset(cameraId: String, preset: Int): Boolean
Deletes the preset for the given camera Presets are available per camera.
Link copied to clipboard
abstract fun getCamera(cameraId: String): Camera
Returns the Camera with the given id
Link copied to clipboard
abstract fun getCameraCapability(cameraId: String): CameraCapability
Returns the CameraCapability for given camera
Link copied to clipboard
abstract fun getCameraDeviceType(cameraId: String): Int
Get camera device type CameraDeviceType
Link copied to clipboard
abstract fun getCameraImageDataFormat(cameraId: String): Int
Get the camera image data format that is only for camera 2 API now.
Link copied to clipboard
abstract fun getCameras(filter: CameraType): List<Camera>
Returns all the Camera of the given filter type.
Link copied to clipboard
abstract fun getMaxVirtualCameras(): Int
Returns the global maximum virtual cameras that may be created.
abstract fun getMaxVirtualCameras(cameraID: String): Int
Returns the maximum virtual cameras that may be created for specific cameraID.
Link copied to clipboard
abstract fun getNumberOfPresets(cameraId: String): Int
Returns the total number of presets that can be set for the given camera.
Link copied to clipboard
abstract fun getPresenterTrackingInfo(cameraId: String): PresenterTrackingInfo
Returns the PresenterTrackingInfo for the given camera, if the camera supports it and its current tracking mode is "FramePresenter", otherwise null.
Link copied to clipboard
abstract fun getPresetImageURL(cameraId: String, preset: Int): String
Internal API.
Link copied to clipboard
abstract fun getPTZ(cameraId: String): CameraPTZValue
Get the absolute value of current PTZ Camera.
Link copied to clipboard
abstract fun getTrackingMode(cameraId: String): CameraTrackingMode
Returns the CameraTrackingMode for the given camera.
Link copied to clipboard
abstract fun goToPreset(cameraId: String, preset: Int): Boolean
Go to the given preset for the given camera.
Link copied to clipboard
abstract fun isAutoFramingOn(cameraId: String): Boolean
Returns whether auto framing is on for given camera
Link copied to clipboard
abstract fun isCameraShutterOpen(cameraId: String): Boolean
Get the status of the shutter for camera.
Link copied to clipboard
abstract fun isPresetSaved(cameraId: String, preset: Int): Boolean
Checks if the preset for the given camera has been saved.
Link copied to clipboard
abstract fun isVirtualCamerasEnabled(cameraId: String): Boolean
Returns whether virtual cameras are enabled for the given camera.
Link copied to clipboard
abstract fun moveToHomePosition(cameraId: String): Boolean
Moves the camera's pan, tilt and zoom position back to its home/center coordinates.
Link copied to clipboard
abstract fun registerCameraListener(cameraListener: IPolyCameraListener)
Link copied to clipboard
abstract fun selectCamera(cameraId: String)
Set the given camera as selected
Link copied to clipboard
abstract fun setAutoFraming(cameraId: String, on: Boolean): Boolean
Enable/disable auto framing
Link copied to clipboard
abstract fun setMaxVirtualCameras(max: Int): Boolean
Sets the global maximum virtual cameras to be created across all logical cameras.
Link copied to clipboard
abstract fun setPresenterTrackingInfo(cameraId: String, presenterTrackingInfo: PresenterTrackingInfo): Boolean
Sets the PresenterTrackingInfo for the given camera, if the camera supports "FramePresenter" as an available tracking mode.
Link copied to clipboard
abstract fun setPreset(cameraId: String, preset: Int): Boolean
Sets the current position for the given camera as the given preset.
Link copied to clipboard
abstract fun setPTZ(cameraId: String, value: CameraPTZValue): Boolean
Set the absolute moving value of PTZ.
Link copied to clipboard
abstract fun setTrackingMode(cameraId: String, trackingMode: String): Boolean
Sets tracking mode of the given camera.
Link copied to clipboard
abstract fun setVirtualCamerasEnabled(cameraId: String, enabled: Boolean): Boolean
Enable / Disable virtual cameras for the given logical camera.
Link copied to clipboard
abstract fun startMoving(cameraId: String, direction: CameraMoveDirection)
Start moving the camera in the given direction
Link copied to clipboard
abstract fun stopMoving(cameraId: String)
Stop moving the camera
Link copied to clipboard
abstract fun unRegisterCameraListener(cameraListener: IPolyCameraListener)

Properties

Link copied to clipboard
val DEVICE_TYPE_CAMERA: Int
Indicating that the device is a camera.
Link copied to clipboard
val DEVICE_TYPE_DEFAULT: Int
Indicating that this is a default device.
Link copied to clipboard
val DEVICE_TYPE_DOCUMENT_CAMERA: Int
Indicating that the device is a document camera.
Link copied to clipboard
val DEVICE_TYPE_HDMI_INPUT: Int
Indicating that the device is an HDMI input camera.
Link copied to clipboard
val DEVICE_TYPE_WHITEBOARD_CAMERA: Int
Indicating that the device is a whiteboard camera.
Link copied to clipboard
val IMAGE_DATA_FORMAT_NV12: Int
Indicating the NV12 format.
Link copied to clipboard
val IMAGE_DATA_FORMAT_YUV_420_888: Int
Indicating the YUV_420_888 format.