Rename Playready to PlayReady.

Change-Id: I11e0b0a0cc32aec574804e7cb02291dc3174357c
This commit is contained in:
Haoming Chen 2018-04-20 11:06:36 -07:00
parent aa4b573342
commit dddbb19701
11 changed files with 27 additions and 27 deletions

View File

@ -16,7 +16,7 @@ Shaka Packager supports:
- [HLS](https://developer.apple.com/streaming/)
- Key systems:
- [Widevine](http://www.widevine.com/)
- [Playready](https://www.microsoft.com/playready/)<sup>1</sup>
- [PlayReady](https://www.microsoft.com/playready/)<sup>1</sup>
- [Fairplay](https://developer.apple.com/streaming/fps/)<sup>1</sup>
- Encryption standards:
- [CENC](https://en.wikipedia.org/wiki/MPEG_Common_Encryption)

View File

@ -59,7 +59,7 @@ Shaka Packager supports three different types of key providers:
- Raw key: keys are provided in command line
- Widevine: fetches keys from Widevine key server
- Playready: fetches keys from Playready key server
- PlayReady: fetches keys from PlayReady key server
Different key providers cannot be specified at the same time.
@ -69,7 +69,7 @@ Different key providers cannot be specified at the same time.
[--enable_widevine_decryption {Widevine Decryption Options}] \
[--enable_raw_key_encryption {Raw Key Encryption Options}] \
[--enable_raw_key_decryption {Raw Key Decryption Options}] \
[--enable_playready_encryption {Playready Encryption Options}]
[--enable_playready_encryption {PlayReady Encryption Options}]
.. include:: /options/general_encryption_options.rst

View File

@ -23,7 +23,7 @@ Shaka Packager Library (Continued)
.. doxygenstruct:: shaka::WidevineEncryptionParams
.. doxygenstruct:: shaka::PlayreadyEncryptionParams
.. doxygenstruct:: shaka::PlayReadyEncryptionParams
.. doxygenstruct:: shaka::RawKeyEncryptionParams

View File

@ -1,4 +1,4 @@
Playready encryption options
PlayReady encryption options
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--enable_playready_encryption
@ -7,7 +7,7 @@ Playready encryption options
--playready_server_url <url>
Playready packaging server url.
PlayReady packaging server url.
--program_identifier <program_identifier>
@ -15,11 +15,11 @@ Playready encryption options
--playready_key_id <hex>
Playready key id in hex.
PlayReady key id in hex.
--playready_key <hex>
Playready key in hex.
PlayReady key in hex.
--ca_file <file path>

View File

@ -1,4 +1,4 @@
Playready
PlayReady
=========
To be completed.

View File

@ -290,7 +290,7 @@ base::Optional<PackagingParams> GetPackagingParams() {
++num_key_providers;
}
if (FLAGS_enable_playready_encryption) {
encryption_params.key_provider = KeyProvider::kPlayready;
encryption_params.key_provider = KeyProvider::kPlayReady;
++num_key_providers;
}
if (FLAGS_enable_raw_key_encryption) {
@ -327,8 +327,8 @@ base::Optional<PackagingParams> GetPackagingParams() {
return base::nullopt;
break;
}
case KeyProvider::kPlayready: {
PlayreadyEncryptionParams& playready = encryption_params.playready;
case KeyProvider::kPlayReady: {
PlayReadyEncryptionParams& playready = encryption_params.playready;
playready.key_server_url = FLAGS_playready_server_url;
playready.program_identifier = FLAGS_program_identifier;
playready.ca_file = FLAGS_ca_file;
@ -376,7 +376,7 @@ base::Optional<PackagingParams> GetPackagingParams() {
return base::nullopt;
break;
}
case KeyProvider::kPlayready:
case KeyProvider::kPlayReady:
case KeyProvider::kNone:
break;
}

View File

@ -97,8 +97,8 @@ std::unique_ptr<KeySource> CreateEncryptionKeySource(
protection_systems_flags);
break;
}
case KeyProvider::kPlayready: {
const PlayreadyEncryptionParams& playready = encryption_params.playready;
case KeyProvider::kPlayReady: {
const PlayReadyEncryptionParams& playready = encryption_params.playready;
if (!playready.key_server_url.empty() ||
!playready.program_identifier.empty()) {
if (playready.key_server_url.empty() ||
@ -175,7 +175,7 @@ std::unique_ptr<KeySource> CreateDecryptionKeySource(
break;
}
case KeyProvider::kNone:
case KeyProvider::kPlayready:
case KeyProvider::kPlayReady:
break;
}
return decryption_key_source;

View File

@ -16,7 +16,7 @@ DEFINE_bool(generate_common_pssh,
"is set and no other pssh flags are specified.");
DEFINE_bool(generate_playready_pssh,
false,
"When specified, include a Playready PSSH box."
"When specified, include a PlayReady PSSH box."
"A playready PSSH is always generated regardless of the value of "
"--generate_playready_pssh for --enable_playready_encryption.");
DEFINE_bool(generate_widevine_pssh,

View File

@ -62,7 +62,7 @@ bool Base64StringToBytes(const std::string& base64_string,
PlayReadyKeySource::PlayReadyKeySource(const std::string& server_url,
int protection_system_flags)
// Playready PSSH is retrived from Playready server response.
// PlayReady PSSH is retrived from PlayReady server response.
: KeySource(protection_system_flags & ~PLAYREADY_PROTECTION_SYSTEM_FLAG),
encryption_key_(new EncryptionKey),
server_url_(server_url) {}
@ -73,7 +73,7 @@ PlayReadyKeySource::PlayReadyKeySource(
const std::string& client_cert_private_key_file,
const std::string& client_cert_private_key_password,
int protection_system_flags)
// Playready PSSH is retrived from Playready server response.
// PlayReady PSSH is retrived from PlayReady server response.
: KeySource(protection_system_flags & ~PLAYREADY_PROTECTION_SYSTEM_FLAG),
encryption_key_(new EncryptionKey),
server_url_(server_url),

View File

@ -244,7 +244,7 @@ class WidevineKeySourceTest : public Test {
kPlayReadySystemId,
kPlayReadySystemId + arraysize(kPlayReadySystemId));
// Playready pssh index depends on if there has common pssh box.
// PlayReady pssh index depends on if there has common pssh box.
const uint8_t playready_index = 1 + (add_common_pssh_ ? 1 : 0);
ASSERT_EQ(
playready_system_id,

View File

@ -18,7 +18,7 @@ namespace shaka {
enum class KeyProvider {
kNone = 0,
kWidevine = 1,
kPlayready = 2,
kPlayReady = 2,
kRawKey = 3,
};
@ -61,17 +61,17 @@ struct WidevineEncryptionParams {
std::vector<uint8_t> group_id;
};
/// Playready encryption parameters.
/// PlayReady encryption parameters.
/// Two different modes of playready key acquisition is supported:
/// (1) Fetch from a key server. `key_server_url` and `program_identifier` are
/// required. The presence of other parameters may be necessary depends
/// on server configuration.
/// (2) Provide the raw key directly. Both `key_id` and `key` are required.
/// We are planning to merge this mode with `RawKeyParams`.
struct PlayreadyEncryptionParams {
/// Playready license / key server URL.
struct PlayReadyEncryptionParams {
/// PlayReady license / key server URL.
std::string key_server_url;
/// Playready program identifier.
/// PlayReady program identifier.
std::string program_identifier;
/// Absolute path to the Certificate Authority file for the server cert in PEM
/// format.
@ -114,7 +114,7 @@ struct EncryptionParams {
KeyProvider key_provider = KeyProvider::kNone;
// Only one of the three fields is valid.
WidevineEncryptionParams widevine;
PlayreadyEncryptionParams playready;
PlayReadyEncryptionParams playready;
RawKeyParams raw_key;
/// When it is true, generate a v1 PSSH box for the common
@ -122,7 +122,7 @@ struct EncryptionParams {
/// The flag is default to be true if --enable_raw_key_encryption
/// is set and no other pssh flags are specified.
bool generate_common_pssh = false;
/// When it is true, include a Playready PSSH box.
/// When it is true, include a PlayReady PSSH box.
/// A playready PSSH is always generated regardless of the value of
/// --generate_playready_pssh for --enable_playready_encryption.
bool generate_playready_pssh = false;