7 #include "packager/media/base/key_source.h"
9 #include "packager/base/logging.h"
14 EncryptionKey::EncryptionKey() {}
15 EncryptionKey::~EncryptionKey() {}
17 KeySource::~KeySource() {}
20 const std::string& track_type_string) {
21 if (track_type_string ==
"SD")
23 if (track_type_string ==
"HD")
25 if (track_type_string ==
"UHD1")
26 return TRACK_TYPE_UHD1;
27 if (track_type_string ==
"UHD2")
28 return TRACK_TYPE_UHD2;
29 if (track_type_string ==
"AUDIO")
30 return TRACK_TYPE_AUDIO;
31 if (track_type_string ==
"UNSPECIFIED")
32 return TRACK_TYPE_UNSPECIFIED;
33 LOG(WARNING) <<
"Unexpected track type: " << track_type_string;
34 return TRACK_TYPE_UNKNOWN;
47 case TRACK_TYPE_AUDIO:
50 NOTIMPLEMENTED() <<
"Unknown track type: " << track_type;
55 KeySource::KeySource() {}