Android棉花糖“无法播放此视频"错误 [英] Android Marshmallow "Can't play this video" error

查看:454
本文介绍了Android棉花糖“无法播放此视频"错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将应用程序升级到android 6.0.除了尝试从远程来源播放某些视频外,其他一切似乎都还不错.它们可以在我们的非棉花糖设备上正常播放(具体来说,我在4.1.2 Jelly Bean上拥有Galaxy S3,可以播放完全相同的视频,没有问题).我们已经在6.0上使用多种设备进行了测试,但问题似乎仅限于此操作系统.

I am in the process of upgrading an app to android 6.0. Everything seems to be alright except when trying to play certain videos from a remote source. They play just fine on our non Marshmallow devices (for specifics, I have a Galaxy S3 on 4.1.2 Jelly Bean that's playing the exact same video just fine, no issues). We've tested with multiple devices on 6.0, and the problem seems to be localized to just this OS.

当尝试在简单的视频视图中播放视频时,我收到一条警告,提示无法播放此视频".

When trying to play a video in a simple videoview, I get an alert saying "Can't play this video".

过去,我在4.1.2上的其他视频上遇到了一些问题,并认为这可能是编解码器问题,我再次认为这可能是罪魁祸首.无法全部播放的视频具有以下共同点:

I had some problems with other videos on 4.1.2 in the past, and thought it may be a codec issue, which I think again may be the culprit. The videos that won't play all have these in common:

  • AAC
  • H.264
  • MPEG-4 SDSM
  • MPEG-4 ODSM

当我尝试通过videoview启动活动时,这就是logcat吐出的东西.

When I try to launch the activity with the videoview, this is what the logcat spits out.

201-801/? D/audio_hw_primary﹕ out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
201-800/? D/audio_hw_primary﹕ select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
201-800/? D/msm8974_platform﹕ platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(15)
201-800/? D/audio_hw_primary﹕ enable_snd_device: snd_device(2: speaker)
201-800/? D/audio_hw_primary﹕ enable_audio_route: apply and update mixer path: low-latency-playback
777-1257/? I/MediaFocusControl﹕ AudioFocus  requestAudioFocus() from android.media.AudioManager@f9138b2 req=1flags=0x0
4591-4591/? W/MediaPlayer﹕ Couldn't open file on client side; trying server side: java.io.FileNotFoundException: No content provider: http://videopath.mp4
201-5605/? D/NuPlayer﹕ onSetVideoSurface(0xb48c2700, no video decoder)
777-811/? I/ActivityManager﹕ Displayed com.example.i.PityTheFooActivity: +108ms
1139-1139/? I/Keyboard.Facilitator﹕ onFinishInput()
201-5606/? E/GenericSource﹕ Failed to init from data source!
201-5605/? D/NuPlayerDriver﹕ notifyListener_l(0xb60986a0), (100, 1, -2147483648)
4591-4605/? E/MediaPlayer﹕ error (1, -2147483648)
4591-4591/? E/MediaPlayer﹕ Error (1,-2147483648)
4591-4591/? D/VideoView﹕ Error: 1,-2147483648

这是棉花糖的一个已知问题,还是视频出现问题?

Is this a known problem with Marshmallow, or is this something wrong with the videos perhaps?

推荐答案

具有ODSM/SDSM编解码器的视频可以绕过去隔行扫描,但是Android棉花糖似乎无法识别ODSM/SDSM编解码器,因此需要对视频进行去隔行扫描.以前的OS版本将无法播放未正常反隔行扫描的视频,但包含ODSM或SDSM编解码器的视频文件除外.

Videos with ODSM / SDSM codecs can bypass being deinterlaced, but it appears Android Marshmallow will not recognize ODSM / SDSM codecs and will require the videos to be deinterlaced. Previous OS versions will not play videos that haven't been deinterlaced normally, with the exception being the video file including ODSM or SDSM codecs.

我认为这是由于Quicktime支持问题所致,可能需要作为Android Marshmallow的缺陷来打开,但Google可能也打算这样做.

I believe this is due to Quicktime support issues, and may need to be opened as a defect with Android Marshmallow, but may also be intended by Google.

这篇关于Android棉花糖“无法播放此视频"错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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