123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef API_VOIP_VOIP_BASE_H_
- #define API_VOIP_VOIP_BASE_H_
- #include "absl/types/optional.h"
- namespace webrtc {
- class Transport;
- enum class ChannelId : int {};
- class VoipBase {
- public:
-
-
-
-
-
-
-
-
-
-
- virtual absl::optional<ChannelId> CreateChannel(
- Transport* transport,
- absl::optional<uint32_t> local_ssrc) = 0;
-
- virtual void ReleaseChannel(ChannelId channel_id) = 0;
-
-
-
-
- virtual bool StartSend(ChannelId channel_id) = 0;
-
-
-
-
-
- virtual bool StopSend(ChannelId channel_id) = 0;
-
-
-
-
-
- virtual bool StartPlayout(ChannelId channel_id) = 0;
-
-
-
-
-
- virtual bool StopPlayout(ChannelId channel_id) = 0;
- protected:
- virtual ~VoipBase() = default;
- };
- }
- #endif
|