Struct PlaybackControlRequest

Struct Documentation

struct PlaybackControlRequest

A request to control playback from the Foxglove app.

Only relevant if the PlaybackControl capability is enabled.

Public Members

PlaybackCommand playback_command

The playback command.

float playback_speed

The playback speed.

std::optional<uint64_t> seek_time

The requested seek time, in absolute nanoseconds. Will be std::nullopt if no seek requested.

std::string request_id

The request ID.

Public Static Functions

static inline PlaybackControlRequest from(const foxglove_playback_control_request &c_playback_control_request)

Construct a PlaybackControlRequest from the corresponding C struct.

Parameters:

c_playback_control_request – C struct for a playback control request