callBackWhenVideoTimeUpdate method
Implementation
void callBackWhenVideoTimeUpdate({
required Function(double currentTime)? onVideoTimeUpdate,
}) {
controller.addJavaScriptHandler(
handlerName: 'onVideoTimeUpdate',
callback: (args) {
final currentTime = args.first as double;
onVideoTimeUpdate?.call(currentTime);
return null;
},
);
}