module Cisco::CollaborationEndpoint::Cameras

Included Modules

Direct including types

Defined in:

cisco/collaboration_endpoint/cameras.cr

Instance Method Summary

Class methods inherited from module Cisco::CollaborationEndpoint::XAPI

create_action(__action__ : ActionType, *args, hash_args : Hash(String, JSON::Any::Type) = {} of String => JSON::Any::Type, priority : Int32 | Nil = nil, **kwargs) create_action, parse(data : String) parse, tokenize(path : String) tokenize, value_convert(value : String, valuespace : String | Nil = nil) value_convert, xcommand(path : String, hash_args : Hash(String, JSON::Any::Type) = {} of String => JSON::Any::Type, **kwargs) xcommand, xconfiguration(path : String, setting : String, value : JSON::Any::Type) xconfiguration, xfeedback(action : FeedbackAction, path : String | Nil = nil) xfeedback, xstatus(path : String) xstatus

Macros inherited from module Cisco::CollaborationEndpoint::XAPI

command(cmd_name, **params) command

Instance Method Detail

def camera_move(camera_id : Int32, pan : Interface::Camera::PanDirection | Nil = nil, pan_speed : Int32 | Nil = nil, tilt : Interface::Camera::TiltDirection | Nil = nil, tilt_speed : Int32 | Nil = nil, zoom : Interface::Zoomable::ZoomDirection | Nil = nil, zoom_speed : Int32 | Nil = nil, focus : FocusDirection | Nil = nil) #

[View source]
def camera_position_reset(camera_id : Int32, axis : CameraAxis | Nil = nil) #

[View source]
def camera_preset(preset_id : Int32) #

[View source]
def camera_remove_preset(preset_id : Int32) #

[View source]
def camera_store_preset(camera_id : Int32, preset_id : Int32, name : String | Nil = nil, take_snapshot : Bool | Nil = nil, default_position : Bool | Nil = nil) #

[View source]
def joystick(pan_speed : Float64, tilt_speed : Float64, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Camera

Most cameras support sending a move speed, the interface should expect a percentage


[View source]
def move(position : MoveablePosition, index : Int32 | String = 0) #

[View source]
def recall(position : String, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Camera

Most cameras support presets (either as a feature or via manual positioning)


[View source]
def remove_position(name : String, index : Int32 | String = 0) #

[View source]
def save_position(name : String, index : Int32 | String = 0) #

[View source]
def stop(index : Int32 | String = 0, emergency : Bool = false) #

[View source]
def zoom(direction : ZoomDirection, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Zoomable

As zoom is typically discreet we manually implement the analogue version Simple enough to overwrite this as required


[View source]
def zoom_to(position : Float64, auto_focus : Bool = true, index : Int32 | String = 0) #
Description copied from module PlaceOS::Driver::Interface::Zoomable

This a discrete level on most cameras


[View source]