MCPcopy Create free account
hub / github.com/deepch/RTSPtoWebRTC / HTTPAPIServerStreamPlayer

Function HTTPAPIServerStreamPlayer

http.go:59–68  ·  view source on GitHub ↗

HTTPAPIServerStreamPlayer stream player

(c *gin.Context)

Source from the content-addressed store, hash-verified

57
58//HTTPAPIServerStreamPlayer stream player
59func 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
71func HTTPAPIServerStreamCodec(c *gin.Context) {

Callers

nothing calls this directly

Calls 1

listMethod · 0.80

Tested by

no test coverage detected