add TrackPCMU

This commit is contained in:
aler9
2022-03-15 11:51:58 +01:00
parent bf74ea8ec7
commit 0ba73bacab
9 changed files with 188 additions and 34 deletions

View File

@@ -23,8 +23,7 @@ func main() {
log.Println("Waiting for a RTP/Opus stream on UDP port 9000 - you can send one with GStreamer:\n" +
"gst-launch-1.0 audiotestsrc freq=300 ! audioconvert ! audioresample ! audio/x-raw,rate=48000" +
" ! opusenc" +
" ! rtpopuspay ! udpsink host=127.0.0.1 port=9000")
" ! opusenc ! rtpopuspay ! udpsink host=127.0.0.1 port=9000")
// wait for first packet
buf := make([]byte, 2048)