-
Notifications
You must be signed in to change notification settings - Fork 851
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
Remove default youtube video #93
Comments
@up2code I forgot to remove it. Thank you! Will remove it. |
Yes, I'm going to report default movie issue. VideoData {"duration":608.401,"videoUrl":"https://www.youtube.com/watch?v=yhrLHNFF8Ig","availableQualityLevels":["hd1080","hd720","large","medium","small","tiny","auto"],"videoEmbedCode":"<iframe width="100" height="100" src="https://www.youtube.com/embed/50kklGefAcs\" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>"} New Nepali Movie - 2017/2074 | Bhanchhu Aaja || Ma Yesto Geet Gaauchu || Ft Pooja Sharma, Paul Shah ### Also I get "Error code 400 No connection" when the player starts play and 1-2 seconds later. (on the black video player screen) By the way, thanks for your efforts about updating the player |
@SayaGames are you sure internet was working correctly? Can you provide with code snippet to recreate the issue ? |
I tried at home wifi, at work wifi and mobile network. (real device and android emulator)
|
It looks like it's same behavior as mine #79 (comment) |
Hi, |
Does the issue persist on Version 5.1.0 ? |
@sarbagyastha On version 5.1.0 fallback video not show anymore. Thank you very much! but now for video error sometime it display only play button or circle progress indicator instead of error message. I had tested by create playlist screen with two ListTile (2 youtube url with error) and tap to change videoId value. But that minor issue for me. So maybe we can close this? |
@up2code With version 5.2.0, there's slight change in API. And it should fix your problem. |
@sarbagyastha Thank you so much for your hard work! It show error now when tap on video with error. But when I tap back to load playable url (I had changed to using YoutubePlayerController.load(videoId) ), player not update and still display previous error message and below is exception log that throw in console.
Test on android 9 physical device with version 5.2.0 |
Could you please attach code snippet, how you're loading videos? |
@sarbagyastha Sure, below I test with simple stateful widget with 2 valid and 1 error video. No problem when try tap ListTile to load valid videoId. But if I tap on error one error message will display on player (But no exception yet) and when I try to tap on valid one, Exception message will show in console. Did I used api correctly?
|
I guess it should be fixed with 5.2.0+1, have you tried with that ? |
@sarbagyastha I just tried with 5.2.0+1. Now valid video can play after previous error video, but error message won't show up if next one I tap on error video. I had tested and found it will display error message when I play error video first. If I tap valid one and tap to error video, It show only play button. You can try on my code snippet on above one. |
Oh! I think a reload action should be added for such scenario, will look at it once i get free. |
Should fix with Version 6.0.0. |
Seem like it fixed now. Thank you so much! |
When I run video id that error (In my case is error code 150). Sometime it fallback to video https://www.youtube.com/watch?v=50kklGefAcs and I found that this video id had defined in lib/src/player.dart
Should it be removed?
Example video error
Test base on
The text was updated successfully, but these errors were encountered: