Skip to content

fix: enable background playback for video trimmer. Required for Android#1

Open
adithya1012 wants to merge 1 commit into
techbyvj:mainfrom
adithya1012:main
Open

fix: enable background playback for video trimmer. Required for Android#1
adithya1012 wants to merge 1 commit into
techbyvj:mainfrom
adithya1012:main

Conversation

@adithya1012

Copy link
Copy Markdown

Fix Video Stuttering on Android by Enabling Background Playback

Summary

This PR fixes a video stuttering issue on Android by enabling background playback for the Video component used in VideoTrimmer.

Problem

On Android, the video playback was stuttering while playing because the app state was rapidly switching between active and background during playback.
This caused the video to pause and resume repeatedly, resulting in an unstable trimming experience.

Solution

To prevent playback interruptions, playInBackground={true} has been added to the Video component.
This ensures the video continues playing continuously even when the app momentarily transitions to the background.

Changes

  • Added playInBackground={true} to the Video component in
    src/components/VideoTrimmer.tsx

Platform Behavior

  • Android: Fixes video stuttering caused by app state transitions
  • iOS: No negative impact; works as expected

Testing

  • Tested on Android — video plays smoothly without stuttering
  • Tested on iOS — works correctly

Impact

  • Minimal change (single-line update)
  • Improves playback stability on Android
  • No breaking changes

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.

1 participant