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
video_player wont play local videos in release mode (--release) #88087
Comments
Hi @bensurquhart
Code samplehttps://pub.dev/packages/video_player/example flutter doctor -v[✓] Flutter (Channel beta, 2.5.0-5.1.pre, on Microsoft Windows [Version 10.0.22000.120], locale en-US)
• Flutter version 2.5.0-5.1.pre at C:\Users\Taha\Code\flutter_beta
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 65cf7de5f4 (15 hours ago), 2021-08-11 15:48:01 -0700
• Engine revision fbeb7e22bd
• Dart version 2.14.0 (build 2.14.0-377.4.beta)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\Taha\Code\android-sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_SDK_ROOT = C:\Users\Taha\Code\android-sdk
• Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.4)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.10.31515.178
• Windows 10 SDK version 10.0.19041.0
[✓] Android Studio (version 2020.3)
• Android Studio at C:\Users\Taha\Code\android-studio
• 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.10+0-b96-7249189)
[✓] VS Code (version 1.59.0)
• VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.25.0
[✓] Connected device (5 available)
• Redmi K20 Pro (mobile) • def0ad20 • android-arm64 • Android 11 (API 30)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 4.4.2 (API 19) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.120]
• Chrome (web) • chrome • web-javascript • Google Chrome 92.0.4515.131
• Edge (web) • edge • web-javascript • Microsoft Edge 92.0.902.67
• No issues found! Can you please provide device details? If possible try another device |
Hi @TahaTesser I haven't tried Android, I'm using the web version at the moment, my colleague also has the same issue on his machine. |
Hi @bensurquhart
Which renderer are you using to run the app? Does the page even load? |
Hi @TahaTesser I'm just using chrome with the default renderer no additional parameters, the page loads as normal I just can't play videos locally. However iv found a work around using a local http server to host the videos and VideoPlayerController.network() to play them in release mode. which is sufficient for what I need right now. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
I'm using the latest version of the flutter video_player plugin, and I cant play videos locally using either VideoPlayerController.asset() or VideoPlayerController.file() in release mode?
I also tried using the example code written here https://pub.dev/packages/video_player/example and the same issue purists.
FYI it works perfectly fine in normal debug mode without --release.
The text was updated successfully, but these errors were encountered: