flutter_video_compress
flutter_video_compress copied to clipboard
[Bug] Fatal error: Unexpectedly found nil while unwrapping an Optional value
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(
.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.
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.