In my app, I want to play videos from a Google Drive link. I have tried using VideoPlayerController
_controller = VideoPlayerController.network('https://drive.google.com/open?id=xxxxxxxxx');
but can't play it. Its shown black and when I played it, nothing seem anything.
Maybe someone can help me. Suggestion really appreciated. Thanks.
After search around the web, finally found the answer. So, if we want to play video from Google Drive, we must get direct download link from our video. In example, we got this link from our video in google drive 'https://drive.google.com/uc?export=download&id=xxxxxxxx'. And we can put direct download link into :
_controller = VideoPlayerController.network('https://drive.google.com/uc?export=download&id=xxxxxxxx');
Then the video can be play.