本文介绍了关于MediaPlayer Info/Warning 950的任何线索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在通过播放一些mp4视频. VideoView ,显然是 MediaPlayer .

I've been playing some mp4 videos through the VideoView, which apparently uses/is a wrapper for the MediaPlayer.

像往常一样,我在logcat中看到典型的:

As usual I see the typical ones in the logcat:

I/MediaPlayer﹕ Info (701,0)
I/MediaPlayer﹕ Info (702,0)

但随后我也看到了那个:

But then I see that one as well:

I/MediaPlayer﹕ Info (950,0)

在此答案中所述,以及其他问题,大多数9XX MediaPlayer信息/警告/错误代码未在SDK文档中正式记录,但可能与定时文本轨道"(字幕),因为对9XX的唯一引用是MEDIA_INFO_UNSUPPORTED_SUBTITLE (901)MEDIA_INFO_SUBTITLE_TIMED_OUT (902).

As stated in this answer and others questions, most 9XX MediaPlayer Info/Warning/Error codes aren't officially documented in the SDK docs, but probably is related with "timed text tracks" (subtitles), since the only references to 9XX are MEDIA_INFO_UNSUPPORTED_SUBTITLE (901) and MEDIA_INFO_SUBTITLE_TIMED_OUT (902).

问题是,播放视频时我不使用任何字幕或外部/额外资源,所以这很奇怪.

The thing is, I don't use any subtitles or external/extra resources while playing the video, so that would be strange.

有人知道有关9509XX代码的任何其他信息吗?

Does anyone know any additional information about the 950 or the 9XX codes?

(我试图跟踪可能与之相关的错误,因为这是我在logcat中输入的最后一条信息-仅在探索所有可能性.)

(I'm trying to track a bug that could be related to that since it's the last info I have going in the logcat - just exploring all the possibilities.)

推荐答案

Am面临相同的警告,但场景不同.在以下代码中,在onCompletion之后重置mediaplayer会生成此警告.之后,我在跟踪时遇到问题,并尝试重新启动它.

Am facing the same warning but with a different scenario. In the following code, resetting the mediaplayer after onCompletion generates this warning. After it I have problems with the track and trying to restart it.

soundMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
                    @Override
                    public void onCompletion(MediaPlayer mediaPlayer) {
                        mediaPlayer.reset();
                mediaPlayer = MediaPlayer.create(MainActivity.this, soundUri);
                mediaPlayer.start();
                    }
                });

希望它为您提供了一个线索.

Hope it gives you a clue.

这篇关于关于MediaPlayer Info/Warning 950的任何线索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 22:59