如何循环播放一系列音乐文件 [英] How do I loop a series of music files

查看:170
本文介绍了如何循环播放一系列音乐文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这太疯狂了!我在互联网上无处不在,我无法找到大多数媒体播放器的简单功能的答案。我正在创建一个应用程序,它将循环播放音乐文件(循环所有按钮),但似乎网络上没有任何代码,尽管我知道的每个媒体播放器都有此功能(以及随机选择) 。有人可以提出代码来循环文件中的所有歌曲。我的文件在我的应用程序的原始文件夹中,所以它必须来自那里,而不是SD卡!任何帮助将不胜感激!!

This is really insane!!! I've looked everywhere on the internet and I can not find an answer to a very simple feature of most media players. I am creating an app that will loop music files in order (a loop all button), but there doesn't seem to be any code out there on the net eventhough every media player i know has this feature (along with random select too). Can someone pose code for looping all the songs in a file. My files are in the raw folder of my app so it must come from there, not the sd card! Any help would be appreciated!!

推荐答案

如果您想获得放置在内部存储上的文件列表,请查看此处:http://stackoverflow.com/questions/11871925/how-从特定内部存储文件夹中获取文件列表 [ ^ ]。

如果你想列出所有文件,这可以帮到你: http:// android-coding .blogspot.com / 2011/10 / list-filesdirectory-in-android.html [ ^ ]



如需了解更多信息,请参阅:

存储选项 [ ^ ]

保存文件 [ ^ ]
If you want to get list of files placed on internal storage, have a look here: http://stackoverflow.com/questions/11871925/how-to-get-list-of-files-from-a-specific-folder-in-internal-storage[^].
If you want to list all files, this would help you: http://android-coding.blogspot.com/2011/10/list-filesdirectory-in-android.html[^]

For further information, please see:
Storage options[^]
Saving files[^]


这篇关于如何循环播放一系列音乐文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆