'flutter_ijkplayer' setFileDataSource Showing a Black screen before video loading.How can i fix it?

560 views Asked by At

I was making a video player in Android with flutter. I am using 'flutter_ijkplayer' for video playback. https://github.com/CaiJingLong/flutter_ijkplayer

My problem is every time i set 'setFileDataSource' and play it shows a black screen before playing the video.I may be a blank screen showing before loading a video.I want to remove this black screen and play video without any blackout.

Here in the screen record, I am calling below code on the play button click.That means same video loading again and again.

controller.ijkMediaController.setFileDataSource(File(controller.videoPath), autoPlay: true);
0

There are 0 answers