onCanPlay method

Object onCanPlay(
  1. dynamic fun(
    1. Element,
    2. Event
    )?
)

The canplay event is fired when the user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content. Read more...

Implementation

Object onCanPlay(Function(Element, Event)? fun) {
  if (fun != null) on.call('canplay', fun);
  return this;
}