tests for expo-camera maxFileSize, frameRate, bitRate?

im looking at the test suite for expo-camera, and the test for maxFileSize doesnt check the filesize of the resulting file.

would it make sense to do something similar to the maxDuration test?

const { size } = await FileSystem.getInfoAsync(video.uri)
t.expect(size).toBeLessThan(...)
t.expect(size).toBeGreaterThan(...)

likewise, would this same pattern be sufficient for adding frameRate and bitRate?
e.g.
record a video for 2 seconds, get the fileSize,
half the frameRate, expect half the fileSize,
half the bitRate, expect half the fileSize

Is there a way to get frameRate / bitRate information directly from the OS?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.