Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flutter/packages
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: af136cc
Choose a base ref
...
head repository: flutter/packages
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 7ff3e1f
Choose a head ref
  • 1 commit
  • 4 files changed
  • 1 contributor

Commits on Jun 24, 2026

  1. [video_player_android] Fix rendering freeze after full-screen transit… (

    #11416)
    
    Fixes flutter/flutter#184241
    
    ## Description
    
    When using `PlatformView` mode on Android, the video freezes (frozen on a specific frame) after returning from a full-screen dialog or route transition. This happens because the `Surface` is destroyed when the view is hidden, and `ExoPlayer` does not automatically re-attach to the new `Surface` when it becomes visible again.
    
    ### Changes
    
    - Introduced a custom `VideoSurfaceView` subclass that overrides `onVisibilityChanged` to re-bind `ExoPlayer` to the current `Surface` whenever the view becomes visible again.
    - Extracted a `bindPlayerToSurface` helper to centralize surface binding and the Android 9 seek workaround.
    - Used `clearVideoSurface(surface)` in `surfaceDestroyed` to safely unbind only the current surface.
    - Updated `PlatformVideoViewTest` to use Robolectric's `ShadowSurfaceView` API for lifecycle simulation.
    
    ## Pre-Review Checklist
    moepanda authored Jun 24, 2026
    Configuration menu
    Copy the full SHA
    7ff3e1f View commit details
    Browse the repository at this point in the history
Loading