Open androrahul opened 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.
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.