android.media.MediaCodec.CodecException Java Examples

The following examples show how to use android.media.MediaCodec.CodecException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MediaCodecRenderer.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@TargetApi(21)
private static String getDiagnosticInfoV21(Throwable cause) {
  if (cause instanceof CodecException) {
    return ((CodecException) cause).getDiagnosticInfo();
  }
  return null;
}
 
Example #2
Source File: MediaCodecRenderer.java    From MediaSDK with Apache License 2.0 5 votes vote down vote up
@TargetApi(21)
private static String getDiagnosticInfoV21(Throwable cause) {
  if (cause instanceof CodecException) {
    return ((CodecException) cause).getDiagnosticInfo();
  }
  return null;
}
 
Example #3
Source File: MediaCodecRenderer.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@TargetApi(21)
private static String getDiagnosticInfoV21(Throwable cause) {
  if (cause instanceof CodecException) {
    return ((CodecException) cause).getDiagnosticInfo();
  }
  return null;
}
 
Example #4
Source File: MediaCodecRenderer.java    From TelePlus-Android with GNU General Public License v2.0 5 votes vote down vote up
@TargetApi(21)
private static String getDiagnosticInfoV21(Throwable cause) {
  if (cause instanceof CodecException) {
    return ((CodecException) cause).getDiagnosticInfo();
  }
  return null;
}
 
Example #5
Source File: MediaCodecRenderer.java    From K-Sonic with MIT License 5 votes vote down vote up
@TargetApi(21)
private static String getDiagnosticInfoV21(Throwable cause) {
  if (cause instanceof CodecException) {
    return ((CodecException) cause).getDiagnosticInfo();
  }
  return null;
}
 
Example #6
Source File: UdpReceiverDecoderThread.java    From myMediaCodecPlayer-for-FPV with MIT License 5 votes vote down vote up
private void handleDecoderException(Exception e,String tag){
    if(userDebug) {
        makeToast("Exception on "+tag+": ->exception file");
        if (e instanceof CodecException) {
            CodecException codecExc = (CodecException) e;
            makeDebugFile("CodecException on " + tag + " :" + codecExc.getDiagnosticInfo());
        } else {
            makeDebugFile("Exception on "+tag+":"+Log.getStackTraceString(e));
        }
        try {Thread.sleep(100,0);} catch (InterruptedException e2) {e2.printStackTrace();}
    }
    e.printStackTrace();
}
 
Example #7
Source File: MediaCodecRenderer.java    From Telegram-FOSS with GNU General Public License v2.0 5 votes vote down vote up
@TargetApi(21)
private static String getDiagnosticInfoV21(Throwable cause) {
  if (cause instanceof CodecException) {
    return ((CodecException) cause).getDiagnosticInfo();
  }
  return null;
}
 
Example #8
Source File: MediaCodecRenderer.java    From Telegram with GNU General Public License v2.0 5 votes vote down vote up
@TargetApi(21)
private static String getDiagnosticInfoV21(Throwable cause) {
  if (cause instanceof CodecException) {
    return ((CodecException) cause).getDiagnosticInfo();
  }
  return null;
}
 
Example #9
Source File: MediaCodecRenderer.java    From MediaSDK with Apache License 2.0 4 votes vote down vote up
@TargetApi(21)
private static boolean isMediaCodecExceptionV21(IllegalStateException error) {
  return error instanceof CodecException;
}