mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-21 08:22:21 +08:00
整理webrtc相关代码命名空间
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user