HTTPAPIServerStreamPlayer stream player
(c *gin.Context)
| 57 | |
| 58 | //HTTPAPIServerStreamPlayer stream player |
| 59 | func HTTPAPIServerStreamPlayer(c *gin.Context) { |
| 60 | _, all := Config.list() |
| 61 | sort.Strings(all) |
| 62 | c.HTML(http.StatusOK, "player.tmpl", gin.H{ |
| 63 | "port": Config.Server.HTTPPort, |
| 64 | "suuid": c.Param("uuid"), |
| 65 | "suuidMap": all, |
| 66 | "version": time.Now().String(), |
| 67 | }) |
| 68 | } |
| 69 | |
| 70 | //HTTPAPIServerStreamCodec stream codec |
| 71 | func HTTPAPIServerStreamCodec(c *gin.Context) { |