Describe the bug
The video does not load, you can see the fields from the scroll, I will display everything in the attached video
To Reproduce
Just launch any video
Attachments
Technical Details:
Code
YoutubePlayerControllerProvider(
controller: _controller,
child: YoutubePlayerIFrame(
aspectRatio: 16 / 9,
),
),
It seems related to "useShouldOverrideUrlLoading".
I did the following test and it worked fine on my iOS case (Simulator Iphone 12 Pro & real Iphone 6s):
initialOptions: InAppWebViewGroupOptions(
crossPlatform: InAppWebViewOptions(
/* ... */
useShouldOverrideUrlLoading: false, //I switched this to false, looks always get in this callback only in iOS (Android/Web is fine).
),
ios: IOSInAppWebViewOptions(
/* ... */
),
android: AndroidInAppWebViewOptions(
/* ... */
),
),
I can confirm, that player will play after sets useShouldOverrideUrlLoading to false, but then whole function with shouldOverrideUrlLoading won't be trrigered. I have seen similar problem on inappwebview issues here
My configuration:
Phone: Physical Iphone 10
IOS: 14.7.1
Flutter ver.: 2.2.3 stable
youtube_player_iframe ver.: 2.2.1
In that case value isReady is always false which provides effect like video will never load.
This error blocks my app from publish. Tested on latest flutter beta channel 2.4.0-4.2.pre and dev channel 2.5.0-5.0.pre still same result.
Could you please verify if v2.2.2 fixes the issue ?
I can confirm, that it works again on both platforms. Thank you very much.