Table of Contents

Class AerialViewVideoResponse

Namespace
GoogleMapsApi.Entities.AerialView.Response
Assembly
GoogleMapsApi.dll

An Aerial View video (Video). Returned by both RenderVideo and LookupVideo.

public sealed class AerialViewVideoResponse : IResponseFor<RenderVideoRequest>, IResponseFor<LookupVideoRequest>
Inheritance
AerialViewVideoResponse
Implements
Inherited Members

Remarks

While State is Processing, Uris is absent and Metadata typically carries only the video id. Once Active, Uris is populated with signed, short-lived links for each available MediaFormat.

Properties

Metadata

Metadata about the video (id, capture date, duration).

[JsonPropertyName("metadata")]
public VideoMetadata? Metadata { get; set; }

Property Value

VideoMetadata

State

Current rendering state of the video.

[JsonPropertyName("state")]
public VideoState State { get; set; }

Property Value

VideoState

Uris

Signed, short-lived URIs keyed by media format (e.g. "MP4_HIGH", "HLS"). Only present when State is Active. The keys are MediaFormat wire values; this is left string-keyed so unknown future formats deserialize without throwing. Prefer TryGetUris(MediaFormat, out AerialViewUris?) for typed access.

[JsonPropertyName("uris")]
public Dictionary<string, AerialViewUris>? Uris { get; set; }

Property Value

Dictionary<string, AerialViewUris>

Methods

TryGetUris(MediaFormat, out AerialViewUris?)

Looks up the AerialViewUris for a known MediaFormat.

public bool TryGetUris(MediaFormat format, out AerialViewUris? uris)

Parameters

format MediaFormat

The media format to retrieve.

uris AerialViewUris

The matching URIs, or null if the format is not present.

Returns

bool

true if the format was present; otherwise false.