Change trace log for stream.mp4
This commit is contained in:
+2
-2
@@ -63,12 +63,12 @@ func handlerKeyframe(w http.ResponseWriter, r *http.Request) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func handlerMP4(w http.ResponseWriter, r *http.Request) {
|
func handlerMP4(w http.ResponseWriter, r *http.Request) {
|
||||||
|
log.Trace().Msgf("[api.mp4] %s %+v", r.Method, r.Header)
|
||||||
|
|
||||||
if isChromeFirst(w, r) || isSafari(w, r) {
|
if isChromeFirst(w, r) || isSafari(w, r) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Trace().Msgf("[api.mp4] %+v", r)
|
|
||||||
|
|
||||||
src := r.URL.Query().Get("src")
|
src := r.URL.Query().Get("src")
|
||||||
stream := streams.GetOrNew(src)
|
stream := streams.GetOrNew(src)
|
||||||
if stream == nil {
|
if stream == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user