rename all instances of "hvnc" to "backstage"
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user