anandnet / flutter_video_info

A flutter plugin to get basic metadatainfo of a video file.
https://pub.dev/packages/flutter_video_info
MIT License
9 stars 25 forks source link

iOS and Android seem to report different times (milliseconds vs. seconds) #10

Closed bkoznov closed 3 years ago

bkoznov commented 3 years ago

In iOS video time is returned in seconds, but in Android is is returned in milliseconds. I think that on iOS it should be converted to milliseconds as well, because in flutter_video_info.dart line 61 and onwards:

// millisecond
  double duration;

  VideoData({
    @required this.path,
    this.title,
    this.author,
    this.mimetype,
    this.date,
    this.location,
    this.framerate,
    this.width,
    this.height,
    this.orientation,
    this.filesize,
    this.duration,
  });
anandnet commented 3 years ago

@bkoznov this has been fixed in new version. thanks for pointing out .