0
我知道有一些類似的問題,但沒有人回答我的問題。當我點擊一個按鈕時,媒體播放器被調用,並且這出現在日誌中。MediaPlayer中的錯誤:E/MediaPlayer:錯誤(1,-19) - Android
06-02 00:20:38.980 26035-26035/myapp.com.facadezpontos E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
06-02 00:20:39.019 26035-26035/myapp.com.facadezpontos E/MediaPlayer: Should have subtitle controller already set
06-02 00:20:39.026 26035-26035/myapp.com.facadezpontos E/MediaPlayer: Should have subtitle controller already set
一段時間後,這條消息以上是由該波紋管取代了,聲音通過媒體播放器提供不玩了。
06-02 00:23:21.032 28749-28749/myapp.com.facadezpontos E/MediaPlayer-JNI: QCMediaPlayer mediaplayer NOT present
06-02 00:23:21.076 28749-28749/myapp.com.facadezpontos E/MediaPlayer: Should have subtitle controller already set
06-02 00:23:21.090 28749-28749/myapp.com.facadezpontos E/MediaPlayer: Should have subtitle controller already set
06-02 00:23:21.396 28749-28772/myapp.com.facadezpontos E/MediaPlayer: error (1, -19)
06-02 00:23:21.396 28749-28749/myapp.com.facadezpontos E/MediaPlayer: Error (1,-19)
這是在MediaPlayer
public void buttonClick(Context context, MediaPlayer mp){
mp = MediaPlayer.create(context, R.raw.bubble_nice);
mp.start();
}
的可能的複製(https://stackoverflow.com/questions/24501086/why-mediaplayer -throws-not-present-error-when-creating-instance-of-it) – Isaac
這個問題沒有解決問題 – Felipe
@Felipe你解決了這個問題嗎? –