1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-27 16:52:06 +02:00

Create audio transcoder

This commit is contained in:
Yohann D'ANELLO
2020-10-18 21:46:36 +02:00
parent b5aac93c97
commit 20776d897c
5 changed files with 147 additions and 1 deletions

View File

@ -51,6 +51,8 @@ func ingest(name string, input *stream.Stream) {
input.Register(videoInput)
activeStream[name] = struct{}{}
// TODO Register to all substreams and make RTP packets. Don't transcode in this package.
// Open a UDP Listener for RTP Packets on port 5004
videoListener, err := net.ListenUDP("udp", &net.UDPAddr{IP: net.ParseIP("127.0.0.1"), Port: 5004})
if err != nil {