Removed unnecessary ingest file

This commit is contained in:
Muaz Ahmad 2023-08-15 14:28:13 +05:00
parent 881cbe28f8
commit 74ba5931d3
2 changed files with 11 additions and 12 deletions

View file

@ -1,12 +0,0 @@
package main
import "stream_server/rtmp"
func NewIngestServer(srvr_type uint8, port string) (error) {
var err error
switch srvr_type {
case 0:
err = rtmp.NewServer(&port)
}
return err
}

11
main.go
View file

@ -1,5 +1,7 @@
package main package main
import "stream_server/rtmp"
const ( const (
SRVTYPE_RTMP uint8 = iota SRVTYPE_RTMP uint8 = iota
) )
@ -13,3 +15,12 @@ func main() {
for { for {
} }
} }
func NewIngestServer(srvr_type uint8, port string) (error) {
var err error
switch srvr_type {
case 0:
err = rtmp.NewServer(&port)
}
return err
}