Code Monkey home page Code Monkey logo

Comments (9)

JiangJuHong avatar JiangJuHong commented on July 20, 2024

你是否有查看他们类型是否一致,都是mp4或其中包含一个 jpg 图像信息

from fluttertencentimplugin.

yuefeng007 avatar yuefeng007 commented on July 20, 2024

是的,我上传的视频是mp4。缩略图是png的
其中三个参数是暂时写死的 还没有找到合适的方法 去取这些数据来兼容 ios 和android
顺便请教一下作者 是否有插件推荐
snapshotWidth:《640》
snapshotHeight《360》
duration:《10》

上传时参数如下:

path:《 /storage/emulated/0/DCIM/Camera/VID20200303204557.mp4》
type:《mp4》
snapshotPath:《/storage/emulated/0/DCIM/Screenshots/Screenshot_2020-03-12-18-50-55-54.png》
snapshotWidth:《640》
snapshotHeight《360》
duration:《10》

from fluttertencentimplugin.

JiangJuHong avatar JiangJuHong commented on July 20, 2024

他们使用的时候,缩略图当做封面即可。

from fluttertencentimplugin.

yuefeng007 avatar yuefeng007 commented on July 20, 2024

现在我主要的困惑是 ,得到的这个路径《/storage/emulated/0/Android/data/*包名不可见/files/Pictures》 缩略图 和视频的地址是一样的,我比较疑问 正确返回就是这样的吗?
另外 我直接只用返回的路径给播放器 ,播放器是不能正常工作的
直接使用 VideoPlayer插件的 如下方法 是不能播放的

VideoPlayerController.file(File(widget.filePath))..initialize().then((_) {
        _controller.play();
        _controller.setLooping(true);
        setState(() {});
      });

from fluttertencentimplugin.

JiangJuHong avatar JiangJuHong commented on July 20, 2024

近期我会在Demo增加视频预览,供你参考

from fluttertencentimplugin.

yuefeng007 avatar yuefeng007 commented on July 20, 2024

感谢作者

from fluttertencentimplugin.

yuefeng007 avatar yuefeng007 commented on July 20, 2024

大佬,我搞明白了,方法返回的路径是可以直接用的,之前播放器无法正常工作是因为我的网络不好,视频没有下载完成。另外我想问个问题。是所有的视频都会主动下载吗,如果比较大的视频文件是否需要用户主动触发下载方法。方便的话可以和我说下大概思路吗

from fluttertencentimplugin.

yuefeng007 avatar yuefeng007 commented on July 20, 2024

还有就是上载/下载进度和结果这块是否有方法监听

from fluttertencentimplugin.

JiangJuHong avatar JiangJuHong commented on July 20, 2024

from fluttertencentimplugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.