GeekyAnts / flick-video-player

MIT License
270 stars 269 forks source link

Please help me with subtitles with player #256

Open androrahul opened 10 months ago

androrahul commented 10 months ago

subtitle_wrapper_package: ^2.2.0

I have used above package to show subtitle:

Widget updateVideo(){ // return flickVideoPlayer!; return FlickVideoPlayer( flickManager: flickManager!, flickVideoWithControls: SubtitleWrapper( videoPlayerController: flickManager!.flickVideoManager!.videoPlayerController!, subtitleController: subtitleController!, subtitleStyle: SubtitleStyle( textColor: Colors.white, hasBorder: true, fontSize: 10.sp, position: const SubtitlePosition(bottom: 45)), videoChild: const FlickVideoWithControls( controls: FlickPortraitControls(), ), ), flickVideoWithControlsFullscreen: SubtitleWrapper( videoPlayerController: flickManager!.flickVideoManager!.videoPlayerController!, subtitleController: subtitleController!, subtitleStyle: SubtitleStyle( textColor: Colors.white, hasBorder: true, fontSize: 14.sp, position: const SubtitlePosition(bottom: 65)), videoChild: const FlickVideoWithControls( controls: FlickLandscapeControls(), videoFit: BoxFit.fitHeight, ), ), ); }

When I am switch to other video, subtitle remains same it not getting updated.