android-MediaPlayer信息/警告(1、0)
作者:互联网
MediaPlayer开始播放音乐,但是在日志中我发现了警告消息;
MediaPlayer mp = MediaPlayer.create(this, R.raw.test);
mp.start();
警告和信息日志消息:
01-14 16:21:41.708: W/MediaPlayer(12434): info/warning (1, 0)
01-14 16:21:41.708: I/MediaPlayer(12434): Info (1,0)
我没有找到这些警告的确切描述,有人知道这是什么意思吗?任何想法都会有所帮助.
解决方法:
info/warning (1, 0)
根据此-https://developer.android.com/reference/android/media/MediaPlayer.OnInfoListener.html
(int what, int extra)
what – the type of info or warning. extra – an extra code, specific to
the info. Typically implementation dependent.
就我而言:
public static final int MEDIA_INFO_UNKNOWN Constant Value: 1
(0x00000001) Unspecified media player info.
标签:google-tv,android 来源: https://codeday.me/bug/20191031/1975413.html