TrackInserterPreset – Media API – MediaKind
TrackInserterPreset
object
@odata.typestringRequired
The discriminator for derived types.
baseFilenamestring
Optional <=64 characters pattern: ^[A-Za-z0-9_-]+$
Used to create the output filename.
- For text tracks:
{BaseFilename}.cmft, the default being the input .vtt filename minus the extension, e.g.subtitles.vtt->subtitles.cmft. - For audio tracks:
{BaseFilename}.mp4, the default being the input .mp4 filename, ignored if the audio file is already present in the output asset.
tracks
list of objects Required 1-1 items
The set of tracks to be inserted. Currently limited to one.
Show 2 variants Hide 2 variants
Discriminated by @odata.type. Select one variant:
MediaKind.TextTrack
object TextTrack
@odata.typestring Required
The discriminator for derived types.
displayNamestring
Optional
The display name of the track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
hlsSettings
object HlsSettings Optional
The HLS specific setting for the track.
Show 3 properties Hide 3 properties
characteristics string Optional
The characteristics for the HLS setting.
default boolean Optional Defaults to false
Default track?
forced boolean Optional Defaults to false
Forced track?
languageCodestring Optional
The RFC5646 language code for the track.
playerVisibility enum Optional Defaults to Visible
When PlayerVisibility is set to 'Visible', the track will be present in the DASH manifest or HLS playlist when requested by a client. When the PlayerVisibility is set to 'Hidden', the track will not be available to the client. The default value is 'Visible'.
Allowed values: Visible, Hidden
trackName string Required
The name of the track in the manifest.
MediaKind.AudioTrack
object AudioTrack
@odata.typestring Required
The discriminator for derived types.
dashSettings
object DashSettings Optional
The DASH specific setting for the audio track.
Show 1 property Hide 1 property
role string Optional
The role for the DASH setting.
displayNamestring
Optional
The display name of the audio track on a video player. In HLS, this maps to the NAME attribute of EXT-X-MEDIA.
hlsSettings
object HlsSettings Optional
The HLS specific setting for the audio track.
Show 3 properties Hide 3 properties
characteristics string Optional
The characteristics for the HLS setting.
default boolean Optional Defaults to false
Default track?
forced boolean Optional Defaults to false
Forced track?
languageCodestring Optional
The RFC5646 language code for the audio track.
trackName string Required
The name of the audio track in the manifest.