Open renshaojuncool opened 1 year ago
RTSPtoWeb $go run *.go
INFO[2022-09-17T11:32:43+08:00] Server CORE start func=main module=main
INFO[2022-09-17T11:32:43+08:00] Server HTTP start call=Start func=RTSPServer module=http_server
INFO[2022-09-17T11:32:43+08:00] Server RTSP start call=Start func=RTSPServer module=rtsp_server
INFO[2022-09-17T11:32:43+08:00] Server start success a wait signals func=main module=main
INFO[2022-09-17T11:32:43+08:00] Run stream call=Run channel=0 func=StreamServerRunStreamDo module=core stream=27aec28e-6181-4753-9acd-0456a75f0289
INFO[2022-09-17T11:32:45+08:00] Success connection RTSP call=Start channel=0 func=StreamServerRunStream module=core stream=27aec28e-6181-4753-9acd-0456a75f0289
2022/09/17 11:33:06 Set ICEServers [stun:stun.l.google.com:19302]
app $./app
INFO[2022-09-17T11:39:37+08:00] Server CORE start func=main module=main
INFO[2022-09-17T11:39:37+08:00] Server RTSP start call=Start func=RTSPServer module=rtsp_server
INFO[2022-09-17T11:39:37+08:00] Server HTTP start call=Start func=RTSPServer module=http_server
INFO[2022-09-17T11:39:37+08:00] Server start success a wait signals func=main module=main
INFO[2022-09-17T11:39:37+08:00] Run stream call=Run channel=0 func=StreamServerRunStreamDo module=core stream=27aec28e-6181-4753-9acd-0456a75f0289
INFO[2022-09-17T11:39:39+08:00] Success connection RTSP call=Start channel=0 func=StreamServerRunStream module=core stream=27aec28e-6181-4753-9acd-0456a75f0289
2022/09/17 11:39:57 Set ICEServers [stun:stun.l.google.com:19302]
2022/09/17 11:40:18 Set ICEServers [stun:stun.l.google.com:19302]
ERRO[2022-09-17T11:40:27+08:00] WebRTC Client Offline call=WritePacket channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=27aec28e-6181-4753-9acd-0456a75f0289
clone code from the github, do nothing just get go mod,
go run *.go
and open chrome, i can whatch video(hls, rtsp to webrtc),but when igo build -o ./app
and./app
, video is not ok (hls is ok, rtsp to webrtc is not work)i just want to konw, why
go run
is ok, butgo build
is not ok. (i've copied config file into directory), thx