Share via


MediaMuxer.SetLocation(Single, Single) Method

Definition

Set and store the geodata (latitude and longitude) in the output file.

[Android.Runtime.Register("setLocation", "(FF)V", "")]
public void SetLocation (float latitude, float longitude);
[<Android.Runtime.Register("setLocation", "(FF)V", "")>]
member this.SetLocation : single * single -> unit

Parameters

latitude
Single

Latitude in degrees. Its value must be in the range [-90, 90].

longitude
Single

Longitude in degrees. Its value must be in the range [-180, 180].

Attributes

Exceptions

If the given latitude or longitude is out of range.

If this method is called after Start().

Remarks

Set and store the geodata (latitude and longitude) in the output file. This method should be called before #start. The geodata is stored in udta box if the output format is OutputFormat#MUXER_OUTPUT_MPEG_4, and is ignored for other output formats. The geodata is stored according to ISO-6709 standard.

Java documentation for android.media.MediaMuxer.setLocation(float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to