onPlay method
Implementation
void onPlay(void Function(Event) callback) {
if (media != null) {
media?.onPlay.listen(callback);
}
}
void onPlay(void Function(Event) callback) {
if (media != null) {
media?.onPlay.listen(callback);
}
}