直播:画质可选、只读 /live/info、弹幕 WS 透传;Nginx 弹幕路径
Made-with: Cursor
This commit is contained in:
@@ -77,7 +77,9 @@ type Hub struct {
|
||||
|
||||
publishConn *websocket.Conn
|
||||
pubPC *webrtc.PeerConnection
|
||||
forwarders []*trackForwarder
|
||||
// 开播 WebSocket 上 quality= 参数,供 GET /live/info 只读输出
|
||||
publishQuality string
|
||||
forwarders []*trackForwarder
|
||||
|
||||
viewers map[string]*viewerSession
|
||||
}
|
||||
@@ -128,6 +130,7 @@ func (h *Hub) clearPublisher() {
|
||||
h.pubPC = nil
|
||||
}
|
||||
h.publishConn = nil
|
||||
h.publishQuality = ""
|
||||
}
|
||||
|
||||
func (h *Hub) removeViewer(id string) {
|
||||
|
||||
Reference in New Issue
Block a user