7 #ifndef MEDIA_FORMATS_WEBM_ENCRYPTOR_H_
8 #define MEDIA_FORMATS_WEBM_ENCRYPTOR_H_
11 #include "packager/base/macros.h"
12 #include "packager/base/memory/ref_counted.h"
13 #include "packager/media/base/key_source.h"
14 #include "packager/media/base/status.h"
15 #include "packager/media/base/stream_info.h"
16 #include "packager/media/codecs/vpx_parser.h"
17 #include "packager/media/event/muxer_listener.h"
18 #include "packager/third_party/libwebm/src/mkvmuxer.hpp"
23 class AesCtrEncryptor;
38 KeySource::TrackType track_type,
41 bool webm_subsample_encryption);
57 KeySource::TrackType track_type,
60 bool webm_subsample_encryption);
63 std::unique_ptr<EncryptionKey> key_;
64 std::unique_ptr<AesCtrEncryptor> encryptor_;
65 std::unique_ptr<VPxParser> vpx_parser_;
74 #endif // MEDIA_FORMATS_WEBM_ENCRYPTOR_H_