FreeTubeApp / FreeTubeApp/FreeTube
[Bug]: paused videos unpause automatically when screen wakes up
- Dominant language
- Vue
- Stars
- 21.9k
- Forks
- 1.5k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 62
Description
### Guidelines
- [x] I have encountered this bug in the [latest release of FreeTube](https://github.com/FreeTubeApp/FreeTube/releases).
- [x] I have encountered this bug in the [official downloads of FreeTube](https://github.com/FreeTubeApp/FreeTube#official-downloads). **The only official downloads are from the [https://freetubeapp.io](https://freetubeapp.io/#download) website, the [FreeTubeApp/FreeTube GitHub repository](https://github.com/FreeTubeApp/FreeTube/releases) and the [io.freetubeapp.FreeTube flatpak](https://flathub.org/en/apps/io.freetubeapp.FreeTube) from Flathub.**
- [x] I have [searched the issue tracker for **open and closed** issues](https://github.com/FreeTubeApp/FreeTube/issues?q=is%3Aissue+sort%3Arelevance-desc) that are similar to the bug report I want to file, without success.
- [x] I have searched the [documentation](https://docs.freetubeapp.io/) for information that matches the description of the bug I want to file, without success.
- [x] This issue contains only one bug.
- [x] I have read and agree to follow the [rules](https://docs.freetubeapp.io/community/rules/).
### Describe the bug
when i pause a video and close my laptop/the screen goes to sleep, the video is unpaused when i wake the screen up. this also happens when the screen is locked, and i can hear the audio playing while on the password screen.
occasionally unpauses randomly when the window is just open in the background, but i havent been able to replicate it or figure out what makes it do that.
### Expected Behavior
paused videos stay paused until theyre manually unpaused.
### Issue Labels
usability issue
### FreeTube Version
v0.25.0
### Operating System Version
macOS Monterey 12.7.6
### Installation Method
.dmg
### Primary API used
Local API
### Last Known Working FreeTube Version (If Any)
_No response_
### Upload screenshots or videos
_No response_
### Additional Information
_No response_
### Nightly Build
- [ ] I have encountered this bug in the latest **official** [nightly build](https://docs.freetubeapp.io/development/nightly-builds), do not check this box if you are using an unofficial or custom build.
Contributor guide
Research direction
Reproduce on macOS Monterey 12.7.6 using the v0.25.0 .dmg, first checking behavior when a paused video is followed by sleep or lock. Trace the playback response to screen wake or unlock and verify that paused videos remain paused; also note whether the background-window case can be reproduced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100