开发者

Play mp3 in JME

开发者 https://www.devze.com 2023-01-31 15:31 出处:网络
I want to know how to play a single mp3 file in my program not from the server, but from the local memory stick files, I want some clear details how to give the path for emul开发者_JAVA技巧ator in pc

I want to know how to play a single mp3 file in my program not from the server, but from the local memory stick files, I want some clear details how to give the path for emul开发者_JAVA技巧ator in pc and how to give path in 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号