Video issue with Chromium Android

458 views
Skip to first unread message

MinhHoang To

unread,
Apr 24, 2016, 10:26:27 AM4/24/16
to Chromium-dev

I have seen that Chromium Android built from recent code ( i built master branch on Ubuntu 14.04, Android SDK 23 ) cannot play HTML5 videos. Nothing was shown as i clicked on the media control button, BUT it is ok with the direct link of the videos

That happened on some devices, and i got it worked again by turning on the 'disable-unified-media-pipeline' flag.


// Use WebMediaPlayerAndroid instead of WebMediaPlayerImpl. This is a temporary
// switch for holding back the new unified media pipeline.
const char kDisableUnifiedMediaPipeline[] = "disable-unified-media-pipeline";

AFAIK, the default media player of Chromium Android is now the WebMediaPlayerImpl, the one extending unifed media pipeline API. And the issue with video should be about the missing of non-portable dependencies on the build?.




MinhHoang To

unread,
Apr 24, 2016, 10:42:03 AM4/24/16
to Chromium-dev
I still use the legacy GYP for the Chromium Android build, does that lead to missing dependencies?

Dale Curtis

unread,
Apr 24, 2016, 1:20:07 PM4/24/16
to hoang...@gmail.com, Chromium-dev
You're likely missing support for proprietary codecs; which is disabled by default due to licensing issues on all Chromium variants (Android now included).

If you want to enable this in your local build you'll need to set "ffmpeg_branding=Chrome proprietary_codecs=1" in GYP.

- dale

On Sun, Apr 24, 2016 at 7:42 AM, MinhHoang To <hoang...@gmail.com> wrote:
I still use the legacy GYP for the Chromium Android build, does that lead to missing dependencies?

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

MinhHoang To

unread,
Apr 25, 2016, 6:22:09 AM4/25/16
to Chromium-dev, hoang...@gmail.com
@Dale: You saved me!

And to add third-party codecs, is there any showing case (Ex: dependencies configure, code enhance in the unified pipeline) in Chromium code base?


MinhHoang To

unread,
Apr 25, 2016, 6:34:26 AM4/25/16
to Chromium-dev, hoang...@gmail.com
@Dale:

About the media player on Chromium Android, what is the main difference between:

1. Play video from a news website by clicking HTML5 element

<video>
......
</video>

2. Paste the direct link (Ex: I used Firebug to gett the direct link http://abc.com/xys.mp4) to location bar

I noticed that (2) always worked even without the proprietary codecs required for (1)

Dale Curtis

unread,
Apr 25, 2016, 2:08:07 PM4/25/16
to MinhHoang To, Chromium-dev
When you set just ffmpeg branding you get the ability to decode the codecs, but the MIME and <source> detection within Blink does not work properly. You bypass that detection by trying to forcibly play the .mp4 version w/o checking canPlayType.

- dale

Reply all
Reply to author
Forward
0 new messages