@Override public void onPlayerError(ExoPlaybackException error) { Log.e(TAG, "onPlayerError" + error.toString()); JZMediaManager.instance().mainThreadHandler.post(() -> { if (JzvdMgr.getCurrentJzvd() != null) { JzvdMgr.getCurrentJzvd().onError(1000, 1000); } }); }
@Override public void onPlayerError(EventTime eventTime, ExoPlaybackException error) { HashMap<String, String> callingMethodParameters = new HashMap<>(); callingMethodParameters.put(Parameters.EVENT_TIME, eventTime.toString()); callingMethodParameters.put(Parameters.ERROR, error.toString()); infoListeners.onNewInfo(Methods.ON_PLAYER_ERROR, callingMethodParameters); }