Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions MediaSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,18 @@ class WideVine : public IMediaKeys, public widevine::Cdm::IEventListener
Config()
: Core::JSON::Container()
, Certificate()
, Keybox()
{
Add(_T("certificate"), &Certificate);
Add(_T("keybox"), &Keybox);
}
~Config()
{
}

public:
Core::JSON::String Certificate;
Core::JSON::String Keybox;
};

public:
Expand Down Expand Up @@ -117,6 +120,10 @@ class WideVine : public IMediaKeys, public widevine::Cdm::IEventListener
Config config;
config.FromString(configline);

if (config.Keybox.IsSet() == true) {
Core::SystemInfo::SetEnvironment("WIDEVINE_TEST_KEYBOX_PATH", config.Keybox.Value().c_str());
Comment thread
krplata marked this conversation as resolved.
Outdated
}

if (config.Certificate.IsSet() == true) {
Core::DataElementFile dataBuffer(config.Certificate.Value(), Core::File::USER_READ);

Expand Down