wang-bin / fvp

Flutter video player plugin for all desktop+mobile platforms. download prebuilt examples from github actions. https://pub.dev/packages/fvp
BSD 3-Clause "New" or "Revised" License
197 stars 31 forks source link

android seek hangs #107

Open abdelaziz-mahdy opened 4 months ago

abdelaziz-mahdy commented 4 months ago

Describe the bug when seeking on android the screen hangs or feels like descyned from audio, but this issue doesnt happen on macos.

is there a better config to use, or this is a bug?

Expected behavior seek should be smooth like macos

Log Add

import 'package:logging/logging.dart';
import 'package:intl/intl.dart';

add the following lines before registerWith()

  Logger.root.level = Level.ALL;
  final df = DateFormat("HH:mm:ss.SSS");
  Logger.root.onRecord.listen((record) {
    print('${record.loggerName}.${record.level.name}: ${df.format(record.time)}: ${record.message}');
  });

and logs https://justpaste.it/foxrc

wang-bin commented 4 months ago

I fix a few cache bugs in the latest mdk, not sure if your bug is fixed. export FVP_DEPS_LATEST=1 and build again

abdelaziz-mahdy commented 4 months ago

its less noticeable but still happens logs: https://justpaste.it/g2671

wang-bin commented 4 months ago

the error is different, cache seems right. what about using FFmpeg decoder?

abdelaziz-mahdy commented 4 months ago

logs for FFmpeg https://justpaste.it/e9k5z

it happens but less

wang-bin commented 4 months ago

I can't see any error in the log. what about disabling cache?

abdelaziz-mahdy commented 4 months ago

i think the hang happens when i seek out of the buffered zone, so thats logical i think? (its cached but not buffered i mean)

also for the error you mentioned is there a way to fix it?

abdelaziz-mahdy commented 2 months ago

new logs, from what i am seeking the sound seeks but the video lags then seeks

like sound plays for a second with video frame not changing https://justpaste.it/c3u6c

in some cases frame is broken, will try to find logs for it (only on android i think will need to be sure)

cant reproduce the broken frame but if it happens again will try to find its logs