1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6 # Allows distributions to link pulseaudio directly (DT_NEEDED) instead of
7 # using dlopen. This helps with automated detection of ABI mismatches and
8 # prevents silent errors.
9 link_pulseaudio = false
11 # Enable usage of FFmpeg within the media library. Used for most software
12 # based decoding, demuxing, and sometimes optimized FFTs. If disabled,
13 # implementors must provide their own demuxers and decoders.
14 media_use_ffmpeg = true
16 # Enable usage of libvpx within the media library. Used for software based
17 # decoding of VP9 and VP8A type content.
18 media_use_libvpx = true
20 # Enable libwebm for multiplexing video and audio for JS recording API.
21 media_use_libwebm = true
23 # Neither Android nor iOS use ffmpeg, libvpx nor libwebm.
24 if (is_android || is_ios) {
25 media_use_ffmpeg = false
26 media_use_libvpx = false
27 media_use_libwebm = false
30 # Override to dynamically link the cras (ChromeOS audio) library.
33 # Enables runtime selection of PulseAudio library.
34 use_pulseaudio = false
36 # Enables runtime selection of ALSA library for audio.
39 # TODO(GYP): How to handled the "embedded" use case?
40 # Original conditional: (OS=="linux" or OS=="freebsd" or OS=="solaris") and embedded!=1
41 if (is_posix && !is_android && !is_mac) {
48 # Enables the MPEG2-TS stream parser for use with Media Source. Disabled by
49 # default since it's not available on the normal Web Platform and costs money.
50 enable_mpeg2ts_stream_parser = false
52 # Experiment to enable mojo media application: http://crbug.com/431776
54 # - "none": Do not use mojo media application.
55 # - "browser": Use mojo media application hosted in the browser process.
56 # - "utility": Use mojo media application hosted in the utility process.
57 enable_mojo_media = "none"
59 # TODO(GYP): This should be a platform define.