7 #include "packager/media/base/key_source.h"
9 #include "packager/base/logging.h"
11 namespace edash_packager {
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 ==
"AUDIO")
26 return TRACK_TYPE_AUDIO;
27 if (track_type_string ==
"UNSPECIFIED")
28 return TRACK_TYPE_UNSPECIFIED;
29 LOG(WARNING) <<
"Unexpected track type: " << track_type_string;
30 return TRACK_TYPE_UNKNOWN;
39 case TRACK_TYPE_AUDIO:
42 NOTIMPLEMENTED() <<
"Unknown track type: " << track_type;
47 KeySource::KeySource() {}