问题
Say we have an iPhone that has mp3s synced to it that play normally with the built in ios music player. Can a webpage be coded in a way that if I surf to it using mobile safari, I can see my music library and play the files?
If so what APIs etc should I use?
回答1:
On iOS, this is not possible. It is possible for Chrome Applications to get access to the local media library; however, iOS (even Chrome on Android right now, actually) do not support this.
回答2:
As browser limitations and security concerns you cannot do this.
回答3:
I'm going to say no. I'm 99% certain there's no way to do that. The only files you can access are the photos, and those are one-by-one using .
来源:https://stackoverflow.com/questions/19803399/is-it-possible-to-play-audio-from-a-local-ios-library-via-html5