Commit Graph

127 Commits

Author SHA1 Message Date
Bnyro
b734c69ea8 Move helpers from .util to .ui.listeners and .helpers 2023-01-31 16:43:39 +01:00
Isira Seneviratne
56763ec1a9 Merge branch 'master' into KotlinX_Serialization
# Conflicts:
#	app/src/main/java/com/github/libretube/ui/adapters/SearchAdapter.kt
2023-01-21 17:24:37 +05:30
Bnyro
79fab618df Apply playback params for all players 2023-01-21 12:07:28 +01:00
Bnyro
b03d080316 Use the same playback speed for background and video mode 2023-01-21 11:59:44 +01:00
Bnyro
7ffe3a6ed9 [Audio Mode] Share, playback and queue controls 2023-01-21 11:46:56 +01:00
Isira Seneviratne
61fba85afd Merge branch 'master' into KotlinX_Serialization 2023-01-20 08:50:06 +05:30
Bnyro
074ab20202 Use the same audio attributes and load control for all players 2023-01-19 17:48:35 +01:00
Isira Seneviratne
60706c2d87 Remove remaining Jackson code. 2023-01-19 18:14:37 +05:30
Isira Seneviratne
219a7d7cfe Use Kotlinx Serialization with stream data. 2023-01-19 04:47:49 +05:30
Isira Seneviratne
e306ba8a7f Add PendingIntentCompat helper methods. 2023-01-18 09:43:01 +05:30
Bnyro
4e978faea3 Fix unexpected audio queue behavior 2023-01-16 18:33:11 +01:00
Bnyro
1ce7d6761f Apply review from #2469 2023-01-14 18:17:34 +01:00
Bnyro
7a90acd824
Merge branch 'master' into feat/new-downloader 2023-01-14 17:54:02 +01:00
Bnyro
f588073607 Add audio only mode 2023-01-14 16:59:21 +01:00
Bnyro
a21b8715b3 Fix the queue order in the background player mode 2023-01-14 15:44:31 +01:00
Bnyro
773a41d830 Keep the queue when entering the audio only mode 2023-01-14 12:01:14 +01:00
Bnyro
b09b9ad3bf React to changes in the player notification 2023-01-13 18:44:41 +01:00
Bnyro
186925dfa1 Add play and pause functionality 2023-01-13 18:35:38 +01:00
Isira Seneviratne
56c76249eb Use ServiceCompat. 2023-01-11 07:37:13 +05:30
Bnyro
8cbb189bcf Fix that background mode doesn't start from beginning 2023-01-08 17:51:31 +01:00
Bnyro
e021a52dbc Reduce the amount of used data in background mode 2023-01-08 15:54:48 +01:00
Krunal Patel
fa924fe84f Fix ktlint format 2022-12-25 18:36:23 +05:30
Krunal Patel
6c427d3d76 Add concurrent downloads limit with preference setting 2022-12-25 15:33:28 +05:30
Krunal Patel
4ea77859bc Add subtitle download spinner 2022-12-25 14:37:01 +05:30
Krunal Patel
f5d17ba5bf Retry connection for DEFAULT_RETRY times on SocketTimeoutException 2022-12-25 13:14:32 +05:30
Krunal Patel
d4c6d7aacd Regenerate expired links using available stream info 2022-12-25 10:16:53 +05:30
Krunal Patel
295af6c6c6 Use cronet for download service connections 2022-12-24 23:39:56 +05:30
Krunal Patel
a38ef176ab Fix notification content action to open download fragment 2022-12-21 22:19:29 +05:30
Krunal Patel
d62c50c2c6 Fix download fragment layout and add uploader 2022-12-21 21:41:48 +05:30
Krunal Patel
b2fa951c09 Use Int.MAX - DownloadItem.id for notifications
Unique notification ids are required which do not conflict with other notifications. So, use ids from max value of Int.
2022-12-21 21:41:47 +05:30
Krunal Patel
4f0f9b7560 Fix notification action, download fragment and resource leak
- Bind service when service started using notification resume action.

- Use `HttpURLConnection` to download file.

- Use progress bar to determine overall progress.
2022-12-21 21:41:37 +05:30
Krunal Patel
8af9e20748 Fix|Change notification actions and appearance 2022-12-21 21:39:31 +05:30
Krunal Patel
887f658af3 Implement new download service with OkHttp
Use custom downloader and remove DownloadManager
2022-12-21 21:39:30 +05:30
Bnyro
8345269179 Improve the playlist cloning algorithm 2022-12-19 16:58:34 +01:00
Bnyro
197228f6d5 Hightlight the current resolution in the quality selection 2022-12-12 19:17:54 +01:00
Bnyro
a629b066f4 fix download notifications 2022-12-10 13:03:47 +01:00
Bnyro
81b14cfcd2 Hide the nav bar when zero items selected 2022-12-08 18:00:00 +01:00
Bnyro
ffcd7b7655 add support for playing the latest videos of a channel 2022-12-02 14:45:52 +01:00
Krunal Patel
93546382b9 Fix service not stopping on close video or removed from recents
Stop the `BackgroundMode` service when close icon on player is pressed.

Stop the `BackgroundMode` service when app is removed by user from task manager.
2022-11-30 11:02:19 +05:30
Bnyro
dde560e930 option to not auto-insert related videos 2022-11-22 16:59:24 +01:00
Bnyro
7c3780137d fix the watch position pref 2022-11-21 15:34:43 +01:00
Bnyro
6ca290b790 ktlint 2022-11-20 17:12:20 +01:00
Bnyro
11e7b3ac01 add support for the queue 2022-11-20 17:09:07 +01:00
Bnyro
3aca124372 fix updater issues 2022-11-19 16:24:38 +01:00
Bnyro
499c629923 fix crash when removing notification 2022-11-19 15:18:05 +01:00
Bnyro
6db616591c cleanup database queries 2022-11-18 18:42:59 +01:00
Bnyro
0786e8f87c add option for it 2022-11-12 19:04:40 +01:00
Bnyro
b1f06d92b3 fix some issues with downloads 2022-11-11 18:39:56 +01:00
Bnyro
632f4d6df4 allow clicking queue items 2022-11-06 11:50:04 +01:00
Bnyro
7d2eff7488 use enums 2022-11-06 10:11:19 +01:00