-
Notifications
You must be signed in to change notification settings - Fork 5
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]: Background play is inconsistent #10
Comments
This issue is stale because it has been open 28 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
I just discovered a very helpful code snippet which was under the "quirks" section of the cordova-plugin-advanced-background README. I believe the web view optimizations were causing the video to pause when the app went into the background. |
This is not an issue in my upcoming cordova-less update. Background play being inconsistent was a product of not being able to override the default functionality of pausing when the app closes in cordova. I could play the video after it was paused, but this was inconsistent and caused stuttering. With just a vanilla webview app, however, I can simply override the behavior which calls the function that pauses the video when the app is put into the background. |
The current nightly is now updated to the new cordova-less build. |
##### ~~Cordova~~ Android specific changes: - Switched away from Cordova [#101](#101 (comment)) - Added ability to stream videos **locally** *without* proxying through invidious [#5](#5) 🥂 - Added ability to seek in the media controls notification - Fixed videos stopping or stuttering when the app enters the background [#10](#10) - Fixed YT links not opening in app [#264](#264) - Added ability to change where profiles/settings/playlists/history.db are located on the filesystem [#299](#299) - Fullscreen videos now take up the entire screen instead of sharing real estate with the system UI This release includes all of the changes from upstream release [0.20.0](https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.20.0-beta). ... **Full Changelog**: 0.19.2.110...0.20.0.111
##### ~~Cordova~~ Android specific changes: - Switched away from Cordova [#101](#101 (comment)) - Added ability to stream videos **locally** *without* proxying through invidious [#5](#5) 🥂 - Added ability to seek in the media controls notification - Fixed videos stopping or stuttering when the app enters the background [#10](#10) - Fixed YT links not opening in app [#264](#264) - Added ability to change where profiles/settings/playlists/history.db are located on the filesystem [#299](#299) - Fullscreen videos now take up the entire screen instead of sharing real estate with the system UI This release includes all of the changes from upstream release [0.20.0](https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.20.0-beta). ... **Full Changelog**: 0.19.2.110...0.20.0.111
##### ~~Cordova~~ Android specific changes: - Switched away from Cordova [#101](#101 (comment)) - Added ability to stream videos **locally** *without* proxying through invidious [#5](#5) 🥂 - Added ability to seek in the media controls notification - Fixed videos stopping or stuttering when the app enters the background [#10](#10) - Fixed YT links not opening in app [#264](#264) - Added ability to change where profiles/settings/playlists/history.db are located on the filesystem [#299](#299) - Fullscreen videos now take up the entire screen instead of sharing real estate with the system UI This release includes all of the changes from upstream release [0.20.0](https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.20.0-beta). ... **Full Changelog**: 0.19.2.110...0.20.0.113
##### ~~Cordova~~ Android specific changes: - Switched away from Cordova [#101](#101 (comment)) - Added ability to stream videos **locally** *without* proxying through invidious [#5](#5) 🥂 - Added ability to seek in the media controls notification - Fixed videos stopping or stuttering when the app enters the background [#10](#10) - Fixed YT links not opening in app [#264](#264) - Added ability to change where profiles/settings/playlists/history.db are located on the filesystem [#299](#299) - Fullscreen videos now take up the entire screen instead of sharing real estate with the system UI This release includes all of the changes from upstream release [0.20.0](https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.20.0-beta). ... **Full Changelog**: 0.19.2.110...0.20.0.114
##### ~~Cordova~~ Android specific changes: - Switched away from Cordova [#101](#101 (comment)) - Added ability to stream videos **locally** *without* proxying through invidious [#5](#5) 🥂 - Added ability to seek in the media controls notification - Fixed videos stopping or stuttering when the app enters the background [#10](#10) - Fixed YT links not opening in app [#264](#264) - Added ability to change where profiles/settings/playlists/history.db are located on the filesystem [#299](#299) - Fullscreen videos now take up the entire screen instead of sharing real estate with the system UI This release includes all of the changes from upstream release [0.20.0](https://github.com/FreeTubeApp/FreeTube/releases/tag/v0.20.0-beta). ... **Full Changelog**: 0.19.2.110...0.20.0.115
This is now resolved by release 0.20.0.115. |
Guidelines
Describe the bug
If the video is playing when the app enters the background, the video continues to pauses and refuses to play in the background. If the video is not playing when the app enters the background, it will be able to be played using the media controls notification. Then, the video will play to completion, and if autoplay is enabled, the next video will play and everything will continue on. There isn't a consistent way to forcibly pause the video before the app enters the background so that the system doesn't pause it and prevent the user from playing it. This issue is not present in audio formats.
Expected Behavior
The video should continue to play when the user enters the background, and it shouldn't prevent the video from being played while the app is in the background.
Issue Labels
inconsistent behavior
FreeTube Version
v0.16.0 66168e5
Operating System Version
Android 11, Kernel version 4.14.180-perf+ #1 Mon Mar 28 06:29:53 CDT 2022, Build number RPMS31.Q1-54-13.3-10
Installation Method (If applicable)
No response
Last Known Working FreeTube Version (If Any)
This feature never worked correctly
Primary API used
Invidious API
Additional Information
No response
Nightly Build
The text was updated successfully, but these errors were encountered: