use log.Print instead of fmt.Print in examples

This commit is contained in:
aler9
2022-01-31 18:39:36 +01:00
parent 8251fe3556
commit 79fdb2b7b4
15 changed files with 40 additions and 39 deletions

View File

@@ -1,7 +1,7 @@
package main
import (
"fmt"
"log"
"net"
"time"
@@ -24,7 +24,7 @@ func main() {
}
defer pc.Close()
fmt.Println("Waiting for a rtp/h264 stream on port 9000 - you can send one with gstreamer:\n" +
log.Println("Waiting for a rtp/h264 stream on port 9000 - you can send one with gstreamer:\n" +
"gst-launch-1.0 filesrc location=video.mp4 ! qtdemux ! video/x-h264" +
" ! h264parse config-interval=1 ! rtph264pay ! udpsink host=127.0.0.1 port=9000")
@@ -34,7 +34,7 @@ func main() {
if err != nil {
panic(err)
}
fmt.Println("stream connected")
log.Println("stream connected")
// create an H264 track
track, err := gortsplib.NewTrackH264(96, sps, pps, nil)