LeviLamina
Loading...
Searching...
No Matches
PeerConnectionObserver.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/PeerConnectionInterface.h"
7#include "mc/external/webrtc/scoped_refptr.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace cricket { class Candidate; }
12namespace cricket { struct CandidatePairChangeEvent; }
13namespace webrtc { class DataChannelInterface; }
14namespace webrtc { class IceCandidateInterface; }
15namespace webrtc { class MediaStreamInterface; }
16namespace webrtc { class RtpReceiverInterface; }
17namespace webrtc { class RtpTransceiverInterface; }
18// clang-format on
19
20namespace webrtc {
21
23public:
24 // virtual functions
25 // NOLINTBEGIN
26 virtual ~PeerConnectionObserver() = default;
27
28 virtual void OnSignalingChange(::webrtc::PeerConnectionInterface::SignalingState) = 0;
29
30 virtual void OnAddStream(::webrtc::scoped_refptr<::webrtc::MediaStreamInterface> stream);
31
32 virtual void OnRemoveStream(::webrtc::scoped_refptr<::webrtc::MediaStreamInterface> stream);
33
34 virtual void OnDataChannel(::webrtc::scoped_refptr<::webrtc::DataChannelInterface> dataChannel) = 0;
35
36 virtual void OnRenegotiationNeeded();
37
38 virtual void OnNegotiationNeededEvent(uint event_id);
39
40 virtual void OnIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState newState);
41
42 virtual void OnStandardizedIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState new_state);
43
44 virtual void OnConnectionChange(::webrtc::PeerConnectionInterface::PeerConnectionState new_state);
45
46 virtual void OnIceGatheringChange(::webrtc::PeerConnectionInterface::IceGatheringState newState) = 0;
47
48 virtual void OnIceCandidate(::webrtc::IceCandidateInterface const* candidate) = 0;
49
50 virtual void OnIceCandidateError(
51 ::std::string const& address,
52 int port,
53 ::std::string const& url,
54 int errorCode,
55 ::std::string const& errorMessage
56 );
57
58 virtual void OnIceCandidatesRemoved(::std::vector<::cricket::Candidate> const& candidates);
59
60 virtual void OnIceConnectionReceivingChange(bool receiving);
61
62 virtual void OnIceSelectedCandidatePairChanged(::cricket::CandidatePairChangeEvent const& event);
63
64 virtual void OnAddTrack(
67 );
68
69 virtual void OnTrack(::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface> transceiver);
70
71 virtual void OnRemoveTrack(::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface> receiver);
72
73 virtual void OnInterestingUsage(int usage_pattern);
74 // NOLINTEND
75
76public:
77 // virtual function thunks
78 // NOLINTBEGIN
80
82
84
85 MCNAPI void $OnNegotiationNeededEvent(uint event_id);
86
87 MCNAPI void $OnStandardizedIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState new_state);
88
89 MCNAPI void $OnConnectionChange(::webrtc::PeerConnectionInterface::PeerConnectionState new_state);
90
91 MCNAPI void $OnIceCandidatesRemoved(::std::vector<::cricket::Candidate> const& candidates);
92
93 MCNAPI void $OnIceConnectionReceivingChange(bool receiving);
94
96
97 MCNAPI void $OnAddTrack(
100 );
101
103
105
106 MCNAPI void $OnInterestingUsage(int usage_pattern);
107
108
109 // NOLINTEND
110};
111
112} // namespace webrtc
Definition Candidate.h:15
Definition DataChannelInterface.h:19
Definition IceCandidateInterface.h:12
Definition MediaStreamInterface.h:18
Definition PeerConnectionObserver.h:22
MCAPI void $OnStandardizedIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState new_state)
MCAPI void $OnConnectionChange(::webrtc::PeerConnectionInterface::PeerConnectionState new_state)
MCAPI void $OnRemoveStream(::webrtc::scoped_refptr<::webrtc::MediaStreamInterface > stream)
MCAPI void $OnNegotiationNeededEvent(uint event_id)
MCAPI void $OnInterestingUsage(int usage_pattern)
MCAPI void $OnIceCandidatesRemoved(::std::vector<::cricket::Candidate > const &candidates)
MCAPI void $OnIceConnectionReceivingChange(bool receiving)
MCAPI void $OnIceSelectedCandidatePairChanged(::cricket::CandidatePairChangeEvent const &event)
MCAPI void $OnTrack(::webrtc::scoped_refptr<::webrtc::RtpTransceiverInterface > transceiver)
MCAPI void $OnAddTrack(::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface > receiver, ::std::vector<::webrtc::scoped_refptr<::webrtc::MediaStreamInterface > > const &streams)
MCAPI void $OnAddStream(::webrtc::scoped_refptr<::webrtc::MediaStreamInterface > stream)
MCAPI void $OnRemoveTrack(::webrtc::scoped_refptr<::webrtc::RtpReceiverInterface > receiver)
Definition RtpReceiverInterface.h:24
Definition RtpTransceiverInterface.h:22
Definition scoped_refptr.h:8
Definition CandidatePairChangeEvent.h:7