Скажем, у меня есть полный путь к файлу. Каков наилучший подход к загрузке этого файла в MediaPlayer?
String filePath = "somepath/somefile.mp3";
mediaPlayer.setDataSource(filePath);
ИЛИ
String filePath = "somepath/somefile.mp3";
File file = new File(filePath);
FileInputStream inputStream = new FileInputStream(file);
mediaPlayer.setDataSource(inputStream.getFD());
inputStream.close();
Это имеет значение? Просто использование пути кажется более простым, но есть ли причина для дополнительной работы по использованию FileDescriptor?