0 purchases
youtube captioned player
This Library was prepared using
video_player
and youtube_explode_dart.
Video Player is with subtitles and without YouTube iframe.
Usage #
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key});
@override
State<MyHomePage> createState() => _MyHomePageState();
}
late Video video;
class _MyHomePageState extends State<MyHomePage> {
@override
void initState() {
video = Video(videoId: "mKdjycj-7eE", captionLanguageCode: "en", setLoop: false);
setState(() {});
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: YoutubeCaptionedPlayer(
video: video,
isUi: true,
caption: true,
sound: true,
allowScrubbing: true,
),
),
);
}
}
copied to clipboard
Additional information #
video_player
youtube_explode_dart
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.