Removed unnecessary ingest file
This commit is contained in:
parent
881cbe28f8
commit
74ba5931d3
2 changed files with 11 additions and 12 deletions
12
ingest.go
12
ingest.go
|
@ -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
11
main.go
|
@ -1,5 +1,7 @@
|
|||
package main
|
||||
|
||||
import "stream_server/rtmp"
|
||||
|
||||
const (
|
||||
SRVTYPE_RTMP uint8 = iota
|
||||
)
|
||||
|
@ -13,3 +15,12 @@ func main() {
|
|||
for {
|
||||
}
|
||||
}
|
||||
|
||||
func NewIngestServer(srvr_type uint8, port string) (error) {
|
||||
var err error
|
||||
switch srvr_type {
|
||||
case 0:
|
||||
err = rtmp.NewServer(&port)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue