Open chandarlee opened 9 months ago
Thanks for the report. I can reproduce this issue with a pure PlatformView example (without VideoPlayer package): pageview_flicker_144532
https://github.com/flutter/flutter/assets/104349824/c9f003df-b10b-49a4-b5fd-e6f4615dcc99
The issue seems to happen less in pure PlatformView example. I only see it if I quickly swipe from page 2 to page 1.
Did you found out the solution? I am having the same problem?
Did you found out the solution? I am having the same problem?
Not yet
Note from triage: It appears that the video shows the new content in the old location.
I'm facing the same issue. It's a quite annoying issue.
I use Texture
widget to show image which loaded by native.
Flutter SDK 3.16.5
https://github.com/flutter/flutter/assets/9456005/d9fbfd4a-b005-444c-b940-dc88c3e2c9a3
Did any one find solution ? , i am also facing the same issus, i am rendering video using texture widget in linux, and the side by side using grid to display some tables, while the video renders properly, the grid flickers.
This issue is assigned to @johnmccutchan but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
Any updates?
Any Updated ??
I don't understand the reported issue. @huycozy what should I be looking for in this video? What is going wrong here?
@jonahwilliams At my comment above with the demo video, please notice timestamp at 0:09 or 0:17, you may see the red color (from platformview) flicker when swiping. I think video with video_player will be clearer so I re-attach it here as well:
Got it. Looks like the textures are getting mixed up?
yes, this frame shows the issue. I will capture the better demo visual next time:)
no worries, its just my tired eyes 😄
Steps to reproduce
I have a simple PageView widget which has two item(two page). First page is a big video player view playing a butterfly. Second page is a GridView widget which has four items and its second item is a small video player view playing an another video;
I start scroll pageview from first page to second page, and when the small video player view of second page firstly becomes visible , the screen flickers. After screen capture, I found the flicker: The small video player view's video content appears on the big video player view;
I run the same code on iOS, everything works fine, the flicker does not happen.
Expected results
switch between pages should not flicker.
Actual results
Flicker happens when scroll to second page
Code sample
Code sample
```dart import 'package:flutter/material.dart'; import 'package:video_player/video_player.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), home: const MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override StateScreenshots or Video
SVID_20240304_172349_1.mp4.zip
Logs
Logs
```console [Paste your logs here] ```Flutter Doctor output
[✓] Flutter (Channel stable, 3.16.8, on macOS 14.3.1 23D60 darwin-arm64, locale zh-Hans-CN) • Flutter version 3.16.8 on channel stable at /Users/chandarlee/develop/flutter_sdk • Upstream repository https://github.com/flutter/flutter.git • Framework revision 67457e669f (7 weeks ago), 2024-01-16 16:22:29 -0800 • Engine revision 6e2ea58a5c • Dart version 3.2.5 • DevTools version 2.28.5
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/chandarlee/develop/Android/sdk • Platform android-34, build-tools 34.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15C500b • CocoaPods version 1.14.3
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.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 17.0.7+0-17.0.7b1000.6-10550314)
[✓] IntelliJ IDEA Community Edition (version 2023.3.4) • IntelliJ at /Applications/IntelliJ IDEA CE.app • Flutter plugin version 78.1.1 • Dart plugin version 233.13763.5
[✓] VS Code (version 1.86.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.84.0
[✓] Connected device (5 available) • PCLM50 (mobile) • 35d6b38d • android-arm64 • Android 12 (API 31) • TAS AL00 (mobile) • 88Y0219C04005145 • android-arm64 • Android 12 (API 31) • 00008030 (mobile) • 00008020-00091C5C26D2002E • ios • iOS 17.3.1 21D61 • macOS (desktop) • macos • darwin-arm64 • macOS 14.3.1 23D60 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 122.0.6261.94 ! Error: Browsing on the local area network for 韦良的iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources • All expected network resources are available.
• No issues found!