getVideo method

Future<AmityVideo> getVideo(
  1. AmityVideoQuality quality
)

Implementation

Future<AmityVideo> getVideo(AmityVideoQuality quality) async {
  String fileId = rawData!.containsKey(quality.value)
      ? rawData![quality.value]
      : rawData![AmityVideoQuality.ORIGINAL.value];
  return AmityVideo(await serviceLocator<GetFileUserCase>().get(fileId));
}