when getting Google Drive (Android Java, Drive Api V3) link like
String link = fileInformationList.getFiles().get(i).getWebContentLink())
Link looks like https://drive.google.com/uc?id=<DriveFileID>&export=download&access_token=<AccessToken>&alt=media
&alt=media was added programmatically.
and using
FileInputStream inputStream = new FileInputStream(link); FFmpegMediaMetadataRetriever mmr = new FFmpegMediaMetadataRetriever(); mmr.setDataSource(inputStream.getFD());
getting FileNotFoundException.
Opening the link in Edge, download or streaming is startet.
Does FFmpegMediaMetadataRetriever works with Google Drive?
What's wrong in my code?
This library does not directly support Google drive links. In order to use a Google drive link you need to use the Drive API provided by Google to obtain the public URL of the content you wish to parse.
Hi,
when getting Google Drive (Android Java, Drive Api V3) link like
String link = fileInformationList.getFiles().get(i).getWebContentLink())
Link looks like
https://drive.google.com/uc?id=<DriveFileID>&export=download&access_token=<AccessToken>&alt=media
&alt=media
was added programmatically.and using
FileInputStream inputStream = new FileInputStream(link); FFmpegMediaMetadataRetriever mmr = new FFmpegMediaMetadataRetriever(); mmr.setDataSource(inputStream.getFD());
getting
FileNotFoundException
.Opening the link in Edge, download or streaming is startet.
Does FFmpegMediaMetadataRetriever works with Google Drive? What's wrong in my code?
Thanks, Alejandro