ActivityVideoPreview constructor

ActivityVideoPreview()

Creates a new ActivityVideoPreview instance.

The renderer stays idle until start or startIntroImage is called. It runs one render at a time and can be reused once that render called its onComplete.

Implementation

factory ActivityVideoPreview() {
  final String resultString = GemKitPlatform.instance.callCreateObject(
    jsonEncode(<String, String>{'class': 'ActivityVideoPreview'}),
  );
  final dynamic decodedVal = jsonDecode(resultString);
  return ActivityVideoPreview.init(decodedVal['result']);
}