Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaInfo duration is integer not double #68

Open
hyobbb opened this issue Nov 3, 2020 · 0 comments
Open

MediaInfo duration is integer not double #68

hyobbb opened this issue Nov 3, 2020 · 0 comments

Comments

@hyobbb
Copy link

hyobbb commented Nov 3, 2020

Hi. I am using video_compress: ^2.1.0 and on running "compressVideo" function it returns MediaInfo instance.

class MediaInfo {
  String path;
  String title;
  String author;
  int width;
  int height;

  /// [Android] API level 17
  int orientation;

  /// bytes
  int filesize; // filesize
  /// microsecond
  double duration;
  bool isCancel;
  File file;

  MediaInfo({
    @required this.path,
    this.title,
    this.author,
    this.width,
    this.height,
    this.orientation,
    this.filesize,
    this.duration,
    this.isCancel,
    this.file,
  });

in this class it says that it returns duration as double/microsecond
but when I upload the video on firebase parsing those data it seems that it returns duration as integer with millisecond unit.
could you check if is it a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant