Skip to main content

Video Types

VideoFrame

Video frame data received from the stream.
Example usage:

Recording Types

Recording

Recording data with presigned URLs for a stream.
URLs are valid for a limited time (typically 1 hour).

StreamRecordingInfo

Summary info for a stream recording in a list.

StreamRecordingsList

Paginated list of stream recordings.

Simulate API Types

Simulate API types were added in v1.0.0

ScriptEntry

An entry in a simulation script.

SimulationStream

Output stream from a simulation job, including recording artifact URLs.

SimulationJobInfo

Summary information for a simulation job in a list.

SimulationJobDetail

Detailed information about a simulation job.

SimulationJobsList

Paginated list of simulation jobs.

Client Credentials Types

Client credentials types were added in v1.3.0

StreamerCapabilities

Capabilities advertised by the connected streamer session. Used to determine what features are available (e.g., image-to-video).

ClientCredentials

Pre-minted credentials for client-side connections without an API key. Created server-side via create_client_credentials() and passed to the client application.
Serialization:
The session_id in the dict is informational. On deserialization, it is re-derived from the JWT to prevent tampering.

Broadcast Types

BroadcastInfo

Broadcast playback URLs for spectators, received via the on_broadcast_ready callback when broadcast=True is passed to start_stream().

SpectatorConnection

Handle for an active spectator connection. Returned by connect_to_stream().

Status Types

ConnectionStatus

Configuration Types

ClientConfig

Configuration for the Odyssey client.

AdvancedConfig

Advanced connection settings.

Exceptions

OdysseyError

Base exception for all Odyssey errors.

OdysseyAuthError

Raised when authentication fails.

OdysseyConnectionError

Raised when connection fails.

OdysseyStreamError

Raised when a stream operation fails.

Error Handling

Fatal vs Non-Fatal Errors

The on_error handler receives a fatal boolean parameter:

Common Errors

Environment Variables