onTap method

void onTap(
  1. BuildContext context,
  2. VideoViewerSubtitle? subtitle,
  3. String subtitleName
)

Implementation

void onTap(
  BuildContext context,
  VideoViewerSubtitle? subtitle,
  String subtitleName,
) async {
  final query = VideoQuery();
  final video = query.video(context);
  video.closeAllSecondarySettingsMenus();
  await video.changeSubtitle(subtitle: subtitle, subtitleName: subtitleName);
}