mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
client: support publishing with opus
This commit is contained in:
@@ -21,7 +21,7 @@ func main() {
|
||||
}
|
||||
defer pc.Close()
|
||||
|
||||
fmt.Println("Waiting for a RTP/h264 stream on UDP port 9000 - you can send one with Gstreamer:\n" +
|
||||
fmt.Println("Waiting for a RTP/H264 stream on UDP port 9000 - you can send one with Gstreamer:\n" +
|
||||
"gst-launch-1.0 videotestsrc ! video/x-raw,width=1920,height=1080" +
|
||||
" ! x264enc speed-preset=veryfast tune=zerolatency bitrate=600000" +
|
||||
" ! rtph264pay ! udpsink host=127.0.0.1 port=9000")
|
||||
@@ -56,7 +56,7 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// write RTP packets
|
||||
// route RTP packets to the server
|
||||
err = conn.WriteFrame(0, gortsplib.StreamTypeRTP, buf[:n])
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
Reference in New Issue
Block a user