// Copyright 2017 Google LLC. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #ifndef MEDIA_BASE_PLAYREADY_PSSH_GENERATOR_H_ #define MEDIA_BASE_PLAYREADY_PSSH_GENERATOR_H_ #include #include "packager/media/base/fourccs.h" #include "packager/media/base/pssh_generator.h" namespace shaka { namespace media { class PlayReadyPsshGenerator : public PsshGenerator { public: explicit PlayReadyPsshGenerator(const std::string& extra_header_data, FourCC protection_scheme); ~PlayReadyPsshGenerator() override; /// @name PsshGenerator implemetation overrides. /// @{ bool SupportMultipleKeys() override; /// @} private: PlayReadyPsshGenerator& operator=(const PlayReadyPsshGenerator&) = delete; PlayReadyPsshGenerator(const PlayReadyPsshGenerator&) = delete; // PsshGenerator implemetation overrides. std::optional> GeneratePsshDataFromKeyIds( const std::vector>& key_ids) const override; std::optional> GeneratePsshDataFromKeyIdAndKey( const std::vector& key_id, const std::vector& key) const override; const std::string extra_header_data_; const FourCC protection_scheme_; }; } // namespace media } // namespace shaka #endif // MEDIA_BASE_PLAYREADY_PSSH_GENERATOR_H_