- Pan remote camera to the left
- Pan remote camera to the right
- Tilt remote camera down
- Tilt remote camera up
- Zoom in
- Zoom out
- canCameraPanLeft capability for panning camera to the left.
- canCameraPanRight capability for panning camera to the right.
- canCameraTiltDown capability for tilting camera down.
- canCameraTiltUp capability for tilting camera up.
- canCameraZoomIn capability for zooming in.
- canCameraZoomOut capability for zooming out.
It is recommended to bind start of an action when button is pressed and stop of an action when button is released. In the snippet below lets see how we can achieve this (in this example we'll perform "ZoomIn" action):
var conversation;
// ...
// Here we choose conversation for which we'll control remote camera.
// ...
// ...
// We'll assume that button for "ZoomIn" has been pressed.
// ...
if(conversation.capabilities.canControlRemoteCamera && conversation.capabilities.canCameraZoomIn)
{
// Start "ZoomIn" action.
conversation.startRemoteCameraAction("ZoomIn");
}
// ...
// We'll assume that button for "ZoomIn" has been released.
// ...
if(conversation.capabilities.canControlRemoteCamera && conversation.capabilities.canCameraZoomIn)
{
// Stop "ZoomIn" action.
conversation.stopRemoteCameraAction("ZoomIn");
}
For the list of supported camera actions please see RemoteCameraAction.