DataTrackFrame

class DataTrackFrame(val payload: ByteArray, val userTimestamp: Long? = null)

A single unit of application data sent or received over a data track.

Parameters

payload

The application payload carried by this frame.

userTimestamp

Optional sender-provided timestamp, opaque to the SDK and carried end-to-end unmodified. Publisher and subscriber agree on what it means, so a sensor's clock works as well as wall time. now and durationSinceTimestamp are the exception — they read it as milliseconds since the Unix epoch.

Constructors

Link copied to clipboard
constructor(payload: ByteArray, userTimestamp: Long? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

How long ago the frame was stamped, or null if it carries no timestamp or the timestamp lies in the future.

Link copied to clipboard
Link copied to clipboard
val userTimestamp: Long? = null

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int