mirror of https://github.com/stashapp/stash.git
Better support for Samsung SmartTV for built-in DLNA server (#4784)
This commit is contained in:
parent
9cc26f7b75
commit
1cee1ccfe2
|
@ -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()
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue