简体   繁体   中英

Android MediaPlayer network location

i'm attempting to direct a custom media player app to my web server, but when I start the app it forse quits. the only thing I can think of is this line of code:

private static final String MEDIA_PATH = new String("192.168.0.100/audio/");

This works perfect for an internal address (/sdcard/), but not for a web address. any thoughts?

I'm an extreme novice as well. :P

尝试使用"http://192.168.0.100/audio/" ,即使用http://前缀。

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