abdelaziz-mahdy / flutter_meedu_videoplayer

Cross-Platform Video Player for flutter
https://abdelaziz-mahdy.github.io/flutter_meedu_videoplayer/
MIT License
142 stars 71 forks source link

multi subtitle support #111

Closed micodev closed 1 year ago

micodev commented 1 year ago

is there any implementation that I can use to get multi subtitle and choose one of them and it will change the subtitle without re initiate the DataSource ?

abdelaziz-mahdy commented 1 year ago

is there any implementation that I can use to get multi subtitle and choose one of them and it will change the subtitle without re initiate the DataSource ?

Right now, you can't

I will try to implement it in the next release and let you know (no promises)

micodev commented 1 year ago

await meeduPlayerController.videoPlayerController.setClosedCaptionFile(loadCaptions(index));

I use this method and it works but if only you can pass it through meeduPlayerController @zezo357

abdelaziz-mahdy commented 1 year ago

Yes will do so in next release, thank you

abdelaziz-mahdy commented 1 year ago

fixed in 4.2.11-dev-8, check and let me know

also you can check the examples https://github.com/zezo357/flutter_meedu_videoplayer/blob/master/package/example/lib/pages/multi_subtitles.dart