Android棉花糖“无法播放此视频"错误

编程入门 行业动态 更新时间:2024-10-09 21:26:41
本文介绍了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: 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棉花糖“无法播放此视频"错误

本文发布于:2023-11-27 18:51:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639194.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:棉花   无法播放   错误   视频   Android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!