diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 89f699f..7be9011 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -5,7 +5,8 @@ "includePath": [ "${workspaceFolder}/**", "${workspaceFolder}/build/_deps/kylin-src/Universal", - "/opt/Libraries/boost_1_85_0/include" + "/opt/Libraries/boost_1_86_0/include", + "/opt/Libraries/ZLMediaKit/include" ], "defines": [], "compilerPath": "/usr/bin/gcc", diff --git a/Server/MediaServer.cpp b/Server/MediaServer.cpp new file mode 100644 index 0000000..cfba85b --- /dev/null +++ b/Server/MediaServer.cpp @@ -0,0 +1,12 @@ +#include "MediaServer.h" +#include "BoostLog.h" +#include + +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; + } +} \ No newline at end of file diff --git a/Server/MediaServer.h b/Server/MediaServer.h new file mode 100644 index 0000000..b4537f0 --- /dev/null +++ b/Server/MediaServer.h @@ -0,0 +1,9 @@ +#ifndef __MEDIASERVER_H__ +#define __MEDIASERVER_H__ + +class MediaServer { +public: + MediaServer(); +}; + +#endif // __MEDIASERVER_H__ \ No newline at end of file diff --git a/resource/build.sh b/resource/build.sh index c96ce63..984b29c 100755 --- a/resource/build.sh +++ b/resource/build.sh @@ -17,7 +17,7 @@ function cmake_scan() { fi ${cmake_exe} -G Ninja -S ${base_path} -B ${build_path} \ -DCMAKE_BUILD_TYPE=Debug \ - -DBOOST_ROOT=${libraries_root}/boost_1_85_0 + -DBOOST_ROOT=${libraries_root}/boost_1_86_0 } function build() {