Youtube_player_flutter: [BUG] [youtube_player_iframe 2.2.1] video does not load, fields from the scroll

Created on 29 Jul 2021  路  4Comments  路  Source: sarbagyastha/youtube_player_flutter

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

https://user-images.githubusercontent.com/38835822/127503831-6de3d136-8c5f-45db-a8c7-93ba725b1625.mov

Technical Details:

  • Device: iPhone 8
  • OS: 14.5
  • Version 2.2.1

Code
YoutubePlayerControllerProvider(
controller: _controller,
child: YoutubePlayerIFrame(
aspectRatio: 16 / 9,
),
),

bug

All 4 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rebeccalee-ysd picture rebeccalee-ysd  路  3Comments

channdara picture channdara  路  4Comments

mohadel92 picture mohadel92  路  3Comments

Ayman-Kortobaa picture Ayman-Kortobaa  路  4Comments

jimmyff picture jimmyff  路  3Comments