ponnamkarthik / FlutterYoutube

Flutter Plugin to play youtube Videos
Apache License 2.0
126 stars 56 forks source link

Crashing On Physical iOS Device When WiFi Is Off #56

Open DavidHCox opened 4 years ago

DavidHCox commented 4 years ago

I put my app on my physical device (iPhone XR v13.1.3). I have not tested this out on Android yet.

With the WiFi on I tap on one of my containers it passes in the YouTube video id to the playYoutubeVideoById() and it pulls up the player playing the video working just fine. When I do all of those things with the WiFi off, so it's just using cellular data, it does not work.

I don't know if this is just a problem with the package or if I am doing anything wrong in general with just the way I setup my entire app haha.

Has anybody ever even heard of this problem in general with turning on and off the WiFi to make something work/not work?

rchabot32 commented 4 years ago

same problem iOS works on wifi, not on cellular

rchabot32 commented 4 years ago

This is a strange one. Using PlayYoutubeVideoById()

Iphone X - AT&T - Ios 13.1.3 - Model MQAN2LL/A Wifi on - works Wifi off - fails

Iphone 6s Plus - AT&T - Ios 13.2.2 - Model MKTT2LL/A Wifi on - works Wifi off - fails

Iphone 6s Plus - Google Fi - Ios 13.2.2 - Model MN382LL/A Wifi on - works Wifi off - works

I will swap the Google FI sim into the failing Iphones on Monday but at this point, it seems like AT&T is at fault.

Using url_launcher to open youtube directly does work on the problem devices.

rchabot32 commented 4 years ago

The issue is that AT&T wireless is blocking access to www.youtube.com/get_video_info This started around Nov 2nd.

DavidHCox commented 4 years ago

@rchabot32 Wow! Thank you so much for all the testing!

Do you mind linking where you found your answer in your last comment?

rchabot32 commented 4 years ago

I can see one of my production apps failing via Firebase performance monitoring when the cell provider is AT&T. I have a suspicion that it is due to 'Stream Saver' but I can't verify that as every AT&T cell that I can test on has an unlimited data plan. When you have an unlimited data plan you can not turn off stream saver.

DavidHCox commented 4 years ago

That is crazy! Again, appreciate you commenting your struggles and outcomes.