验证本地http可以查看webrtc.
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
#include "RtspServer.h"
|
||||
#include "Core/Logger.h"
|
||||
#include <boost/asio/io_context.hpp>
|
||||
#include <boost/asio/strand.hpp>
|
||||
#include <chrono>
|
||||
@ -39,7 +40,12 @@ RtspServer::RtspServer(boost::asio::io_context &ioContext) : m_d(new RtspServerP
|
||||
config.ssl_is_path = 1;
|
||||
mk_env_init(&config);
|
||||
|
||||
mk_rtsp_server_start(554, 0);
|
||||
uint16_t status = mk_rtsp_server_start(554, 0);
|
||||
|
||||
status = mk_rtc_server_start(7764);
|
||||
if (status == 0) {
|
||||
LOG(error) << "mk_rtc_server_start() failed.";
|
||||
}
|
||||
|
||||
m_d->media = mk_media_create("__defaultVhost__", "live", "video", 0, 0, 0);
|
||||
|
||||
|
Reference in New Issue
Block a user