Hi all,
I tried to load a video from google drive using Exoplayer.
I got an error as..
This is my sample code..
But when I tried this link in a web browser, the MP4 file is downloaded.
Can anyone let me know the issue.
Thank you
I tried to load a video from google drive using Exoplayer.
I got an error as..
Error: com.google.android.exoplayer2.upstream.HttpDataSource$InvalidResponseCodeException: Response code: 400
This is my sample code..
B4X:
player1.Initialize("player")
player1.Prepare(player1.CreateUriSource("https://www.googleapis.com/drive/v3/files/XXXXXXXXXXXXX/?key=XXXXXXXX&alt=media"))
SimpleExoPlayerView1.Player = player1
player1.Play
But when I tried this link in a web browser, the MP4 file is downloaded.
Can anyone let me know the issue.
Thank you