public Track createNewTrack(File file) throws IOException {
Path path = file.toPath();
String trackName = (String) Files.getAttribute(path, "Title"); //get name of track from file
String artist = (String) Files.getAttribute(path, "Authors"); //get artist from file
String filePath = file.getPath(); //get file path from file
Track track = new Track(trackName, artist, filePath);
return track;
}
何らかの理由で、属性を検出できません...誰かがなぜそうかもしれないのを助けることができますか?mp3ファイルの「タイトル」と「作成者」の属性を取得する方法