@magiclane/maps-sdk
    Preparing search index...

    Class Playback

    Represents the operations that can be performed on a DataSource which has playback capabilities

    Hierarchy

    • GemAutoreleaseObject
      • Playback
    Index

    Accessors

    • get currentPosition(): number

      Return the current position (milliseconds from begin/departure/starting point).

      Returns number

      The playback position in milliseconds.

    • get duration(): number

      The duration of the playback in milliseconds.

      Returns number

      The duration of the playback in milliseconds.

    • get logPath(): string

      Get the log path.

      Returns string

      The log path.

    • get maxSpeedMultiplier(): number

      Gets the maximum speed multiplier. Relevant for route based data source

      Returns number

      The maximum speed multiplier

    • get minSpeedMultiplier(): number

      Gets the minimum speed multiplier. Relevant for route based data source

      Returns number

      The minimum speed multiplier

    • get route(): Route | null

      Get the route if it is a simulation data source.

      Returns Route | null

      The route on which the navigation in running or null if not available

    • get speedMultiplier(): number

      Get the speed multiplier. Relevant for route based data source

      Returns number

      The current speed multiplier

    • get state(): PlayingStatus

      Return the playback state of this data source.

      Returns PlayingStatus

      The status of the data source

    Methods

    • The latest data from the DataSource.

      Parameters

      • type: DataType

        The type for which to get the sense data

      Returns SenseData | null

      The SenseData object if it exists, otherwise null.

    • Pause the playback.

      Returns GemError

      GemError.success on success, other GemError values on failure

    • Registers an object for auto release. When the object is not used anymore, it will be released automatically from C++.

      Parameters

      • pointerId: any

        The pointer ID to register

      Returns void

    • Resume the playback.

      Returns GemError

      GemError.success on success, other GemError values on failure

    • Sets the current position (milliseconds from begin/departure/starting point).

      Parameters

      • newPosition: number

        The new position to be set

      Returns number

      The old playback position in milliseconds.

    • Sets play log continuously.

      Parameters

      • loopMode: boolean

        The actual value to be set for loop mode.

      Returns GemError

      GemError.success on success, other GemError values on failure

    • Sets the speed multiplier. Relevant for route based data source

      Parameters

      • speedMultiplier: number

        the new speed multiplier

      Returns GemError

      GemError.success on success, other GemError values on failure

    • Step to the next frame. Only available for data sources that contain video.

      Returns void

    • Parameters

      • id: number

      Returns Playback