showVideoOnly method

Future<void> showVideoOnly({
  1. required String videoUrl,
  2. required String minVideoUrl,
  3. required String userName,
  4. required String companyTitle,
  5. String? avatarUrl,
  6. Function? onExpand,
  7. Function? onVideoEnd,
  8. Function? onSkip,
})

Implementation

Future<void> showVideoOnly({
  required String videoUrl,
  required String minVideoUrl,
  required String userName,
  required String companyTitle,
  String? avatarUrl,
  Function? onExpand,
  Function? onVideoEnd,
  Function? onSkip,
}) async {
  return showVideoAsset(
    videoAsset: videoUrl,
    userName: userName,
    companyTitle: companyTitle,
    avatarUrl: avatarUrl,
    animateOnVideoEnd: true,
    onVideoEndAction: () {
      _overlayHelper.popHelper();
      if (onVideoEnd != null) {
        onVideoEnd();
      }
    },
    onSkip: onSkip,
    onClose: onVideoEnd,
    onExpand: onExpand,
  );
}