验证本地http可以查看webrtc.

This commit is contained in:
2025-03-17 20:52:00 +08:00
parent 70763da9b0
commit ee1aaa1bf3
23 changed files with 1131 additions and 39 deletions

View File

@ -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);