AI-generated Key Takeaways
-
The
Trackclass is used for configuring data recording on session recording. -
You can create a new
Trackusing the public constructor that takes aSessionobject. -
The
Trackclass 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
|
Public Methods
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
public Track (Session session)
Track
public Track( Session session )
Creates a new Track.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
Public Methods
public Track setId (UUID trackUuid)
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 |
|
||
public Track setMetadata (ByteBuffer metadata)
setMetadata
public Track setMetadata( ByteBuffer metadata )
Sets the track metadata. This is arbitrary data used to describe the track.
| Details | |||
|---|---|---|---|
| Parameters |
|
||
public Track setMimeType (String mimeType)
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 |
|
||