github.com/muxinc/mux-go@v1.1.1/model_asset.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 Asset struct { 7 // Unique identifier for the Asset. Max 255 characters. 8 Id string `json:"id,omitempty"` 9 // Time the Asset was created, defined as a Unix timestamp (seconds since epoch). 10 CreatedAt string `json:"created_at,omitempty"` 11 // The status of the asset. 12 Status string `json:"status,omitempty"` 13 // The duration of the asset in seconds (max duration for a single asset is 12 hours). 14 Duration float64 `json:"duration,omitempty"` 15 // The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. 16 MaxStoredResolution string `json:"max_stored_resolution,omitempty"` 17 // The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. 18 MaxStoredFrameRate float64 `json:"max_stored_frame_rate,omitempty"` 19 // The aspect ratio of the asset in the form of `width:height`, for example `16:9`. 20 AspectRatio string `json:"aspect_ratio,omitempty"` 21 // An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details. 22 PlaybackIds []PlaybackId `json:"playback_ids,omitempty"` 23 // The individual media tracks that make up an asset. 24 Tracks []Track `json:"tracks,omitempty"` 25 Errors AssetErrors `json:"errors,omitempty"` 26 PerTitleEncode bool `json:"per_title_encode,omitempty"` 27 // Unique identifier for the Direct Upload. This is an optional parameter added when the asset is created from a direct upload. 28 UploadId string `json:"upload_id,omitempty"` 29 // Whether the asset is created from a live stream and the live stream is currently `active` and not in `idle` state. 30 IsLive bool `json:"is_live,omitempty"` 31 // Arbitrary metadata set for the asset. Max 255 characters. 32 Passthrough string `json:"passthrough,omitempty"` 33 // Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream. 34 LiveStreamId string `json:"live_stream_id,omitempty"` 35 Master AssetMaster `json:"master,omitempty"` 36 MasterAccess string `json:"master_access,omitempty"` 37 Mp4Support string `json:"mp4_support,omitempty"` 38 // Asset Identifier of the video used as the source for creating the clip. 39 SourceAssetId string `json:"source_asset_id,omitempty"` 40 // Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. 41 NormalizeAudio bool `json:"normalize_audio,omitempty"` 42 StaticRenditions AssetStaticRenditions `json:"static_renditions,omitempty"` 43 // An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream 44 RecordingTimes []AssetRecordingTimes `json:"recording_times,omitempty"` 45 NonStandardInputReasons AssetNonStandardInputReasons `json:"non_standard_input_reasons,omitempty"` 46 // True means this live stream is a test asset. A test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. 47 Test bool `json:"test,omitempty"` 48 }