简体   繁体   中英

Play mp3 in JME

我想知道如何在程序中而不是从服务器而是从本地记忆棒文件中播放单个mp3文件,我想要一些明确的细节,如何在pc中为模拟器提供路径,以及如何在mobile中提供路径。

An example of how to play music files is found here using MMAPI (Mobile Media API). The trick is to get the input stream for the file. For that you will need to use the File Connection API, as described here . The paths will vary, though, you'll have to figure out what's right for you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM