1 Star 0 Fork 0

irishcoffeeguo/RTSPtoWebRTC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 374 Bytes
一键复制 编辑 原始数据 按行查看 历史
Andrey Semochkin 提交于 2020-02-07 06:55 . update
package main
import (
"log"
"os"
"os/signal"
"syscall"
)
func main() {
go serveHTTP()
go serveStreams()
sigs := make(chan os.Signal, 1)
done := make(chan bool, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
go func() {
sig := <-sigs
log.Println(sig)
done <- true
}()
log.Println("Server Start Awaiting Signal")
<-done
log.Println("Exiting")
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/irishcoffeeguo/RTSPtoWebRTC.git
git@gitee.com:irishcoffeeguo/RTSPtoWebRTC.git
irishcoffeeguo
RTSPtoWebRTC
RTSPtoWebRTC
master

搜索帮助