Home > @magiclane/maps-sdk > Playback
Playback class
Represents the operations that can be performed on a DataSource which has playback capabilities
Signature:
export declare class Playback extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
number |
Return the current position (milliseconds from begin/departure/starting point). | |
|
|
number |
The duration of the playback in milliseconds. | |
|
|
string |
Get the log path. | |
|
|
number |
Gets the maximum speed multiplier. Relevant for route based data source | |
|
|
number |
Gets the minimum speed multiplier. Relevant for route based data source | |
|
|
Route | null |
Get the route if it is a simulation data source. | |
|
|
number |
Get the speed multiplier. Relevant for route based data source | |
|
|
Return the playback state of this data source. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
The latest data from the DataSource. | ||
|
| ||
|
Pause the playback. | ||
|
Resume the playback. | ||
|
Sets the current position (milliseconds from begin/departure/starting point). | ||
|
Sets play log continuously. | ||
|
Sets the speed multiplier. Relevant for route based data source | ||
|
Step to the next frame. Only available for data sources that contain video. |