mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
add TrackPCMU
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user