mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
server: move address into Server struct
This commit is contained in:
@@ -149,6 +149,7 @@ func main() {
|
||||
// configure server
|
||||
s := &gortsplib.Server{
|
||||
Handler: &serverHandler{},
|
||||
RTSPAddress: ":8554",
|
||||
UDPRTPAddress: ":8000",
|
||||
UDPRTCPAddress: ":8001",
|
||||
MulticastIPRange: "224.1.0.0/16",
|
||||
@@ -158,5 +159,5 @@ func main() {
|
||||
|
||||
// start server and wait until a fatal error
|
||||
log.Printf("server is ready")
|
||||
panic(s.StartAndWait(":8554"))
|
||||
panic(s.StartAndWait())
|
||||
}
|
||||
|
Reference in New Issue
Block a user