pujari gupta
unread,Jan 12, 2018, 8:41:46 AM1/12/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Chromium-dev, pujari...@gmail.com, chcunn...@chromium.org, jrum...@chromium.org
Hi Xiaohan,
For simplicity to debug I have added the UUID of mockDrm inside chromium source where you have pointed :
File : src/media/base/android/media_drm_bridge.cc :
//Code snippet
const char kExternalClearKey[] = "org.chromium.externalclearkey"; // PUJARI
const uint8_t kMockDrmUuid[16] = {
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, //
0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x10}; // PUJARI
KeySystemManager::KeySystemManager() {
// Widevine is always supported in Android.
key_system_uuid_map_[kWidevineKeySystem] =
UUID(kWidevineUuid, kWidevineUuid + arraysize(kWidevineUuid));
key_system_uuid_map_[kExternalClearKey] =
UUID(kMockDrmUuid, kMockDrmUuid + arraysize(kMockDrmUuid));
MediaDrmBridgeClient* client = GetMediaDrmBridgeClient();
if (client)
client->AddKeySystemUUIDMappings(&key_system_uuid_map_);
}
**************************************************************
File : src/media/base/android/android_cdm_factory.cc
commented :
// if (base::FeatureList::IsEnabled(media::kExternalClearKeyForTesting) &&
// IsExternalClearKey(key_system))
// N.B => I have given a log here , it seems log is not getting printed may be code is not coming here.
{
*********************************************
But when I am playing the clear key , its still pointing to the default clear key.
Mu understanding is It should load the MockDrm and fail to play the clear key stream.
Please correct me if my understanding is wrong.
Thanks
Pujari