onWaiting method

Video onWaiting(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The waiting event is fired when playback has stopped because of a temporary lack of data. Read more...

Implementation

Video onWaiting(Function(Element, Event)? fun) {
  if (fun != null) on.call('waiting', fun);
  return this;
}