[英]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. 我正在尝试将自定义媒体播放器应用程序定向到我的Web服务器,但是当我启动该应用程序时,它就退出了。 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. 这非常适合内部地址(/ sdcard /),但不适用于网址。 any thoughts? 有什么想法吗?
I'm an extreme novice as well. 我也是一个极端的新手。 :P :P
尝试使用"http://192.168.0.100/audio/"
,即使用http://前缀。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.