mirror of
https://github.com/m1k1o/neko.git
synced 2025-07-23 19:49:02 +02:00
lazy screencast.
This commit is contained in:
parent
75393905e8
commit
fdd98377b3
5 changed files with 83 additions and 30 deletions
|
@ -103,7 +103,12 @@ func (h *RoomHandler) screenCastGet(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
bytes := screencast.Image()
|
||||
bytes, err := screencast.Image()
|
||||
if err != nil {
|
||||
utils.HttpInternalServerError(w, err)
|
||||
return
|
||||
}
|
||||
|
||||
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
|
||||
w.Header().Set("Content-Type", "image/jpeg")
|
||||
w.Write(bytes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue