123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef API_CRYPTO_FRAME_ENCRYPTOR_INTERFACE_H_
- #define API_CRYPTO_FRAME_ENCRYPTOR_INTERFACE_H_
- #include "api/array_view.h"
- #include "api/media_types.h"
- #include "rtc_base/ref_count.h"
- namespace webrtc {
- class FrameEncryptorInterface : public rtc::RefCountInterface {
- public:
- ~FrameEncryptorInterface() override {}
-
-
-
-
-
-
-
- virtual int Encrypt(cricket::MediaType media_type,
- uint32_t ssrc,
- rtc::ArrayView<const uint8_t> additional_data,
- rtc::ArrayView<const uint8_t> frame,
- rtc::ArrayView<uint8_t> encrypted_frame,
- size_t* bytes_written) = 0;
-
-
-
- virtual size_t GetMaxCiphertextByteSize(cricket::MediaType media_type,
- size_t frame_size) = 0;
- };
- }
- #endif
|