chudongvip / awesome_video_player

This is a flutter package of video player. it's a very simple and easy to use.
MIT License
196 stars 36 forks source link

next branch issue #39

Closed MeTubeapp closed 4 years ago

MeTubeapp commented 4 years ago

hey bro i m using ontimeupdate same as master branch in your next branch and this give me error type '(VideoPlayerValue) => Null' is not a subtype of type '(dynamic) => void' Another exception was thrown: type '(VideoPlayerValue) => Null' is not a subtype of type '(dynamic) => void' and my code is ontimeupdate: (value) { print("timeupdate $value"); var position = value.position.inMilliseconds / 1000; print(position); },

MeTubeapp commented 4 years ago

hey bro i got the solution.. now i am using code like this

ontimeupdate: (dynamic value) { print("timeupdate $value"); var position = value.position.inMilliseconds / 1000; print(position); }, now error is gone,,,,