youtube_captioned_player 0.0.5
youtube_captioned_player: ^0.0.5 copied to clipboard
Improved without iframe YouTube player with subtitles using video_player and youtube_explode_dart.
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