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
191 stars 31 forks source link

seek waits for a while before pausing and update the position stream #176

Open abdelaziz-mahdy opened 1 week ago

abdelaziz-mahdy commented 1 week ago

Describe the bug the seek doesnt pause the video,

i seek (outside of the buffered range) the video keeps playing

then it decides to seek and buffer

and that delay is random

Expected behavior seek the video pauses until it gets buffered in the seeked position

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}');
  });

Logs: https://justpaste.it/hpf7r

wang-bin commented 1 week ago

same as #160 i guess

abdelaziz-mahdy commented 1 week ago

So it's a bug in mdk?

wang-bin commented 1 week ago

yes

abdelaziz-mahdy commented 1 week ago

I would love to help with it but I don't know how, so I will most probably wait 😢