sbis04 / video_trimmer

Flutter video trimmer package
https://pub.dev/packages/video_trimmer
MIT License
441 stars 272 forks source link

when I load a video , flutter push me weird screen not trimmerScreen #79

Closed yoonjiyong closed 3 years ago

yoonjiyong commented 3 years ago

okay Im trying my best to explain this.

i used to use this trimmer package very well but in iOS some weird situation happens

  1. I click gallery button clickGallery

  2. choose video from gallery chooseVideo

  3. Here comes weird screen I never make this one [ IOS ] - I don't know where it comes from

playingVideo

[ ANDROID ] - I expect this and made this screen photo_2020-12-29 17 09 31

  1. if I choose select button it compresses compressing

  2. after compressing is done, my phone lost connection

I have no idea what do i have to do.

here's my code

DIALOG `final picker = ImagePicker();

PickedFile file = await picker.getVideo( source: ImageSource.gallery, );

if (file != null) { await _trimmer.loadVideo(videoFile: File(file.path)); Navigator.of(context).push(MaterialPageRoute(builder: (context) { return TrimVideoScreen(trimmer: _trimmer); })); }`

Flutter doctor ` [✓] Flutter (Channel stable, 1.22.4, on macOS 11.0.1 20B50 darwin-x64, locale ko-KR)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 12.2) [!] Android Studio (version 4.1) ✗ Flutter plugin not installed; this adds Flutter specific functionality. ✗ Dart plugin not installed; this adds Dart specific functionality. [✓] Connected device (2 available)

don't know why Flutter , dart plugin warning , cuz it installed well `

sbis04 commented 3 years ago

This is a known issue. I have used the image_picker plugin in the example app of this package, it already has an issue open related to this: https://github.com/flutter/flutter/issues/24954

iOS does compression of some kind before letting you modify the selected video by default.

sbis04 commented 3 years ago

I have updated the example app using file_picker package (instead of image_picker), which allows skipping the iOS video compression screen.

Check out the version 0.3.5: #81

yoonjiyong commented 3 years ago

you rock 🤟