github.com/muxinc/mux-go@v1.1.1/model_track.go (about)

     1  // Mux Go - Copyright 2019 Mux Inc.
     2  // NOTE: This file is auto generated. Do not edit this file manually.
     3  
     4  package muxgo
     5  
     6  type Track struct {
     7  	// Unique identifier for the Track
     8  	Id string `json:"id,omitempty"`
     9  	// The type of track
    10  	Type string `json:"type,omitempty"`
    11  	// The duration in seconds of the track media. This parameter is not set for the `text` type track. This field is optional and may not be set. The top level `duration` field of an asset will always be set.
    12  	Duration float64 `json:"duration,omitempty"`
    13  	// The maximum width in pixels available for the track. Only set for the `video` type track.
    14  	MaxWidth int64 `json:"max_width,omitempty"`
    15  	// The maximum height in pixels available for the track. Only set for the `video` type track.
    16  	MaxHeight int64 `json:"max_height,omitempty"`
    17  	// The maximum frame rate available for the track. Only set for the `video` type track. This field may return `-1` if the frame rate of the input cannot be reliably determined.
    18  	MaxFrameRate float64 `json:"max_frame_rate,omitempty"`
    19  	// The maximum number of audio channels the track supports. Only set for the `audio` type track.
    20  	MaxChannels int64 `json:"max_channels,omitempty"`
    21  	// Only set for the `audio` type track.
    22  	MaxChannelLayout string `json:"max_channel_layout,omitempty"`
    23  	// This parameter is set only for the `text` type track.
    24  	TextType string `json:"text_type,omitempty"`
    25  	// The language code value represents [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, `en` for English or `en-US` for the US version of English. This parameter is set for `text` type and `subtitles` text type track.
    26  	LanguageCode string `json:"language_code,omitempty"`
    27  	// The name of the track containing a human-readable description. The hls manifest will associate a subtitle text track with this value. For example, the value is \"English\" for subtitles text track for the `language_code` value of `en-US`. This parameter is set for the `text` type and `subtitles` text type track.
    28  	Name string `json:"name,omitempty"`
    29  	// Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is set for the `text` type and `subtitles` text type track.
    30  	ClosedCaptions bool `json:"closed_captions,omitempty"`
    31  	// Arbitrary metadata set for the track either when creating the asset or track. This parameter is set for `text` type and `subtitles` text type track. Max 255 characters.
    32  	Passthrough string `json:"passthrough,omitempty"`
    33  }