LaunchBoxContributors
On this page

GameMedia14.1

Class in Unbroken.LaunchBox.Plugins.Components.GameData

C#
public sealed class GameMedia
Describes one downloadable asset. Values are declarative; LaunchBox owns acquisition, composition, destination, and duplicate policy.

Constructors

GameMedia

C#
public GameMedia(string mediaType, string url)
Creates a media candidate.
mediaType
The LaunchBox image or video type this asset should be saved as.
url
The absolute asset URL.

Properties

  • Crc32Gets or initializes the CRC-32 of the asset content, used to skip files LaunchBox already has.
  • IsPreferredGets or initializes whether the source prefers this asset among equivalents of the same media type.
  • MediaTypeGets the LaunchBox media type.
  • NameGets or initializes a source-defined variant name, such as a quality tier.
  • OverlayUrlGets or initializes an overlay asset URL to compose over the primary asset.
  • RegionGets or initializes the region the asset applies to.
  • SourceVideoCodecGets or initializes the source video codec identifier.
  • TargetHeightGets or initializes the positive target height for composition.
  • TargetWidthGets or initializes the positive target width for composition.
  • UrlGets the asset URL.

Crc32

C#
public uint? Crc32 { get; init; }
Gets or initializes the CRC-32 of the asset content, used to skip files LaunchBox already has.

IsPreferred

C#
public bool IsPreferred { get; init; }
Gets or initializes whether the source prefers this asset among equivalents of the same media type.

MediaType

C#
public string MediaType { get; }
Gets the LaunchBox media type.

Name

C#
public string? Name { get; init; }
Gets or initializes a source-defined variant name, such as a quality tier.

OverlayUrl

C#
public string? OverlayUrl { get; init; }
Gets or initializes an overlay asset URL to compose over the primary asset.

Region

C#
public string? Region { get; init; }
Gets or initializes the region the asset applies to.

SourceVideoCodec

C#
public string? SourceVideoCodec { get; init; }
Gets or initializes the source video codec identifier.

TargetHeight

C#
public int? TargetHeight { get; init; }
Gets or initializes the positive target height for composition.

TargetWidth

C#
public int? TargetWidth { get; init; }
Gets or initializes the positive target width for composition.

Url

C#
public string Url { get; }
Gets the asset URL.