android 5.1系统帧率的修改

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

android 5.1系统帧率的修改

1,209 Views
gavinbao
Contributor I

我使用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}

Labels (1)
0 Kudos
1 Reply

526 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Gavin,

Your file somewhere in i/DISPLAYManager changing, try to reduce the fps. now, the video is really at 60hz?

0 Kudos