Skip to content

Use new SurfaceView.setBlurRegions API - Android 37 - #1709

Merged
riggaroo merged 12 commits into
mainfrom
blur-regions
Sep 10, 2026
Merged

Use new SurfaceView.setBlurRegions API - Android 37#1709
riggaroo merged 12 commits into
mainfrom
blur-regions

Conversation

@riggaroo

@riggaroo riggaroo commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator
  • Core Playback: Integrated androidx.media3 (ExoPlayer) and implemented a custom VideoPlayer composable using SurfaceView to showcase SurfaceView.setBlurRegions.
  • UI State: Updated the Message data model to support an optional videoUri.
  • User Input: Enhanced UserInput with a video picker and an AttachedVideoPreview component for reviewing videos before sending.
  • Advanced Visuals: Added SurfaceViewBlurHelper and registerBlurRegion modifier to utilize the platform's setBlurRegions API (SDK 37+) for frosted-glass control overlays.
  • Fullscreen Mode: Implemented immersive fullscreen playback using a Dialog with custom window insets handling.

Implemented video playback and sharing capabilities using Media3 and Jetpack Compose.

- **Core Playback:** Integrated `androidx.media3` (ExoPlayer) and implemented a custom `VideoPlayer` composable using `SurfaceView`.
- **UI State:** Updated the `Message` data model to support an optional `videoUri`.
- **User Input:** Enhanced `UserInput` with a video picker and an `AttachedVideoPreview` component for reviewing videos before sending.
- **Advanced Visuals:** Added `SurfaceViewBlurHelper` and `registerBlurRegion` modifier to utilize the platform's `setBlurRegions` API (SDK 37+) for frosted-glass control overlays.
- **Fullscreen Mode:** Implemented immersive fullscreen playback using a `Dialog` with custom window insets handling.
- **Resources:** Added `INTERNET` permission, video-specific UI strings, and vector assets for playback controls.
@riggaroo
riggaroo marked this pull request as ready for review September 7, 2026 12:26
@riggaroo
riggaroo requested a review from raystatic September 8, 2026 16:29

@raystatic raystatic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@riggaroo
riggaroo merged commit 4c1fe75 into main Sep 10, 2026
11 checks passed
@riggaroo
riggaroo deleted the blur-regions branch September 10, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants