mirror of
https://github.com/shaka-project/shaka-packager.git
synced 2024-10-22 07:44:56 +00:00
1bf1ec2445
The keys can be specified in --keys option, with the form of label=<label>:key_id=<32-digit hex string>:key=<32-digit hex string>,label=... There can be multiple "label=..." block. The DRM label can be one of "AUDIO, SD, HD, UHD1, UHD2" or a custom label. Mark --key and --key_id as deprecated. We can achieve the same result with --keys=label=:key_id=<key_id>:key=<key>. Also add a new optional field in stream descriptor: drm_label, which is used to overwrite the internally generated DRM label for the stream. If not provided, the DRM label is generated automatically based on audio/video information, e.g. resolution. Code changes: - Merged RawKeyEncryptionParams and RawKeyDecryptionParams into RawKeyParams. - Make FixedKeySource accepts RawKeyParams as input. Change-Id: Ic8c2f071cc71188e13f14bc6396fc2b3ffa5cac6
24 lines
594 B
C++
24 lines
594 B
C++
// Copyright 2014 Google Inc. All rights reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file or at
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
//
|
|
// Flag validation help functions.
|
|
|
|
#include "packager/app/validate_flag.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
namespace shaka {
|
|
|
|
void PrintError(const std::string& error_message) {
|
|
fprintf(stderr, "ERROR: %s\n", error_message.c_str());
|
|
}
|
|
|
|
void PrintWarning(const std::string& warning_message) {
|
|
fprintf(stderr, "WARNING: %s\n", warning_message.c_str());
|
|
}
|
|
|
|
} // namespace shaka
|