Android.Media.MediaMuxer.SetLocation Method
Set and store the geodata (latitude and longitude) in the output file.

Syntax

[Android.Runtime.Register("setLocation", "(FF)V", "")]
public void SetLocation (float latitude, float longitude)

Parameters

latitude
Latitude in degrees. Its value must be in the range [-90, 90].
longitude
Longitude in degrees. Its value must be in the range [-180, 180].

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionIf the given latitude or longitude is out of range.
Java.Lang.IllegalStateExceptionIf this method is called after MediaMuxer.Start.

Remarks

Set and store the geodata (latitude and longitude) in the output file. This method should be called before MediaMuxer.Start. The geodata is stored in udta box if the output format is NoType:android/media/MediaMuxer$OutputFormat;Href=../../../reference/android/media/MediaMuxer.OutputFormat.html#MUXER_OUTPUT_MPEG_4, and is ignored for other output formats. The geodata is stored according to ISO-6709 standard.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18