AnsweredAssumed Answered

android 5.1系统帧率的修改

Question asked by Gavin bao on May 15, 2018
Latest reply on May 16, 2018 by Bio_TICFSL

我使用MediaProjection 与 VirtualDisplay进行录屏APP的开发,在app设置了 format.setInteger(MediaFormat.KEY_FRAME_RATE, 30); 为30fps,但是在系统的DisplayManagerService 实际显示的一直是60fps,这里要怎么修改成别的帧率呢:

I/DisplayManagerService(  425): Display device added: DisplayDeviceInfo{"ScreenCapture": uniqueId="virtual:com.example.android.screencapture,10020,ScreenCapture,0", 363 x 497, 60.0 fps, supportedRefreshRates [60.0], density 213, 213.0 x 213.0 dpi, appVsyncOff 0, presDeadline 16666666, touch NONE, rotation 0, type VIRTUAL, state ON, owner com.example.android.screencapture (uid 10020), FLAG_PRIVATE, FLAG_PRESENTATION}

Outcomes