A builder for MediaTrack
objects.
|
Builder(long trackId, int trackType)
Constructs a new Builder with the given track ID and type.
|
| MediaTrack |
build()
Builds and returns the
MediaTrack
object.
|
| MediaTrack.Builder | |
| MediaTrack.Builder | |
| MediaTrack.Builder | |
| MediaTrack.Builder | |
| MediaTrack.Builder | |
| MediaTrack.Builder | |
| MediaTrack.Builder | |
| MediaTrack.Builder |
setSubtype(int subtype)
Sets the track subtype with one of the
SUBTYPE_ constants.
|
Constructs a new Builder with the given track ID and type.
| trackId | the unique ID of the media track |
|---|---|
| trackType | the type of the track; one of the TYPE_ constants |
| IllegalArgumentException | if the track type is negative |
|---|
Builds and returns the MediaTrack
object.
Sets the track content ID.
Sets the track content type.
Sets the track's custom data object.
Sets the RFC-5464 formatted
track language.
Sets the track language from a Locale in RFC-5464 format.
Sets the track name.
Sets the roles for this track. See ROLE_ constants.
Sets the track subtype with one of the SUBTYPE_ constants.
| IllegalArgumentException | If the subtype is invalid. |
|---|