Live captions - Flutter
On Flutter, the video_player package does not have support for captions in live videos. Issue #50595 has been opened to request support.
Other packages, like better_player, do have support for using captions on live video. The better_player documentation contains detailed information on how to do so.
BetterPlayerController controller = BetterPlayerController(
const BetterPlayerConfiguration(
controlsConfiguration: BetterPlayerControlsConfiguration(
enableAudioTracks: true,
enableSubtitles: true,
),
),
betterPlayerDataSource: BetterPlayerDataSource.network(
'https://appt.org/live-video',
liveStream: true,
useAsmsSubtitles: true,
),
);
@override
Widget build(BuildContext context) {
return BetterPlayer(controller: controller);
}