pyrealsense2.playback

class pyrealsense2.playback
__init__(self: pyrealsense2.playback, device: pyrealsense2.device) None

Methods

__init__(self, device)

as_auto_calibrated_device(self)

as_calibration_change_device(self)

as_debug_protocol(self)

as_device_calibration(self)

as_firmware_logger(self)

as_playback(self)

as_recorder(self)

as_updatable(self)

as_update_device(self)

current_status(self)

Returns the current state of the playback device

file_name(self)

The name of the playback file.

first_color_sensor(self)

first_depth_sensor(self)

first_fisheye_sensor(self)

first_motion_sensor(self)

first_pose_sensor(self)

first_roi_sensor(self)

get_duration(self)

Retrieves the total duration of the file.

get_info(self, info)

Retrieve camera specific information, like versions of various internal components

get_position(self)

Retrieves the current position of the playback in the file in terms of time.

hardware_reset(self)

Send hardware reset request to the device

is_auto_calibrated_device(self)

is_calibration_change_device(self)

is_connected(self)

is_debug_protocol(self)

is_device_calibration(self)

is_firmware_logger(self)

is_metadata_enabled(self)

is_playback(self)

is_real_time(self)

Indicates if playback is in real time mode or non real time.

is_recorder(self)

is_updatable(self)

is_update_device(self)

pause(self)

Pauses the playback.

query_sensors(self)

Returns the list of adjacent devices, sharing the same physical parent composite device.

resume(self)

Un-pauses the playback.

seek(self, time)

Sets the playback to a specified time point of the played data.

set_real_time(self, real_time)

Set the playback to work in real time or non real time.

set_status_changed_callback(self, callback)

Register to receive callback from playback device upon its status changes.

supports(self, info)

Check if specific camera info is supported.

Attributes

sensors

List of adjacent devices, sharing the same physical parent composite device.

current_status(self: pyrealsense2.playback) pyrealsense2.playback_status

Returns the current state of the playback device

file_name(self: pyrealsense2.playback) str

The name of the playback file.

get_duration(self: pyrealsense2.playback) datetime.timedelta

Retrieves the total duration of the file.

get_position(self: pyrealsense2.playback) int

Retrieves the current position of the playback in the file in terms of time. Units are expressed in nanoseconds.

is_real_time(self: pyrealsense2.playback) bool

Indicates if playback is in real time mode or non real time.

pause(self: pyrealsense2.playback) None

Pauses the playback. Calling pause() in “Paused” status does nothing. If pause() is called while playback status is “Playing” or “Stopped”, the playback will not play until resume() is called.

resume(self: pyrealsense2.playback) None

Un-pauses the playback. Calling resume() while playback status is “Playing” or “Stopped” does nothing.

seek(self: pyrealsense2.playback, time: datetime.timedelta) None

Sets the playback to a specified time point of the played data.

set_real_time(self: pyrealsense2.playback, real_time: bool) None

Set the playback to work in real time or non real time. In real time mode, playback will play the same way the file was recorded. If the application takes too long to handle the callback, frames may be dropped. In non real time mode, playback will wait for each callback to finish handling the data before reading the next frame. In this mode no frames will be dropped, and the application controls the framerate of playback via callback duration.

set_status_changed_callback(self: pyrealsense2.playback, callback: Callable[[pyrealsense2.playback_status], None]) None

Register to receive callback from playback device upon its status changes. Callbacks are invoked from the reading thread, and as such any heavy processing in the callback handler will affect the reading thread and may cause frame drops/high latency.