keyframe fixes and manually allow users to refresh keyframes if shit gets all fucked up
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
|
||||
"overlord-client/cmd/agent/config"
|
||||
rt "overlord-client/cmd/agent/runtime"
|
||||
"overlord-client/cmd/agent/webrtcpub"
|
||||
"overlord-client/cmd/agent/wire"
|
||||
|
||||
"github.com/vmihailenco/msgpack/v5"
|
||||
@@ -476,3 +477,13 @@ func TestSetFrameFlowTargetFPSEnvOverride(t *testing.T) {
|
||||
t.Fatalf("expected env slot limit 12, got %d", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRequestDesktopFullFrameRequestsWebRTCKeyframe(t *testing.T) {
|
||||
_ = webrtcpub.ConsumeKeyframeRequest()
|
||||
|
||||
RequestDesktopFullFrame()
|
||||
|
||||
if !webrtcpub.ConsumeKeyframeRequest() {
|
||||
t.Fatal("expected desktop full-frame request to force the next WebRTC video frame to be a keyframe")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user