DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
decryptor_source.h
1 // Copyright 2014 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 
7 #ifndef MEDIA_BASE_DECRYPTOR_SOURCE_H_
8 #define MEDIA_BASE_DECRYPTOR_SOURCE_H_
9 
10 #include "packager/base/memory/scoped_ptr.h"
11 #include "packager/media/base/container_names.h"
12 #include "packager/media/base/status.h"
13 
14 namespace edash_packager {
15 namespace media {
16 
19  public:
20  DecryptorSource() {}
21  virtual ~DecryptorSource() {}
22 
28  virtual Status OnNeedKey(MediaContainerName container,
29  const std::string& init_data) = 0;
30 
31  private:
32  DISALLOW_COPY_AND_ASSIGN(DecryptorSource);
33 };
34 
35 } // namespace media
36 } // namespace edash_packager
37 
38 #endif // MEDIA_BASE_DECRYPTOR_SOURCE_H_
DecryptorSource is responsible for decryption key acquisition.
virtual Status OnNeedKey(MediaContainerName container, const std::string &init_data)=0