rename ServerConf into Server

This commit is contained in:
aler9
2021-04-25 18:38:46 +02:00
committed by Alessandro Ros
parent c1cd32257f
commit 35705a86ac
10 changed files with 218 additions and 238 deletions

View File

@@ -144,10 +144,12 @@ func handleConn(conn *gortsplib.ServerConn) {
func main() {
// create server
s, err := gortsplib.Serve(":8554")
s := &gortsplib.Server{}
err := s.Serve(":8554")
if err != nil {
panic(err)
}
log.Printf("server is ready")
// accept connections