flutter_video_compress icon indicating copy to clipboard operation
flutter_video_compress copied to clipboard

[Bug] Fatal error: Unexpectedly found nil while unwrapping an Optional value

Open native-app opened this issue 5 years ago • 2 comments

On iOS when tryin getThumbnail() on .quicktime or .mkv app crash with error Fatal error: Unexpectedly found nil while unwrapping an Optional value (file AvController.swift, func getTrack(_ asset: AVURLAsset)->AVAssetTrack? {})

also app crash if path doesnt exist(

native-app avatar Jul 05 '19 15:07 native-app

.quicktime or .mkv video formats are not currently supported. Ios native does not support such a video format. I will use FFmpeg to help development in subsequent versions. I'm very sorry.

rurico avatar Jul 06 '19 02:07 rurico

Hi @rurico

Are you using the file extension to deduce how to get the thumbnail? This question is because I'm using the cache path to save the video and it has no extension, and the getThumbnail in iOS never return from future callback or it crashes with this error. I'm using the Simulator, I don't know if this is the cause of not working.

BR.

isaacfi avatar Feb 22 '21 20:02 isaacfi