Shaka Packager SDK
protection_system_flags.cc
1 // Copyright 2017 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 //
7 // Defines command line flags for protection systems.
8 
9 #include "packager/app/protection_system_flags.h"
10 
11 DEFINE_bool(generate_common_pssh,
12  false,
13  "When specified, generate an additional v1 PSSH box for the common "
14  "system ID. See: https://goo.gl/s8RIhr."
15  "The flag is default to be true if --enable_raw_key_encryption "
16  "is set and no other pssh flags are specified.");
17 DEFINE_bool(generate_playready_pssh,
18  false,
19  "When specified, include a PlayReady PSSH box."
20  "A playready PSSH is always generated regardless of the value of "
21  "--generate_playready_pssh for --enable_playready_encryption.");
22 DEFINE_bool(generate_widevine_pssh,
23  false,
24  "When specified, include a Widevine PSSH box. "
25  "A widevine PSSH is always generated regardless of the value of "
26  "--generate_widevine_pssh for --enable_widevine_encryption.");