Android Studio警告:E / MediaPlayer:应该已经设置了字幕控制器

时间:2016-03-18 13:27:14

标签: android android-studio media-player

当我尝试通过点击按钮播放声音时,我收到了错误E/MediaPlayer: Should have subtitle controller already set

    public void clicaSom(View view) {
    MediaPlayer somPickObjeto = MediaPlayer.create(this, R.raw.pegaitem);
    somPickObjeto.start();

}

1 个答案:

答案 0 :(得分:0)

仅在播放音频时,此日志消息是已知的API错误。你应该忽略它,或者如果你想摆脱它,这里有一个例子:Should have subtitle controller already set Mediaplayer error Android