我的应用程序播放音频流 在这里,code:
My application plays audio stream Here the code:
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
mediaPlayer.setDataSource(url);
mediaPlayer.prepare();
mediaPlayer.start();
URL是本地文件(127.0.0.1) 我用我自己的HttpServer它运行在同一部手机。 呼叫后
url is local file (127.0.0.1) I use my own HttpServer which runs on the same phone. After call to
mediaPlayer.prepare();
我得到的错误: 误差(1,-1004),它是ERROR_IO 任何想法,这是什么错误?
I get the error: error (1, -1004) which is ERROR_IO Any idea what is this error?
谢谢你,哥。
问题是PHP5,它发送一个500 HTTP头,如果您的服务器不发送正确的标题
the problem is php5 which sends a 500 http header if your server does not send the correct headers
上一篇:检索事件详细信息时扩展 singleValueExtendedProperty 不起作用详细信息、不起作用、事件、singleValueExtendedProperty
下一篇:能否使用 MS Graph Bearer 令牌访问 Office REST API?令牌、Bearer、Graph、MS