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