Implement a set of "Simplified APIs" for ECM generation for castlabs.com.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=217601738
This commit is contained in:
@@ -16,12 +16,15 @@ package(
|
||||
filegroup(
|
||||
name = "binary_release_files",
|
||||
srcs = [
|
||||
"simulcrypt_client.cc",
|
||||
"test_simulcrypt_messages.h",
|
||||
":simulcrypt_client",
|
||||
],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "constants",
|
||||
hdrs = ["constants.h"],
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
name = "simulcrypt_client",
|
||||
srcs = ["simulcrypt_client.cc"],
|
||||
|
||||
30
example/constants.h
Normal file
30
example/constants.h
Normal file
@@ -0,0 +1,30 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright 2018 Google LLC.
|
||||
//
|
||||
// This software is licensed under the terms defined in the Widevine Master
|
||||
// License Agreement. For a copy of this agreement, please contact
|
||||
// widevine-licensing@google.com.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Some constant values for testing / demo purpose.
|
||||
|
||||
#ifndef MEDIA_CAS_PACKAGER_SDK_EXAMPLE_CONSTANTS_H_
|
||||
#define MEDIA_CAS_PACKAGER_SDK_EXAMPLE_CONSTANTS_H_
|
||||
|
||||
namespace widevine {
|
||||
namespace cas {
|
||||
|
||||
const char kDefaultContentId[] = "21140844";
|
||||
const char kDefaultProvider[] = "widevine";
|
||||
// Size of this IV needs to match ecm_init_params.content_iv_size.
|
||||
const char kDefaultContentIv8Bytes[] = {'\x01', '\x01', '\x01', '\x01',
|
||||
'\x01', '\x01', '\x01', '\x01'};
|
||||
const char kDefaultContentIv16Bytes[] = {
|
||||
'\x01', '\x01', '\x01', '\x01', '\x01', '\x01', '\x01', '\x01',
|
||||
'\x01', '\x01', '\x01', '\x01', '\x01', '\x01', '\x01', '\x01'};
|
||||
const char kDefaultTrackTypeSd[] = "SD";
|
||||
|
||||
} // namespace cas
|
||||
} // namespace widevine
|
||||
|
||||
#endif // MEDIA_CAS_PACKAGER_SDK_EXAMPLE_CONSTANTS_H_
|
||||
@@ -6,7 +6,7 @@
|
||||
// widevine-licensing@google.com.
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Example client that talks to server_main.
|
||||
// Example client for demonstrating network calls to public/simulcrypt_server.
|
||||
|
||||
#include <errno.h>
|
||||
#include <netdb.h>
|
||||
|
||||
Reference in New Issue
Block a user