Skip to content
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

[BUG] [youtube_player_iframe 2.2.1] video does not load, fields from the scroll #525

Closed
snoopdoggy322 opened this issue Jul 29, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@snoopdoggy322
Copy link

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

2021-07-29.16.48.25.mov

Technical Details:

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

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

@snoopdoggy322 snoopdoggy322 added the bug Something isn't working label Jul 29, 2021
@kaiquegazola
Copy link

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(
          /* ... */
        ),
      ),

@PcolBP
Copy link

PcolBP commented Aug 9, 2021

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.

@sarbagyastha
Copy link
Owner

Could you please verify if v2.2.2 fixes the issue ?

@PcolBP
Copy link

PcolBP commented Aug 13, 2021

I can confirm, that it works again on both platforms. Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants