diff --git a/.gitmodules b/.gitmodules index 4133502..761c84c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,27 @@ [submodule "docs"] path = docs url = https://github.com/Monibuca/docs +[submodule "plugins/rtmp"] + path = plugins/rtmp + url = https://github.com/Monibuca/rtmpplugin +[submodule "plugins/hls"] + path = plugins/hls + url = https://github.com/Monibuca/hlsplugin +[submodule "plugins/hdl"] + path = plugins/hdl + url = https://github.com/Monibuca/hdlplugin +[submodule "plugins/record"] + path = plugins/record + url = https://github.com/Monibuca/recordplugin +[submodule "plugins/jessica"] + path = plugins/jessica + url = https://github.com/Monibuca/jessicaplugin +[submodule "plugins/logrotate"] + path = plugins/logrotate + url = https://github.com/Monibuca/logrotateplugin +[submodule "plugins/cluster"] + path = plugins/cluster + url = https://github.com/Monibuca/clusterplugin +[submodule "plugins/gateway"] + path = plugins/gateway + url = https://github.com/Monibuca/gatewayplugin diff --git a/README.md b/README.md index 46cc356..61e8c62 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ 4. 实例管理器 github.com/Monibuca/monica 5. 其他插件项目 都在github.com/Monibuca下带有plugin后缀的库 +本项目已改为开箱即用的实例demo,直接运行go run main.go 即可启动一个流媒体服务器 + # 简介 [Monibuca](https://monibuca.com) 是一个开源的流媒体服务器开发框架,适用于快速定制化开发流媒体服务器,可以对接CDN厂商,作为回源服务器,也可以自己搭建集群部署环境。 丰富的内置插件提供了流媒体服务器的常见功能,例如rtmp server、http-flv、视频录制、QoS等。除此以外还内置了后台web界面,方便观察服务器运行的状态。 也可以自己开发后台管理界面,通过api方式获取服务器的运行信息。 Monibuca 提供了可供定制化开发的插件机制,可以任意扩展其功能。 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..aff49c2 --- /dev/null +++ b/config.toml @@ -0,0 +1,17 @@ +[RTMP] +ListenAddr = ":1935" +[GateWay] +ListenAddr = ":8081" +[Jessica] +ListenAddr = ":8080" +[LogRotate] +Path = "logs" +[Cluster] +ListenAddr = ":2019" +[TS] +Path = "resource" +[Record] +Path = "resource" +[RTSP] +AutoPublish = true +RtspURL = "rtsp://localhost/test" \ No newline at end of file diff --git a/main.go b/main.go new file mode 100644 index 0000000..71c9afa --- /dev/null +++ b/main.go @@ -0,0 +1,17 @@ +package main + +import ( + _ "github.com/Monibuca/clusterplugin" + . "github.com/Monibuca/engine" + _ "github.com/Monibuca/gatewayplugin" + _ "github.com/Monibuca/jessicaplugin" + _ "github.com/Monibuca/logrotateplugin" + _ "github.com/Monibuca/recordplugin" + _ "github.com/Monibuca/rtmpplugin" + _ "github.com/Monibuca/rtspplugin" +) + +func main() { + Run("config.toml") + select {} +} \ No newline at end of file diff --git a/plugins/cluster b/plugins/cluster new file mode 160000 index 0000000..129d279 --- /dev/null +++ b/plugins/cluster @@ -0,0 +1 @@ +Subproject commit 129d279ca9c4c45cf8ffbfdfd89114f8eafe5b64 diff --git a/plugins/gateway b/plugins/gateway new file mode 160000 index 0000000..602c98e --- /dev/null +++ b/plugins/gateway @@ -0,0 +1 @@ +Subproject commit 602c98e904120b5ffb01345d21ec19b49f2bf362 diff --git a/plugins/hdl b/plugins/hdl new file mode 160000 index 0000000..86763b9 --- /dev/null +++ b/plugins/hdl @@ -0,0 +1 @@ +Subproject commit 86763b980476d708cec06a040be3a90695972d15 diff --git a/plugins/hls b/plugins/hls new file mode 160000 index 0000000..f5454d1 --- /dev/null +++ b/plugins/hls @@ -0,0 +1 @@ +Subproject commit f5454d1db7ab4aa8b7c56fd582efae322c4f4f11 diff --git a/plugins/jessica b/plugins/jessica new file mode 160000 index 0000000..764d2c8 --- /dev/null +++ b/plugins/jessica @@ -0,0 +1 @@ +Subproject commit 764d2c8ad3318fa21848ef210bcb1f951c88fcc8 diff --git a/plugins/logrotate b/plugins/logrotate new file mode 160000 index 0000000..b26164d --- /dev/null +++ b/plugins/logrotate @@ -0,0 +1 @@ +Subproject commit b26164d21248565eb7dbaa8c82e28b18b2678407 diff --git a/plugins/record b/plugins/record new file mode 160000 index 0000000..1996035 --- /dev/null +++ b/plugins/record @@ -0,0 +1 @@ +Subproject commit 1996035ea97f0f439913b9f627bbda73c93fddbc diff --git a/plugins/rtmp b/plugins/rtmp new file mode 160000 index 0000000..2e3b40d --- /dev/null +++ b/plugins/rtmp @@ -0,0 +1 @@ +Subproject commit 2e3b40de36d4885e804bfa0ff89d515343f8f123 diff --git a/shutdown.bat b/shutdown.bat new file mode 100644 index 0000000..1c81a52 --- /dev/null +++ b/shutdown.bat @@ -0,0 +1 @@ +taskkill /pid 19960 -t -f \ No newline at end of file