playVideoURL method

Future<void> playVideoURL (
  1. String url,
  2. {int radius: 50,
  3. int verticalFov: 180,
  4. int horizontalFov: 360,
  5. int rows: 50,
  6. int columns: 50,
  7. bool showPlaceholder: false}
)

Set spherical mesh for the texture. The mesh does not have be closed.

@param radius Size of the sphere in meters. Must be > 0. @param verticalFov Total latitudinal degrees that are covered by the sphere. Must be in (0, 180]. @param horizontalFov Total longitudinal degrees that are covered by the sphere.Must be in (0, 360]. @param rows Number of rows that make up the sphere. Must be >= 1. @param columns Number of columns that make up the sphere. Must be >= 1.

Implementation

static Future<void> playVideoURL(
  String url, {
  int radius = 50,
  int verticalFov = 180,
  int horizontalFov = 360,
  int rows = 50,
  int columns = 50,
  bool showPlaceholder = false,
}) async {
  return _channel.invokeMapMethod("playvideo", <String, dynamic>{
    'video_url': url,
    'radius': radius,
    'verticalFov': verticalFov,
    'horizontalFov': horizontalFov,
    'rows': rows,
    'columns': columns,
    'showPlaceholder': showPlaceholder,
  });
}