getFileDescriptor returns null while reading mp3 files from the expansion files

后端 未结 1 2234
萌比男神i
萌比男神i 2021-02-20 17:48

I have downloaded and stored the expansion files successfully.But it crashes when i try to play the mp3 inside..

            ZipResourceFile expansionFile = APKE         


        
相关标签:
1条回答
  • 2021-02-20 18:34

    Finaly it solved.. The file name should be with the full path..

    AssetFileDescriptor asd = expansionFile.getAssetFileDescriptor("main.1.com.mypackage.app/mysong.mp3");
    
    0 讨论(0)
提交回复
热议问题