错误codeS媒体播放器的语法和定义 [英] Error Codes Media Player syntax and definition

查看:182
本文介绍了错误codeS媒体播放器的语法和定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到错误codeS的任何文件关于Android系统。我把在一起似乎是工作的一个较低级别的API设置,但不能在一个较高的应用程序。
尝试播放音频文件,就像我说的这一切在一个低版本的工作时,出现的错误。

I cannot find any documentation on error codes with regard to Android. I am putting together an app that seemed to be working on a lower level API setup but not on a higher one. The error occurs when trying to play an audio file and like I said it all worked in a lower version.

错误code我看到的是在日志中有:

The error code I see is in the log are:

的MediaPlayer方式/警告(1,32)结果,
  MediaPlayer的信息(1,32)结果
  MediaPlayer的信息/警告(1,26)结果
  MediaPlayer的信息(1,26)结果
  MediaPlayer的错误(351,-4)结果
  MediaPlayer的错误(351,-4)结果
  VideoView错误(351,-4)

MediaPlayer info/warning (1, 32)
MediaPlayer Info (1,32)
MediaPlayer info/warning (1,26)
MediaPlayer Info (1,26)
MediaPlayer error(351, -4)
MediaPlayer Error(351,-4)
VideoView Error(351,-4)

所以,可以有人请解释这是如何工作的详细?
我知道我在的MediaPlayer 和可能的误差 VideoView 按照上面的数据,但什么号码重新present?我想这是一个特别的错误,但哪一个呢?

So can someone please explain how this works in detail? I know I have an error in MediaPlayer and possibly VideoView as per the data above but what do the numbers represent? I assume it is a particular error but which one?

我似乎无法找到这样的东西,以及如何,这是去codeD。
我在哪里可以找到如何找出这意味着是最主要的问题文档。

I can not seem to find anything on this and how this is decoded. Where can I find documentation on how to find out what this means that is the main question.

如果我能得到这个特殊的错误code甚至更好的答案,但同样实际的文件源,所以我也许可以查找额外的codeS自己会也大有裨益。

If I can get an answer for this particular error code even better, but again the actual documentation source so I may be able to look up additional codes myself would be of great benefit also.

下面是详细的日志文件由Eclipse作为出口:

Here is the exact logfile as exported by Eclipse:

07-04 12:22:48.298: V/key =(6969): http://xxxxxx/glennharrold/audio/normal/relaxsleepwellfull.mp3
07-04 12:22:48.388: D/MediaPlayer(6969): Couldn't open file on client side, trying server side   
07-04 12:22:48.388: D/SprintMM(6969): Proxy will be bypassed because of WIFI connection.
07-04 12:22:48.508: W/MediaPlayer(6969): info/warning (1, 32)
07-04 12:22:48.508: I/MediaPlayer(6969): Info (1,32)
07-04 12:22:48.508: W/MediaPlayer(6969): info/warning (1, 26)
07-04 12:22:48.508: I/MediaPlayer(6969): Info (1,26)
07-04 12:22:48.508: E/MediaPlayer(6969): error (351, -4)
07-04 12:22:48.508: E/MediaPlayer(6969): Error (351,-4)
07-04 12:22:48.508: D/VideoView(6969): Error: 351,-4

现在什么还不清楚到底是什么意思,我可以看到,它可能有一些做与不被客户端上找到该文件,但此相同code工作在我复制工作$较低的API版本C $ C到这个应用程序,使一个新的。
我在看,我没有在我的Eclipse的logcat中唯一看到的是(6969) D / E / W / I / 在MediaPlayer的文字面前
不知道这是什么多余的东西意味着,当我的code导出到文本文件时,它才会出现。

Now what is unclear is exactly what means what I can see that it may have something to do with the file not being found on the client side but this exact same code works on a lower API version I copied working code to this App to make a new one. The only thing I see in this that I did not see in my logcat in Eclipse is the (6969) and the D/, E/, W/, I/ in front of MediaPlayer text don't know what this extra stuff means and it only appears when I export the code to a text file.

推荐答案

仅供参考,当logcat的显示信息,它是下列之一:

FYI, When logcat displays information it is one of the following:


  • ð - D ebug

  • W -​​ 是W arning

  • I - 载文信息

  • D - D ebug
  • W - W arning
  • I - I nformation

由'/'用标识来识别,通常通过TAG在做的一个标准做法定义的Java code名称如下:

Followed by a '/' with a identifier to identify the Java code name which is usually defined by TAG as in a standard practice of doing :

public class fooClass{
    private static final String TAG = "fooClass";
    // ... SNIP
}

在此之后,是在DalvikVM运行Java code的进程ID,以根据程序规范一些信息的错误code /消息一起。

Following that, is the process id of the Java code that is running in the DalvikVM, along with some informative error code/message depending on the program spec.

例如,从Java类继续在 fooClass 如上强调,假设它有一个功能 fooMethod 像这样的:

For example, continuing on from the Java class fooClass as highlighted above, suppose it has a function fooMethod like this:

private void fooMethod(){    
    Log.d(TAG, "fooMethod() - This is a debug message");    
    //    
    Log.i(TAG, "fooMethod() - This is a info message");    
    //    
    Log.w(TAG, "fooMethod() - This is a warning message"); 
}

现在,将在日志像这样显示:

Now that will show up in the log like this:

07-04 20:58:00 D/fooClass (1234): fooMethod() - This is a debug message 
07-04 20:58:00 I/fooClass (1234): fooMethod() - This is a info message 
07-04 20:58:00 W/fooClass (1234): fooMethod() - This is a warning message

一些应用程序,将选出显示在程序员的自由裁量权的消息,或显示一个神秘的消息。

Some apps, will elect to display the message at the programmer's discretion or display a cryptic message.

值得注意的是Android框架本身,有些服务将显示有任何意义不大,除了开发商(S)的ROM本身背后意义的消息,在排除故障提供帮助。

Notably within the Android framework itself, some services will display a meaningless message that has little significance to anyone except the developer(s) behind the ROM itself, to aid in troubleshooting.

修改由于OP上试图敲定理解这种坚持,在这里不用

Since the OP insisted on trying to nail down understanding this, here goes

在AOSP源$ C ​​$ c代表的MediaPlayer位于github上<一个href=\"https://github.com/android/platform_frameworks_base/blob/master/media/java/android/media/MediaPlayer.java\"相对=nofollow>这里,看看在那里有以'pvmf_return_ codes.h在源行号的引用 1547 ,其中,快速谷歌福导致这种<一个href=\"http://www.netmite.com/android/mydroid/external/opencore/pvmi/pvmf/include/pvmf_return_$c$cs.h\"相对=nofollow>林记。错误code和条件为不兼容或介质错误的结果。

The AOSP source code for the MediaPlayer lies on github here, look in there there's a reference to 'pvmf_return_codes.h' in the source on line number 1547, which, a quick google-fu lead to this linky. The error code and condition is as a result of incompatible or media error.

这篇关于错误codeS媒体播放器的语法和定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆