[video_player] Huawei devices (still) play .webm videos at 1/4 of screen width

This issue has been created since 2022-09-22.

I know #62783 exists already, but it looks like it was closed without being addressed (plus a bit old right now) so I'm opening a new issue. Basically exactly same problem as you see below.

Using video_player: ^2.4.7 for rendering videos.

Thanks!

Screen Shot 2022-09-22 at 6 54 16 PM

Code sample

ValueListenableBuilder(
  valueListenable: controller!,
  builder: (
    BuildContext context,
    VideoPlayerValue videoResult,
    Widget? child,
  ) {
    return Stack(
      alignment: Alignment.bottomCenter,
      children: [
        // * Video
        GestureDetector(
          onTap: () {
            setState(() => _showPlayButton = !_showPlayButton);
            Future.delayed(
              defaultTransitionDuration,
              () => handleVideoTap(),
            );
          },
          child: videoResult.isInitialized
              ? VideoPlayer(controller!)
              : const Center(child: CircularProgressIndicator()),
        ),
        // * Scrubber
        if (videoResult.isInitialized)
          VideoProgressIndicator(
            controller!,
            allowScrubbing: true,
            padding: const EdgeInsets.only(bottom: 32.0),
          ),
      ],
    );
  },
),

flutter doctor -v

[✓] Flutter (Channel stable, 2.10.3, on macOS 12.6 21G115 darwin-x64, locale en-CA)
    • Flutter version 2.10.3 at /usr/local/flutter
    • Upstream repository [email protected]:flutter/flutter.git
    • Framework revision 7e9793dee1 (7 months ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/[redacted]/Library/Android/sdk
• Platform android-33, build-tools 31.0.0
• ANDROID_HOME = /Users/redacted]/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.10.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

[✓] IntelliJ IDEA Community Edition (version 2021.2.2)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin version 212.5284.31

[✓] VS Code (version 1.71.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.48.0

[✓] Connected device (2 available)
• LYA L29 (mobile) • LHS7N19109000817 • android-arm64 • Android 10 (API 29)
• Chrome (web) • chrome • web-javascript • Google Chrome 105.0.5195.125

[✓] HTTP Host Availability
• All required HTTP hosts are available

• No issues found!


woodybury wrote this answer on 2022-09-23

plus 1 for this. same issue w/ small video and green background for webm

huycozy wrote this answer on 2022-09-23

Hi @Kallirroi, @woodybury
Please provide a completed and minimal reproducible code sample so that we may verify this. Also, please provide the output of flutter run -v as well. If the log is too long, please save it into a file and attach it here.

As far as I can see, you are using the old Flutter version 2.10.3, the latest Flutter stable is 3.3.2 and the master is 3.4.0. Please try upgrading them and retry to see if this issue still reproduces.

Thank you!

woodybury wrote this answer on 2022-09-26

thanks @huycozy I just tried updating to 3.3.2 and my .webm are still rendered same as @Kallirroi screenshot. Will work on a better code sample.

woodybury wrote this answer on 2022-09-27

@huycozy another update from our end: It seems this only affects webm encoded w/ vp9. vp8 plays fine.

huycozy wrote this answer on 2022-09-28

@woodybury Please provide a completed and minimal reproducible code sample so that we may verify this. Also, please provide the output of flutter doctor -v as well. Thank you!

More Details About Repo
Owner Name flutter
Repo Name flutter
Full Name flutter/flutter
Language Dart
Created Date 2015-03-06
Updated Date 2022-10-05
Star Count 145516
Watcher Count 3569
Fork Count 23400
Issue Count 11194

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
All locations in English 3 2021-10-25 2022-07-22
"Error updating marker in file nnnnnnn.md" 14 2021-10-22 2022-08-09
'SKIP_PREFLIGHT_CHECK' is not recognized as an internal or external command, operable program or batch file. 1 2022-04-12 2022-09-30
possible to set HmIP-FALMOT-C12 without homematic thermostat? 1 2022-04-28 2022-08-20
Plugin fails to copy from cache folder 0 2022-07-31 2022-09-24
Screen Cover need a little change to prevent screen cracking during install 8 2022-02-15 2022-03-10
Confusion about neopixels 1 2022-02-15 2022-03-10
Shield Tiles Don't Regenerate 0 2022-03-08 2022-07-14
[PORTER] gcr.io/knative-releases/knative.dev/serving/cmd/controller 2 2022-03-08 2022-03-06
Reconsider information for the separator usage with the CSV output format 2 2022-09-10 2022-09-22
In Search of Thaelrid (1198) 1 2022-02-21 2022-08-28
Exit boot rom mode Mavic mini battery 4 2021-07-30 2022-09-21
File download fails 1 2021-07-23 2022-10-03
libpython-clj inside hadoop jar -- failing to find valid python library 13 2022-02-26 2022-09-02
Fix rounded corners when panel length is less than 100% 1 2021-10-28 2022-08-28
NativeCall JIT Bug exposed by DBIish (PostgreSQL driver) 8 2022-03-23 2022-10-05
Button click event issue inside a widget 1 2021-11-28 2022-09-16
'demo.ovenplayer.com/demo_input.html' fails to load in http 4 2022-01-02 2022-07-31
Moved OwnedBytes to an external crate 0 2021-07-02 2022-02-10
Remove memmap dependency 2 2021-07-06 2022-08-13
SDKs should support higher level operations like 'SummarizeDiffs' 0 2022-08-31 2022-09-05
Github CLI login command unclear for some students 2 2021-05-17 2022-07-28
Thread emoji picker will insert the emoji in the main timeline composer 0 2022-02-24 2022-08-23
LDAP Client to LDAP Server Mapping 1 2021-01-18 2022-07-27
Lint for singularity image parsing 1 2022-06-22 2022-08-28
Make WARN: Found unexpected parameters more prominent 1 2022-06-28 2022-07-24
Frameworks with conflicting names: webrtc.xcframework 6 2022-03-30 2022-09-12
I try to install pod file the issues are found ? 3 2022-03-31 2022-09-02
Unable to register `pre_integrate` and `post_integrate` hooks from plugins 6 2022-03-30 2022-09-19
Affiliation with AAD 0 2021-02-26 2022-10-04
Jetifier outputs are not deterministic 1 2021-04-01 2022-09-13
How to tell if a node has already joined a swarm? 0 2022-04-13 2022-10-04
'Additional requirements per client' does not clearly state if unified AIP client installation on the client machines is necessary?. 1 2021-07-20 2022-10-04
Sentinel Analytics for AIP 1 2022-04-12 2022-10-04
FAQ root detection Android version wording 2 2022-03-17 2022-09-29
How to setup openh264.dll on Windows? 1 2021-07-11 2022-09-12
Simplification of ARM templates for telephony bots 0 2021-04-19 2022-07-07
Can't delete record in Azurite starting with % 8 2022-03-25 2022-09-29
1 package failed and 2 packages were abandoned:Failed << aslam_cv_python:make 6 2021-03-31 2022-09-07
[Feature request] Add keyboard media control support 0 2022-05-02 2022-09-04
Replace "https://cve.circl.lu" with "https://cvepremium.circl.lu/" 0 2021-11-17 2022-09-30
[buildroot] Need help to create LVGL package 2 2022-09-04 2022-10-04
In Warship Gunner 2 ships do not point in the direction of travel 1 2021-10-05 2022-09-29
bug: ion-loading has no aria-label attribute 3 2021-12-25 2022-09-22
cygwin error 9 2021-08-17 2022-01-14
Rustfmt loses qself type inside struct expr 1 2021-12-23 2022-07-15
OpenKore cannot attack monsters outside of 200x200 coordinates 6 2021-08-18 2022-09-25
restarting nats streaming server client connections dont recover 1 2020-10-29 2022-09-06
bug: Module not found: Error: Can't resolve './locale' 2 2021-10-20 2022-08-02
BrightId success page tx receipt maligned at specific widths 2 2021-09-07 2022-08-29