Bug 1341990 - Part 0: Add a feature flag to control source code build time coverage for ExoPlayer. draft
authorKilik Kuo <kikuo@mozilla.com>
Wed, 24 May 2017 02:51:32 +0800
changeset 583166 a512b29b34939e8eb62f3d5d98545356fa0a8fc9
parent 583025 6dfa56094f0cc291945dd3c24d0a4c2682d80ec7
child 583167 af12643a49c4231aca96c149bc76e2cf9827ffac
push id60314
push userbmo:kikuo@mozilla.com
push dateTue, 23 May 2017 18:56:39 +0000
bugs1341990
milestone55.0a1
Bug 1341990 - Part 0: Add a feature flag to control source code build time coverage for ExoPlayer. A feature flag named MOZ_ANDROID_HLS_SUPPORT is added. HLS (HTTP Live Streaming) is supported on different browsers on mobile devices. By integrating ExoPlayer's components into Fennec, we're able to play media via HLS on Fennec. MozReview-Commit-ID: Igubn98UPjh
mobile/android/moz.configure
--- a/mobile/android/moz.configure
+++ b/mobile/android/moz.configure
@@ -67,16 +67,20 @@ project_flag('MOZ_ANDROID_CUSTOM_TABS',
 
 # Enable the Switchboard A/B framework code.
 # Note: The framework is always included in the app. This flag controls
 # usage of the framework.
 project_flag('MOZ_SWITCHBOARD',
              help='Include Switchboard A/B framework on Android',
              default=True)
 
+project_flag('MOZ_ANDROID_HLS_SUPPORT',
+             help='Enable HLS (HTTP Live Streaming) support (currently using the ExoPlayer library)',
+             default=milestone.is_nightly)
+
 option(env='MOZ_ANDROID_ACTIVITY_STREAM',
        help='Enable Activity Stream on Android (replacing the default HomePager)',
        default=False)
 
 set_config('MOZ_ANDROID_ACTIVITY_STREAM',
            depends_if('MOZ_ANDROID_ACTIVITY_STREAM')(lambda _: True))
 
 option(env='MOZ_ANDROID_PACKAGE_INSTALL_BOUNCER',