setLocation method

Future<void> setLocation(
  1. double latitude,
  2. double longitude
)

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

This method should be called before prepare. The geodata is stored in udta box if the output format is OutputFormat.threeGpp or OutputFormat.mpeg4, and is ignored for other output formats. The geodata is stored according to ISO-6709 standard.

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].

Throws a PlatformException if latitude or longitude are out of range.

Implementation

Future<void> setLocation(double latitude, double longitude) {
  return _channel.$setLocation(this, latitude, longitude);
}