nextplayer icon indicating copy to clipboard operation
nextplayer copied to clipboard

[FEATURE] Support refresh rate change

Open markg85 opened this issue 1 year ago • 2 comments

Hi,

In Android you can request a frame rate change: https://developer.android.com/media/optimize/performance/frame-rate Currently NextPlayer isn't doing this, my framerate is fixed at 60.

For optimal video playback it's ideal to match the display framerate to the video framerate. You need to set this on the Surface object (or a derivative of it) with setFrameRate

I did have a look in the code and it seems you should be doing that in PlayerActivity.kt around the lines where you attach a view to the player. But i could not find how you'd get the frame rate from a file to even set. You probably know this right on the top of your head :)

Best regards, Mark

markg85 avatar May 17 '24 17:05 markg85