整理webrtc相关代码命名空间

This commit is contained in:
ziyue
2022-09-18 21:03:05 +08:00
parent 15affeff1d
commit 0b355759de
22 changed files with 164 additions and 111 deletions

View File

@@ -12,7 +12,8 @@
#include "Util/util.h"
using namespace std;
using namespace mediakit;
namespace mediakit {
static string getUserName(const Buffer::Ptr &buffer) {
auto buf = buffer->data();
@@ -85,7 +86,7 @@ void WebRtcSession::onError(const SockException &err) {
}
void WebRtcSession::onManager() {
GET_CONFIG(float, timeoutSec, RTC::kTimeOutSec);
GET_CONFIG(float, timeoutSec, Rtc::kTimeOutSec);
if (!_transport && _ticker.createdTime() > timeoutSec * 1000) {
shutdown(SockException(Err_timeout, "illegal webrtc connection"));
return;
@@ -96,5 +97,6 @@ void WebRtcSession::onManager() {
}
}
}// namespace mediakit