mirror of
https://github.com/AlexxIT/go2rtc.git
synced 2025-10-05 08:16:55 +08:00
20 lines
345 B
Go
20 lines
345 B
Go
package mp4
|
|
|
|
import "github.com/AlexxIT/go2rtc/pkg/core"
|
|
|
|
// ParseQuery - like usual parse, but with mp4 param handler
|
|
func ParseQuery(query map[string][]string) []*core.Media {
|
|
if query["mp4"] != nil {
|
|
cons := Consumer{}
|
|
return cons.GetMedias()
|
|
}
|
|
|
|
return core.ParseQuery(query)
|
|
}
|
|
|
|
const (
|
|
waitNone byte = iota
|
|
waitKeyframe
|
|
waitInit
|
|
)
|