Better support for Samsung SmartTV for built-in DLNA server (#4784)

This commit is contained in:
Serge Levin 2024-05-09 02:16:21 +03:00 committed by GitHub
parent 9cc26f7b75
commit 1cee1ccfe2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,6 @@ func sceneToContainer(scene *models.Scene, parent string, host string) interface
Path: iconPath,
RawQuery: url.Values{
"scene": {strconv.Itoa(scene.ID)},
"c": {"jpeg"},
}.Encode(),
}).String()

View File

@ -595,6 +595,8 @@ func (me *Server) initMux(mux *http.ServeMux) {
return
}
w.Header().Set("transferMode.dlna.org", "Streaming")
w.Header().Set("contentFeatures.dlna.org", "DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000")
me.sceneServer.StreamSceneDirect(scene, w, r)
})
mux.HandleFunc(rootDescPath, func(w http.ResponseWriter, r *http.Request) {