Class PlayerError


  • public class PlayerError
    extends java.lang.Object
    Corresponds to kMediaError
    • Constructor Summary

      Constructors 
      Constructor Description
      PlayerError​(java.lang.String errorType, java.lang.Integer code, java.util.List<PlayerErrorSourceLocation> stack, java.util.List<PlayerError> cause, java.util.Map<java.lang.String,​java.lang.Object> data)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<PlayerError> getCause()
      Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError
      java.lang.Integer getCode()
      Code is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.h
      java.util.Map<java.lang.String,​java.lang.Object> getData()
      Extra data attached to an error, such as an HRESULT, Video Codec, etc.
      java.lang.String getErrorType()  
      java.util.List<PlayerErrorSourceLocation> getStack()
      A trace of where this error was caused / where it passed through.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayerError

        public PlayerError​(java.lang.String errorType,
                           java.lang.Integer code,
                           java.util.List<PlayerErrorSourceLocation> stack,
                           java.util.List<PlayerError> cause,
                           java.util.Map<java.lang.String,​java.lang.Object> data)
    • Method Detail

      • getErrorType

        public java.lang.String getErrorType()
      • getCode

        public java.lang.Integer getCode()
        Code is the numeric enum entry for a specific set of error codes, such as PipelineStatusCodes in media/base/pipeline_status.h
      • getStack

        public java.util.List<PlayerErrorSourceLocation> getStack()
        A trace of where this error was caused / where it passed through.
      • getCause

        public java.util.List<PlayerError> getCause()
        Errors potentially have a root cause error, ie, a DecoderError might be caused by an WindowsError
      • getData

        public java.util.Map<java.lang.String,​java.lang.Object> getData()
        Extra data attached to an error, such as an HRESULT, Video Codec, etc.