Track

  • The Track class is used for configuring data recording on session recording.

  • You can create a new Track using the public constructor that takes a Session object.

  • The Track class provides methods to set the ID, metadata, and mime type of the track.

  • The track ID is required for data retrieval during playback.

  • Metadata is arbitrary data that describes the track.

  • The mime type is set for external data tracks and serves as another means of identification.

public class Track

Configuration of a Track for recording data on session recording.

Public Constructors

Track(Session session)
Creates a new Track.

Public Methods

Track
setId(UUID trackUuid)
Sets the ID of the track.
Track
setMetadata(ByteBuffer metadata)
Sets the track metadata.
Track
setMimeType(String mimeType)
Sets the mime type for the external data track.

Inherited Methods

Public Constructors

Track

public Track(
  Session session
)

Creates a new Track.

Details
Parameters
session

Public Methods

setId

public Track setId(
  UUID trackUuid
)

Sets the ID of the track. This ID is required and will be the same ID used to retrieve data during playback.

Details
Parameters
trackUuid

setMetadata

public Track setMetadata(
  ByteBuffer metadata
)

Sets the track metadata. This is arbitrary data used to describe the track.

Details
Parameters
metadata

setMimeType

public Track setMimeType(
  String mimeType
)

Sets the mime type for the external data track. This will be the MIME type set on the additional stream created for this Track, another convenient means of identification, particularly for applications that do not support UUID as a means of identification.

Details
Parameters
mimeType