You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have use a Apollo MediaPlayer to instead of MediaPlayer.But when I setDataSource, it throws a exception says that this method has to be called in a Thread with looper. But when I add looper, the MediaPlayerWrapper throws an exception:
protected MediaPlayerWrapper(MediaPlayer mediaPlayer) {
TAG = "" + this;
if (SHOW_LOGS) Logger.v(TAG, "constructor of MediaPlayerWrapper");
if (SHOW_LOGS) Logger.v(TAG, "constructor of MediaPlayerWrapper, main Looper " + Looper.getMainLooper());
if (SHOW_LOGS) Logger.v(TAG, "constructor of MediaPlayerWrapper, my Looper " + Looper.myLooper());
if(Looper.myLooper() != null){
throw new RuntimeException("myLooper not null, a bug in some MediaPlayer implementation cause that listeners are not called at all. Please use a thread without Looper");
}
mMediaPlayer = mediaPlayer;
......
}
How can I resolve this conflict?
The text was updated successfully, but these errors were encountered:
I have use a Apollo MediaPlayer to instead of MediaPlayer.But when I setDataSource, it throws a exception says that this method has to be called in a Thread with looper. But when I add looper, the MediaPlayerWrapper throws an exception:
How can I resolve this conflict?
The text was updated successfully, but these errors were encountered: