fix: match content frame rate

close #736
This commit is contained in:
edde746
2026-03-22 08:12:16 +01:00
parent 4b05ed79ea
commit 48e57fd375
4 changed files with 80 additions and 19 deletions
@@ -251,6 +251,11 @@ class PlayerAndroid extends PlayerBase {
return (state.duration.inMilliseconds / 1000.0).toString();
case 'seekable':
return state.seekable ? 'yes' : 'no';
// Video frame rate - query from ExoPlayer stats
case 'container-fps':
final fpsStats = await getStats();
final fps = fpsStats['videoFps'];
return fps?.toString();
// Video dimensions - query from ExoPlayer stats
case 'width':
case 'dwidth':