fix(android): stop forcing mpv display sync

This commit is contained in:
edde746
2026-05-06 06:19:18 +02:00
parent 1f09c07e96
commit 07d25f5d5f
2 changed files with 0 additions and 14 deletions
@@ -48,13 +48,6 @@ extension _VideoPlayerDisplayMatchingMethods on VideoPlayerScreenState {
final didSwitch = await player!.setVideoFrameRate(fps, durationMs, extraDelayMs: delaySec * 1000);
// Set MPV video-sync mode for smoother playback when display is synced
try {
await player!.setProperty('video-sync', 'display-tempo');
} catch (e) {
appLogger.d('video-sync property unsupported', error: e);
}
if (mounted && player != null) {
await player!.play();
}
@@ -79,7 +72,6 @@ extension _VideoPlayerDisplayMatchingMethods on VideoPlayerScreenState {
try {
await player!.clearVideoFrameRate();
await player!.setProperty('video-sync', 'audio');
unawaited(Sentry.addBreadcrumb(Breadcrumb(message: 'Frame rate matching cleared', category: 'player')));
appLogger.d('Frame rate matching: Cleared, restored default display mode');
} catch (e) {
@@ -378,12 +378,6 @@ extension _VideoPlayerPlaybackStartMethods on VideoPlayerScreenState {
bool didSwitch = false;
try {
didSwitch = await player!.setVideoFrameRate(preKnownFps, durationMs, extraDelayMs: delaySec * 1000);
// MPV video-sync tuning (no-op on ExoPlayer).
try {
await player!.setProperty('video-sync', 'display-tempo');
} catch (e) {
appLogger.d('video-sync property unsupported on this player', error: e);
}
} catch (e) {
appLogger.w('Failed to apply pre-playback frame rate matching', error: e);
}