mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-15 04:25:58 +08:00
整理代码
This commit is contained in:
@@ -31,20 +31,10 @@
|
||||
#include "Rtmp/RtmpPusher.h"
|
||||
|
||||
using namespace toolkit;
|
||||
using namespace mediakit::Client;
|
||||
|
||||
namespace mediakit {
|
||||
|
||||
const char PusherBase::kNetAdapter[] = "net_adapter";
|
||||
const char PusherBase::kRtpType[] = "rtp_type";
|
||||
const char PusherBase::kRtspUser[] = "rtsp_user" ;
|
||||
const char PusherBase::kRtspPwd[] = "rtsp_pwd";
|
||||
const char PusherBase::kRtspPwdIsMD5[] = "rtsp_pwd_md5";
|
||||
|
||||
const char PusherBase::kPlayTimeoutMS[] = "play_timeout_ms";
|
||||
const char PusherBase::kMediaTimeoutMS[] = "media_timeout_ms";
|
||||
const char PusherBase::kBeatIntervalMS[] = "beat_interval_ms";
|
||||
|
||||
|
||||
PusherBase::Ptr PusherBase::createPusher(const MediaSource::Ptr &src,
|
||||
const string & strUrl) {
|
||||
static auto releasePusher = [](PusherBase *ptr){
|
||||
@@ -64,8 +54,7 @@ PusherBase::Ptr PusherBase::createPusher(const MediaSource::Ptr &src,
|
||||
}
|
||||
|
||||
PusherBase::PusherBase() {
|
||||
this->mINI::operator[](kPlayTimeoutMS) = 10000;
|
||||
this->mINI::operator[](kMediaTimeoutMS) = 5000;
|
||||
this->mINI::operator[](kTimeoutMS) = 10000;
|
||||
this->mINI::operator[](kBeatIntervalMS) = 5000;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user