360 SDK — Controls
Programmatic playback and camera orientation.
Controls
Every player exposes a small imperative API for camera and playback control — useful for building your own UI chrome instead of the built-in controls.
JavaScript
// Camera
player.lookAt({ lon: 90, lat: 10 }); // absolute orientation (degrees)
player.rotateBy({ lon: 15, lat: -5 }); // relative nudge
player.getOrientation(); // → { lon, lat }
// Playback
player.play();
player.pause();
player.seek(12.5); // seconds into the capture
player.setMuted(true);
player.destroy();Notes
Orientation is clamped to lat ∈ [-85, 85] so the camera never flips at the poles.
seek works while paused — scrub without playback to inspect a specific moment.
Combine orientation events with lookAt to build guided tours of a capture.