Android MediaPlayer Error/info Code

Source: Internet
Author: User
Tags new set

1. Common Errors Error (-38, 0)

I think 38 means that you cannot perform your operation in the current MediaPlayer state.

Please refer to the specific how to do this: Android MediaPlayer

In addition, I found in other materials that some people think that 38 is defined in the: Pvmf_return_codes.h file:

-38:DRM clock isn't available or cannot be read

0:return code for pending completion

     /* * DRM clock is no available or cannot be read   *   /const Pvmfstatus Pvmferrdrmclockerror = ( -38);  /   * * Return code for pending completion */   const Pvmfstatus pvmfpending = 0;


Error (1,-2147483648)

1: actually represents Media_error_unknown
-2147483648: (0x80000000) did not do anything to explain, in fact it is also representative of unknown error

Most of these errors occur when playing MP4, mainly because the current machine does not support this video encoding (h263,h264,mpeg-3, not video container format)

2. MediaError.h

enum {media_error_base = -1000, error_already_connected = media_error_base, error_not_connected = MED    ia_error_base-1, Error_unknown_host = media_error_base-2, Error_cannot_connect = media_error_base-3,         Error_io = media_error_base-4, Error_connection_lost = media_error_base-5, error_malformed = media_error_base-7, Error_out_of_range = media_error_base-8, Error_buffer_too_small = MEDIA_ERROR_ BASE-9, error_unsupported = media_error_base-10, Error_end_of_stream = media_error_base-11,//No    T technically an error. info_format_changed = media_error_base-12, info_discontinuity = media_error_base-13, INFO_OUTPUT_BUFFERS_ CHANGED = media_error_base-14,//The following constant values should is in sync with//Drm/drm_framework_common     . h drm_error_base = -2000, Error_drm_unknown = Drm_error_base, error_drm_no_license               = drm_error_base-1, error_drm_license_expired = drm_error_base-2, error_drm_session _not_opened = drm_error_base-3, error_drm_decrypt_unit_not_initialized = drm_error_base-4, ERROR_DRM _decrypt = drm_error_base-5, Error_drm_cannot_handle = drm_error_base-6, E  rror_drm_tamper_detected = drm_error_base-7, error_drm_not_provisioned = drm_error_base- 8, error_drm_device_revoked = drm_error_base-9, error_drm_resource_busy = Drm_erro                    r_base-10, Error_drm_vendor_max = drm_error_base-500, error_drm_vendor_min = drm_error_base-999,//Heartbeat ERROR Codes heartbeat_error_base = -3000, error_heartbeat_terminate_request ED = Heartbeat_error_base,};


3. MediaPlayer

public static final int media_error_io Added in API level File or network related operation errors. Constant Value: -1004 (0XFFFFFC14) public static final int media_error_malformed Added in API level bitstream are not co Nforming to the related, coding standard, or file spec. Constant Value: -1007 (0XFFFFFC11) public static final int Media_err Or_not_valid_for_progressive_playback Added in API level 3 The video was streamed and its container are not VALID for Progre Ssive playback i.e the Video ' s index (e.g Moov atom) is not at the start of the file. See Alsomediaplayer.onerrorlistener Constant value:200 (0X000000C8) public static final int media_error_server_died Adde D in API Level 1 Media server died. In this case, the application must release the MediaPlayer object and instantiate a new one. See Alsomediaplayer.onerrorlistener Constant value:100 (0x00000064) public static final int media_error_timed_out Added i n API level Some operation takes too long to complete, usually more than 3-5 seconds. Constant Value: -110 (0xffffff92) public static final int Media_error_unknown Added in API level 1 Unspecified MEDIA Playe R error. See Alsomediaplayer.onerrorlistener Constant value:1 (0x00000001) public static final int media_error_unsupported Added i n API level bitstream are conforming to the related coding standard or file spec, and the media framework does not suppo RT the feature. Constant Value: -1010 (0xfffffc0e) public static final int media_info_bad_interleaving Added in API level 3 bad Interleavi Ng means that a media have been improperly interleaved or not interleaved @ All, e.g have all the video samples first Then All the audio ones. Video is playing if a lot of disk seeks are happening. See Alsomediaplayer.oninfolistener Constant value:800 (0x00000320) public static final int media_info_buffering_end Adde D in API Level 9 MediaPlayer are resuming playback after filling buffers. See Alsomediaplayer.oninfolistener Constant value:702 (0x000002be) public static Final int Media_info_buffering_start Added in API level 9 MediaPlayer are temporarily pausing playback internally in order To buffer more data. See Alsomediaplayer.oninfolistener Constant value:701 (0x000002bd) public static final int media_info_metadata_update Ad Ded in API Level 5 A new set of metadata is available.  See Alsomediaplayer.oninfolistener Constant value:802 (0x00000322) public static final int media_info_not_seekable Added In API Level 3 The media cannot is seeked (e.g live stream) see Alsomediaplayer.oninfolistener Constant value:801 (0x0000 0321) public static final int Media_info_unknown Added in API level 3 Unspecified MEDIA player INFO. See Alsomediaplayer.oninfolistener Constant value:1 (0x00000001) public static final int Media_info_video_rendering_ START Added in API level, the player just pushed the very first video frame for rendering. See Alsomediaplayer.oninfolistener Constant Value:3 (0x00000003) public static final int media_info_video_track_lagging Added inAPI Level 3 The video was too complex for the decoder:it can ' t decode frames fast enough. Possibly only the audio plays fine on this stage.  See Alsomediaplayer.oninfolistener Constant value:700 (0X000002BC)


Android MediaPlayer Error/info Code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.