最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

dart - How do I fix the aspect ratio issue with the video_editor package in Flutter? - Stack Overflow

programmeradmin1浏览0评论

I'm developing a Flutter application using the video_editor package (version ^3.0.0) for video editing. However, when I send a video to the playback screen, it displays with an incorrect aspect ratio—it appears zoomed in or otherwise distorted—compared to other video players which render it correctly.

Below is a simplified snippet of my code that checks if the video editor controller is initialized and then shows the video preview:

The image of issue In the other video player

if (provider.isReinitializing ||
    provider.videoEditorController == null ||
    !(provider.videoEditorController?.initialized ?? false)) {
  return const Center(
    child: CircularProgressIndicator(),
  );
}

Widget videoPreview = CropGridViewer.preview(
  controller: provider.videoEditorController!,
); 
发布评论

评论列表(0)

  1. 暂无评论