-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when setting autoPlay: false #229
Comments
same issue here |
same issue |
Work around: autoInitialize: true |
I created a pull request a couple weeks ago that fixes this issue. It has yet to be approved. |
Got same error on real ios device, is there any update?
Pubspec.yaml
I got the same issue on IOS Real device, Is there any updates?
Code of my video class
|
setting |
Hi, i'm facing the same issue (the getter _duration was called on null) and solutions mentioned above didn't help me fix it. Everything was working fine until i updated packages (chewie and videoplayer). Does somebody have other suggestions how to fix this error? Thanks in advance. |
after downgrading back to chewie 0.9.10 and videoplayer 0.10.12+5 , the issue is gone. |
@pasty161 Can you provide a minimal example for which this is failing? |
Unfortunately this doesn't help. The duration error is still there. |
Still Not Working. 😞 |
I think it is a problem in flutter video widget. Please read this |
@maoamid The link sends you to chewies issue. ^^ |
@nstrelow my mistake, I updated the link. Thank you! |
The problem described above is in fact with this plugin - specifically in You'll notice that in
There is no such check in
If you force load material controls on iOS you no longer get the I'm using a workaround to get HLS videos to load in iOS (per flutter/plugins#48670) but was still getting the _duration error in chewie using the latest version - some digging and I found the above discrepancies between cupertino and material controls. |
@nathanaelneveux thanks a lot, you helped me with this obsesrvation. Merry Christmas! |
This should be fixed with 0.12.1 |
════════ Exception caught by gesture ═══════════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown while handling a gesture:
The getter '_duration' was called on null.
Receiver: null
Tried calling: _duration
When the exception was thrown, this was the stack:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 Duration.>= (dart:core/duration.dart:173:63)
#2 _CupertinoControlsState._playPause (package:chewie/src/cupertino_controls.dart:498:45)
#3 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#4 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
...
Handler: "onTap"
Recognizer: TapGestureRecognizer#d9726
debugOwner: GestureDetector
state: ready
won arena
finalPosition: Offset(49.5, 619.5)
finalLocalPosition: Offset(10.5, 18.5)
sent tap down
════════════════════════════════════════════════════════════════════════════════════════════════════
════════ (2) Exception caught by gesture ═══════════════════════════════════════════════════════════
The getter '_duration' was called on null.
Receiver: null
Tried calling: _duration
════════════════════════════════════════════════════════════════════════════════════════════════════
The text was updated successfully, but these errors were encountered: