Comments (3)
The problem seems to be that something wrong when changing videoPlayer. Actually video_player
work with native players. And as a result, we can't release players as soon as possible and at that time the ChangeNotifier was disposed or null. I think this is the problem and I'm trying to solve this.
from neeko.
Hello, I am having the same problem, I would like to know if it has been solved?
analyzing the issue, I see that the problem may be the progress bar of the duration of the video, I see that the error occurs at the moment that a stream file (.m3u8) ends and a new one begins, because that's when the progressbar cannot find the start and end parameters of the video; which does not happen when the file extension is mp4 and the option "isLive = true" is left because it only happens at the beginning of the video and then it is corrected. I guess a solution would be to disable or set the ProgressBar fixed cause its a LiveStream and such animation is not necessary, I hope that my opinion has been understood, I will be waiting for an answer because this package is important for my project. Thank you.
from neeko.
just change the "_attachListenerToController()" function located in the video_controller_widgets.dart() file to the following code:
_attachListenerToController() {
if(controller!=null){
controller.addListener(
() {
if (controller.value.duration == null ||
controller.value.position == null) {
return;
}
if (mounted) {
setState(() {
_currentPosition = controller.value.position.inMilliseconds;
_currentSliderPosition = controller.value.position.inMilliseconds /
controller.value.duration.inMilliseconds;
});
}
},
);
}
}
If the problem persists, just delete the slider located in the widget's constructor.
You also have to set the "Loop = true" and "autoPlay=false".
from neeko.
Related Issues (20)
- Headers HOT 1
- Is this unable to forward and backward video? HOT 1
- Support for subtitles? HOT 3
- Error building project after upgrade to Flutter 1.17 HOT 3
- Does it support gestures to control volume and brightness ?
- local video gives exception HOT 3
- inFullScreen paramter in NeekoPlayerWidget is not working
- play video from s3 url HOT 3
- Example not working HOT 1
- save video in storage HOT 1
- Error after going in fullscreen Mode
- Auto rotate in full screen
- Support for dart 2 Null safety? HOT 1
- Player doesn't support all online video streaming links HOT 1
- BufferIndicator doesn't appear HOT 5
- There is any way to select the video quality when using hls stream ? HOT 1
- Foreground Play HOT 1
- if video not initialize ready to play will have more video controller play much more when we click HOT 3
- Hide back button on player HOT 2
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 neeko.