Comments (6)
how can we fix the image gets stuck on the screen when the video ends?
you can make the video position to zero.
like this:
/// 视频初始化完成回调
oninit: (controller) {
print("video oninit");
if (controller == null) {
controller = controller;
}
},
/// 视频播放回调
onplay: (value) {
print("video played");
},
/// 视频暂停回调
onpause: (value) {
print("video paused");
},
/// 视频播放结束回调
onended: (value) {
print("video ended");
controller.seekTo(Duration(seconds: 0));
},
from awesome_video_player.
onended: (value) {
print("video ended");
controller.seekTo(Duration(seconds: 0));
},
controller.seekTo(Duration(seconds: 0));
there is a problem
from awesome_video_player.
onended: (value) {
print("video ended");
controller.seekTo(Duration(seconds: 0));
},controller.seekTo(Duration(seconds: 0));
there is a problem
Did you create the variable controller
on this page?
from awesome_video_player.
no I could not find?
from awesome_video_player.
no I could not find?
you can find it in the onint
callback.
from awesome_video_player.
no I could not find?
you can find it in the
onint
callback.
It gets 0 okay but it doesn't work for me. The video size changes as soon as the video ends. I want to make BoxFit.contain. While watching the video, it should be the same size as it ends. When the video is over, the duration of the video and whatever time it is found should write.
from awesome_video_player.
Related Issues (20)
- How to play local video on phone storage
- 是否支持试看一分钟功能 HOT 1
- 能否增加个亮度调节的配置项 HOT 1
- Task 'assembleAarRelease' not found in root project 'awsome_video_player' on build release HOT 1
- 请问支持ios吗? HOT 1
- 手机拍摄的视频宽度被拉长了怎么办?
- 播放本地文件的时候,好像有些问题
- video_player 已支持倍速了,请问该插件什么时候更新
- [Demand Report] 支持切换清晰度 HOT 1
- 如何去将视频拉伸占满整个屏幕
- 亮度调节以及音量调节时,没有显示当前的数值,所以不知道调到多大了
- 能获取视频的关键帧吗?
- Support HLS Multi-Audio
- 直播
- provide support for flutter 2 and nullSafety
- 空安全支持 HOT 2
- 还更新吗?
- Flutter2.0上报空安全问题,加上--no-sound-null-safety解决后又报另一个错,麻烦解决下
- [Bug Report]为什么现在用不了这个插件了 HOT 1
- 视频播放 绿屏问题
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 awesome_video_player.