Skip to content
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

[BUG]: Leak, video not releasing on unmount when inside pager/tab view #4404

Open
adxzhang1 opened this issue Feb 4, 2025 · 1 comment
Open

Comments

@adxzhang1
Copy link

Version

6.10.0

What platforms are you having the problem on?

Android

System Version

14

On what device are you experiencing the issue?

Real device, Simulator

Architecture

New architecture with interop layer

What happened?

The video is still playing after unmounting the Video component when inside a pager view. The video should get released when the component unmounts.

Example (turn on audio) still hear video play even though component is unmounted.

screen.webm

Reproduction Link

https://github.com/adxzhang1/react-native-video/tree/unmount-issue

Reproduction

Step to reproduce this bug are:

  1. PagerView with 1 page with video and another page
  2. Navigate to page with video
  3. Navigate to other page
  4. Navigate back to page with video
  5. Start playing video
  6. Unmount Video
  7. Notice video is still playing (hearing the audio)
@adxzhang1 adxzhang1 added the bug label Feb 4, 2025
Copy link

github-actions bot commented Feb 4, 2025

Thank you for your bug report. We will review it and get back to you if we need more information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant