6
//inputStream is a MP4 file in scard.
// new FileInputStream(file.getAbsolutePath());
MediaMetadataRetriever retriever = new MediaMetadataRetriever();
FileDescriptor fileDescriptor = inputStream.getFD();// value 61
retriever.setDataSource(fileDescriptor);

result:

java.lang.RuntimeException: setDataSource failed: status = 0xFFFFFFEA

chiwangc
  • 3,566
  • 16
  • 26
  • 32
Bingchean
  • 471
  • 5
  • 6
  • 1
    Please check this answers. It might help http://stackoverflow.com/questions/21009583/how-do-i-access-the-mediametadataretriever-setdatasource-status-codes – Martin Mlostek Sep 17 '15 at 13:41
  • that did not help – Samuel Thompson Feb 03 '17 at 23:27
  • Possible duplicate of [How do I access the MediaMetadataRetriever.setDataSource(...) status codes?](http://stackoverflow.com/questions/21009583/how-do-i-access-the-mediametadataretriever-setdatasource-status-codes) – Samuel Thompson Feb 04 '17 at 00:09

0 Answers0