timeUpdated method

  1. @override
Future<void> timeUpdated(
  1. double seconds
)
override

Called when the playback position of the underlying HTML5 player changes.

Implementation

@override
Future<void> timeUpdated(double seconds) async {
  if (end != null) {
    if (seconds >= end!.inMilliseconds / 1000) {
      _interruptPlay(ClipInterruptReason.end);
    }
  }
}