什么是MediaPlayer的信息/警告(973,0)是什么意思? [英] What does MediaPlayer info/warning (973, 0) mean?

查看:1528
本文介绍了什么是MediaPlayer的信息/警告(973,0)是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的MediaPlayer在我的应用程序打了很多短的音乐,但我得到了这样的警告在我的logcat:

  

的MediaPlayer方式/警告(973,0)。

这是什么警告是什么意思?我周围中搜索(在文档和谷歌),但没有出现。

另外,我发布了MediaPlayer的'正常'。

编辑:

  

01-18 18:43:22.662:W / MediaPlayer的(24940):信息/警告(973,0)

解决方案

好问题,在codeS都有点埋没。你不会发现973的具体是什么,但它在错误codeS的9XX分支,在<一个概述瀑布href="https://android.googlesource.com/platform/frameworks/base/+/b267554/media/java/android/media/MediaPlayer.java">media.h来源这里。

什么是真正有趣的是9XX错误是唯一的文件中没有提及,但他们都标记 MEDIA_INFO_TIMED_TEXT_ERROR

的描述是,播放器:

  

未能妥善处理定时文本轨道。

现在是什么意思也是一个很好的问题,我不知道答案:)

不过,我想无论是它期望或不能分析某种与音乐文件本身的定时文本轨道。是不是任何机会的MP4或3GP?有一个在这方面的一些详细信息<一个href="http://stackoverflow.com/questions/13422673/looking-for-a-working-example-of-addtimedtextsource-for-adding-subtitle-to-a-vid">SO问题。但我相信这是关系到字幕轨道在媒体上,这没有任何意义的纯音频轨道,但也许有一个.srt文件,或在轨道它试图解析附近类似的。

I'm using MediaPlayer to play a lot of short music in my app, but I got this warning in my logcat:

MediaPlayer info/warning (973, 0).

What does this warning mean? I searched around (in the documentation and on Google) but nothing comes up.

Also, I released the MediaPlayer 'properly'.

EDIT:

01-18 18:43:22.662: W/MediaPlayer(24940): info/warning (973, 0)

解决方案

Good question, the codes are somewhat buried. You will not find out what 973 is specifically, but it falls under the 9xx branch of error codes outlined in the media.h source here.

What's really interesting is the 9xx errors are the only ones not referenced in the documentation, but they are labelled MEDIA_INFO_TIMED_TEXT_ERROR.

The description is that the player:

Failed to handle timed text track properly.

Now what that means is also a good question to which I don't have the answer :)

But I guess either it expects or cannot parse some kind of timed text track with the music file itself. Is it an mp4 or 3gp by any chance? There is some more info in this SO question. But I believe it's related to a subtitle track in the media, which wouldn't make any sense for a purely audio track, but maybe there is an .srt file or similar in the vicinity of the track it's trying to parse.

这篇关于什么是MediaPlayer的信息/警告(973,0)是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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