rtpdepacketizer.hpp 869 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * Copyright (c) 2024 Paul-Louis Ageneau
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at https://mozilla.org/MPL/2.0/.
  7. */
  8. #ifndef RTC_RTP_DEPACKETIZER_H
  9. #define RTC_RTP_DEPACKETIZER_H
  10. #if RTC_ENABLE_MEDIA
  11. #include "mediahandler.hpp"
  12. #include "message.hpp"
  13. namespace rtc {
  14. class RTC_CPP_EXPORT RtpDepacketizer : public MediaHandler {
  15. public:
  16. RtpDepacketizer();
  17. RtpDepacketizer(uint32_t clockRate);
  18. virtual ~RtpDepacketizer();
  19. virtual void incoming(message_vector &messages, const message_callback &send) override;
  20. private:
  21. uint32_t mClockRate;
  22. };
  23. using OpusRtpDepacketizer = RtpDepacketizer;
  24. using AACRtpDepacketizer = RtpDepacketizer;
  25. } // namespace rtc
  26. #endif /* RTC_ENABLE_MEDIA */
  27. #endif /* RTC_RTP_DEPACKETIZER_H */