-
Notifications
You must be signed in to change notification settings - Fork 842
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
current showing 0:00 all the time #17
Comments
which version are you on ? |
I have this issue too, |
Same here. Using 1.1.1+1. It doesn't happen on all videos. I would say ~30% of them. Video duration appears as 0:00 and pressing play does nothing. On Android, I was able to wait until the player was ready and then use controller.load() to get it to load. This does not work on IOS though. And the problem occurs on all videos. I am using the player in a pop-up page that appears when the user presses a button. Navigator.push(
context,
new MaterialPageRoute(builder: (context) {
//create the page
return new Scaffold(
body: Container(
color: Colors.black,
alignment: Alignment.center,
child: YoutubePlayer(
context: context,
videoId: YoutubePlayer.convertUrlToId(widget.movie.trailer),
autoPlay: true,
showVideoProgressIndicator: true,
videoProgressIndicatorColor: Theme.of(context).primaryColor,
progressColors: ProgressColors(
playedColor: Theme.of(context).primaryColor,
handleColor: Theme.of(context).primaryColor,
),
onPlayerInitialized: (controller) async {
//check if we need to reload video
if(controller.value.duration.inSeconds == 0) {
print("Video not loaded.");
//wait for the video player to be ready
print("Waiting for ready...");
while (!controller.value.isReady) {
print("Not ready.");
//wait a bit before checking again
await Future.delayed(Duration(milliseconds: 500));
}
print("Player ready!");
//reload
print("Reloading...");
controller.load();
}
},
),
),
);
}),
) Edit:
|
Same here |
Same issue here. The process bar is not working for the same reason. The buffered part works just fine but the played part is always 0:00. |
The issue is fixed with Version 1.2.0. |
Thank you for timely update. The package helps me a lot.
123248001
邮箱:[email protected]
Signature is customized by Netease Mail Master
On 06/03/2019 22:20, Sarbagya Dhaubanjar wrote: The issue is fixed with Version 1.2.0.
It was a silly mistake btw. 😜
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#17?email_source=notifications\u0026email_token=AK47XTJHMOZJVGWZSK24XGTPYXGOPA5CNFSM4HNU75MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW3GP6Q#issuecomment-498493434",
"url": "#17?email_source=notifications\u0026email_token=AK47XTJHMOZJVGWZSK24XGTPYXGOPA5CNFSM4HNU75MKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW3GP6Q#issuecomment-498493434",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
the current duration does not gt update neither is the seekbar showing any update
The text was updated successfully, but these errors were encountered: