Playback class Sensor Data Source
Controls a playback-enabled DataSource, for example a log file or a simulated route replay.
The Playback interface exposes operations to pause, resume, seek, and adjust playback speed. It applies only to data sources of
DataSourceType.playback and is not compatible with live or custom
data sources. Use the playback getter on a DataSource to obtain an
instance when available.
See also:
- DataSource - Represents a source of data for playback.
Constructors
- Playback.init(int id)
Properties
- currentPosition → int
-
The current playback position, in milliseconds from the start of the
log or simulation.
no setter
- duration → int
-
The total duration of the playback, in milliseconds.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- logPath → String
-
The file path of the log being played back.
no setter
- maxSpeedMultiplier → double
-
The maximum allowed playback speed multiplier for this data source.
no setter
- minSpeedMultiplier → double
-
The minimum allowed playback speed multiplier for this data source.
no setter
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- route → Route?
-
The route used by this playback when the data source is a simulation.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speedMultiplier → double
-
The current playback speed multiplier.
no setter
- state → PlayingStatus
-
Returns the current playback state.
no setter
Methods
-
dispose(
) → void -
Disposes the native object.
inherited
-
getLatestData(
DataType type) → SenseData? -
Retrieves the latest produced SenseData of the requested
type. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → GemError - Pauses playback.
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
resume(
) → GemError - Resumes playback.
-
setCurrentPosition(
int newPosition) → int - Sets the current playback position.
-
setLoopMode(
bool loopMode) → GemError - Enables or disables continuous looping of the playback.
-
setSpeedMultiplier(
double speedMultiplier) → GemError - Sets the playback speed multiplier.
-
step(
) → void - Advances playback by a single frame.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited