@@ -5,7 +5,7 @@ const { clientSettings, events, getUserMedia, registrySet, save, startScreencast
55 vi . hoisted ( ( ) => {
66 const events : string [ ] = [ ] ;
77 return {
8- clientSettings : { browserRecordingFrameRate : 60 as 30 | 60 } ,
8+ clientSettings : { browserRecordingFrameRate : 30 as 30 | 60 } ,
99 events,
1010 getUserMedia : vi . fn ( ) ,
1111 registrySet : vi . fn ( ( _atom : unknown , value : { readonly tabIds : ReadonlySet < string > } ) => {
@@ -112,7 +112,7 @@ describe("browser recording", () => {
112112 FakeMediaRecorder . supportedTypes = new Set ( [ "video/webm;codecs=vp9" ] ) ;
113113 FakeMediaRecorder . outputMimeType = undefined ;
114114 FakeMediaRecorder . stopError = undefined ;
115- clientSettings . browserRecordingFrameRate = 60 ;
115+ clientSettings . browserRecordingFrameRate = 30 ;
116116 animationFrameCount = 0 ;
117117 vi . stubGlobal ( "window" , globalThis ) ;
118118 vi . stubGlobal ( "requestAnimationFrame" , ( callback : FrameRequestCallback ) => {
@@ -195,7 +195,7 @@ describe("browser recording", () => {
195195 maxWidth : 1000 ,
196196 minHeight : 620 ,
197197 maxHeight : 620 ,
198- maxFrameRate : 60 ,
198+ maxFrameRate : 30 ,
199199 } ,
200200 } ,
201201 } ) ;
@@ -206,14 +206,14 @@ describe("browser recording", () => {
206206 } ) ;
207207
208208 it ( "uses the configured recording frame rate" , async ( ) => {
209- clientSettings . browserRecordingFrameRate = 30 ;
209+ clientSettings . browserRecordingFrameRate = 60 ;
210210
211211 await startBrowserRecording ( "recording-tab" ) ;
212212
213213 expect ( getUserMedia ) . toHaveBeenCalledWith ( {
214214 audio : false ,
215215 video : {
216- mandatory : expect . objectContaining ( { maxFrameRate : 30 } ) ,
216+ mandatory : expect . objectContaining ( { maxFrameRate : 60 } ) ,
217217 } ,
218218 } ) ;
219219 await stopBrowserRecording ( "recording-tab" ) ;
0 commit comments