sarbagyastha / youtube_player_flutter

A Flutter plugin for inline playback or streaming of YouTube videos using the official iFrame Player API.
https://youtube.sarbagyastha.com.np
BSD 3-Clause "New" or "Revised" License
696 stars 801 forks source link

[BUG] Videos not loading on the emulator #356

Open hyungtaecf opened 4 years ago

hyungtaecf commented 4 years ago

Describe the bug I'm using both a real device and an emulator. Everything works fine on the real device I'm using (Moto G Play 7.1.1). The videos load and play normally. But with the emulator it is not working, it keeps showing a loading progress bar on top of the video thumbnail. I've tried with different videos, and it has the same result.

EDIT: It worked when I removed my alternative onReady() function that I was using. But if someone could explain to me why it was working on the real device and not the emulator, I would appreciate it.

There's no problem with a wifi connection or anything because the other services that use the internet are working fine.

To Reproduce Running it on the emulator, and going to the video screen.

Expected behavior Load and play the video as on the real device.

Technical Details:

flutter doctor -v [√] Flutter (Channel stable, 1.20.3, on Microsoft Windows [versão 10.0.18362.1082], locale pt-BR) • Flutter version 1.20.3 at C:\src\flutter • Framework revision 216dee60c0 (12 days ago), 2020-09-01 12:24:47 -0700 • Engine revision d1bc06f032 • Dart version 2.9.2

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc4) • Android SDK at C:\Users\HTCF\AppData\Local\Android\sdk • Platform android-30, build-tools 30.0.0-rc4 • ANDROID_HOME = C:\Users\HTCF\AppData\Local\Android\sdk • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01) • All Android licenses accepted.

[√] Android Studio (version 4.0) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin version 47.1.2 • Dart plugin version 193.7361 • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] IntelliJ IDEA Community Edition (version 2019.3) • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3.2 • Flutter plugin version 45.1.2 • Dart plugin version 193.7547

[√] VS Code (version 1.49.0) • VS Code at C:\Users\HTCF\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.14.1

[√] Connected device (1 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator) • No issues found!

Additional context I'm sorry if there is an issue already for this, but I've searched on other issues and didn't find this problem. I need to use the emulator because I'm using a lot of text manipulation on this current project, so doing it on the computer saves a lot of time for me doing copy-paste stuff, which is a pain doing on a real device.

iamnabink commented 4 years ago

same issue here in Device: Pixel 2 (emulator) OS: Android OS Version: 27 , anyone found solution to this?

Sethsmagic commented 4 years ago

I am also facing this issue

sallypeters commented 4 years ago

Same issue but doesnt work on iOS for either real device or simulator. Flutter 1.19.

Just get spinning progress and nothing else...

cccarle commented 3 years ago

anything new on this topic?

geocine commented 2 years ago

I can see the loading bar is moving, but the play progress is not moving. Also continuous spinning wheel on the video itself.