1#if !defined(MediaStream_hxx)
47#define RTP_COMPONENT_ID 1
48#define RTCP_COMPONENT_ID 2
74 const char* natTraversalServerHostname = 0,
75 unsigned short natTraversalServerPort = 0,
76 const char* stunUsername = 0,
77 const char* stunPassword = 0,
78 bool forceCOMedia =
false,
80 std::shared_ptr<FlowContext>
context =
nullptr,
128 Flow* mRtpFlow =
nullptr;
129 Flow* mRtcpFlow =
nullptr;
131 virtual void onFlowReady(
unsigned int componentId);
132 virtual void onFlowError(
unsigned int componentId,
unsigned int errorCode);
This class represents a Flow that is created by the Flow Manager.
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
This class is used during media sessions that use Dtls-Srtp for a media transport.
std::mutex Mutex
A semaphore that can be locked by only one thread at a time.