Comments (9)
你是否有查看他们类型是否一致,都是mp4或其中包含一个 jpg 图像信息
from fluttertencentimplugin.
是的,我上传的视频是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.
他们使用的时候,缩略图当做封面即可。
from fluttertencentimplugin.
现在我主要的困惑是 ,得到的这个路径《/storage/emulated/0/Android/data/*包名不可见/files/Pictures》 缩略图 和视频的地址是一样的,我比较疑问 正确返回就是这样的吗?
另外 我直接只用返回的路径给播放器 ,播放器是不能正常工作的
直接使用 VideoPlayer插件的 如下方法 是不能播放的
VideoPlayerController.file(File(widget.filePath))..initialize().then((_) {
_controller.play();
_controller.setLooping(true);
setState(() {});
});
from fluttertencentimplugin.
近期我会在Demo增加视频预览,供你参考
from fluttertencentimplugin.
感谢作者
from fluttertencentimplugin.
大佬,我搞明白了,方法返回的路径是可以直接用的,之前播放器无法正常工作是因为我的网络不好,视频没有下载完成。另外我想问个问题。是所有的视频都会主动下载吗,如果比较大的视频文件是否需要用户主动触发下载方法。方便的话可以和我说下大概思路吗
from fluttertencentimplugin.
还有就是上载/下载进度和结果这块是否有方法监听
from fluttertencentimplugin.
from fluttertencentimplugin.
Related Issues (20)
- android release包闪退 HOT 8
- 请问下新版的群简介怎么拿到,之前的版本会话列表中可以取到群简介 HOT 1
- 大佬能不能顺便也支持一下web HOT 2
- android createGroup 返回的groupID有非法字符 " HOT 2
- ios setGroupInfo必须指定全部字段,否则其他字段会被清空(android没这个问题) HOT 4
- 似乎是跟flutter_sound插件的依赖版本起冲突,请问该如何解决? HOT 4
- ios编译报错 HOT 1
- 请问直接关闭App的时候有办法让IM执行退出登录操作吗? HOT 1
- 如何更新本地的IM用户的信息呢? HOT 5
- Swift里的JsonUtil无法解析特殊字符 HOT 6
- flutter2.5.3 ios运行模拟器报错 HOT 16
- 可以支持下 insertC2CMessageToLocalStorage 这个方法嘛? HOT 2
- 发送失败后,调用resendMessage接口,并不能改变消息的发送状态status(依旧为MessageStatusEnum.SendFail) HOT 1
- ios 调用sendMessage 时 真机闪退 HOT 11
- 消息发送是否支持CloudCustomData HOT 9
- 麻烦添加一下x64支持 HOT 1
- 安卓机在进行会话监听时闪退 HOT 23
- `TencentImPlugin.setSelfInfo` 不生效或失败, 导致该用户聊天时获取到的`faceUrl`为null 或 不更新是旧头像, 但是试了腾讯官方的demo, 没有该问题 HOT 6
- DeviceToken
- 通过ref引入编译失败 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluttertencentimplugin.