Older/Server/MediaServer.cpp

12 lines
312 B
C++
Raw Normal View History

2024-09-22 23:55:25 +08:00
#include "MediaServer.h"
#include "BoostLog.h"
#include <mk_media.h>
MediaServer::MediaServer() {
uint16_t status = mk_rtsp_server_start(554, 0);
if (status == 0) {
LOG(info) << "rtsp server start failed.";
} else {
LOG(info) << "rtsp server start succeed, port: " << status;
}
}