72 Commits

Author SHA1 Message Date
Bnyro
0b059ccc12 feat(player): support for keyboard navigation 2024-02-19 21:56:33 +01:00
Bnyro
00babc7586 refactor: simplify NowPlayingNotification.kt 2024-02-18 17:13:51 +01:00
Bnyro
0a4ccae79a refactor: don't recreate player on orientation change 2024-02-18 16:59:53 +01:00
Manish Kumar Verma
9b7dcfacf3 fix: Replay video from notification player 2024-01-24 00:47:58 +05:30
Bnyro
6616ad40bf refactor: store notification ids in an enum 2024-01-22 14:12:00 +01:00
FineFindus
784d7909d3 Ensure correct actions management. 2024-01-03 16:30:24 +01:00
RafaRamos
65f113c445
fix: ensure correct persistent notification lifecycle (#5388)
Co-authored-by: Bnyro <bnyro@tutanota.com>
2023-12-30 16:11:30 +01:00
Bnyro
998abf8252 fix: clicking now playing notification in offline player opens audio player 2023-12-23 10:33:22 +01:00
FineFindus
b1c16cc622
style: run ktlint 2023-10-11 18:13:32 +02:00
Bnyro
1d236ded79 feat: allow resuming playback after disconnect 2023-09-10 14:33:28 +02:00
Bnyro
315f596776 refactor: move constants into the files they're actually used in 2023-09-10 12:51:03 +02:00
Bnyro
6a2c83a7bb fix: crash when an other media session with the same name exists 2023-09-08 15:38:01 +02:00
Isira Seneviratne
d808a48529 fix: Handle PendingIntentCompat changes 2023-09-08 05:15:12 +05:30
andrew-ld
3814fb76be fix: show buffer indicator in player notification 2023-08-12 14:59:31 +02:00
Bnyro
6a341f784b chore: simplify and fix some mediasessioncompat regressions 2023-08-10 13:33:52 +02:00
Bnyro
698f783df3 fix: improve thumbnail quality in notification 2023-08-10 11:44:12 +02:00
andrew-ld
5b5a644cce feat: support hardware keys for playback control 2023-08-09 22:56:57 +02:00
Bnyro
d3d78a93ce feat: forward and rewind controls for audio player 2023-08-04 18:28:58 +02:00
Bnyro
8e133f79ca chore: fix project formatting 2023-07-20 15:02:13 +02:00
Bnyro
4bb64bee05 Reformat project as attempt to fix the ktlint action 2023-06-24 19:57:00 +02:00
Bnyro
b1c4dba54d Kill background player when notification dismissed below SDK 27 2023-05-23 17:43:18 +02:00
Bnyro
7364986afe Fix notification actions on older Android versions and react on playback changes 2023-05-22 16:51:33 +02:00
Bnyro
33de6ca827 Remove PlayerNotificationManager left overs 2023-05-22 16:32:24 +02:00
Bnyro
b52583855e Built the notificaton without the PlayerNotificationManager 2023-05-22 15:59:10 +02:00
Bnyro
024d55dd16 Fix thumbnail quality in notification and use proper metadata 2023-05-18 16:37:00 +02:00
Bnyro
03d712d834 Media3: Fix notification actions and their position 2023-05-18 16:16:40 +02:00
Bnyro
95e65ae7e3 Migration to Media3 2023-05-15 17:21:49 +02:00
Bnyro
ffb31c3fc7 Fix CI builds by migrating the code to ktlint 0.49.0 2023-05-09 18:41:05 +02:00
Bnyro
dcdd1af176 Audio/background player for downloads 2023-04-10 15:54:09 +02:00
Isira Seneviratne
2ab3f5c0d8 Switch to AndroidX's PendingIntentCompat class. 2023-04-09 17:47:46 +05:30
Isira Seneviratne
38e7693e78 Use getSystemService() extension. 2023-04-02 09:15:01 +05:30
Isira Seneviratne
a8c8940026 Use toBitmap(). 2023-03-01 05:02:51 +05:30
Bnyro
b734c69ea8 Move helpers from .util to .ui.listeners and .helpers 2023-01-31 16:43:39 +01:00
Isira Seneviratne
b2e32105d3 Use bundleOf(). 2023-01-22 05:14:25 +05:30
Bnyro
a5c3132916 Fix the notification thumbnail vanishing 2023-01-21 11:24:25 +01:00
Isira Seneviratne
e306ba8a7f Add PendingIntentCompat helper methods. 2023-01-18 09:43:01 +05:30
Bnyro
ec49d3e61e fix ktlint 2023-01-16 14:58:53 +01:00
Bnyro
1641c75146 Fix that the notification thumbnail doesn't load sometimes 2023-01-16 14:44:37 +01:00
Bnyro
930df73efa Display the uploader in the notification 2023-01-16 14:33:38 +01:00
Bnyro
cf17c0dfee Use MD icons for the notification seek controls 2023-01-16 14:30:48 +01:00
Bnyro
6c750b51fa Better icons in the now playing notification 2023-01-16 14:23:36 +01:00
Bnyro
90e87c596e Add custom notification actions 2023-01-15 14:26:55 +01:00
Bnyro
12d4ee9e8e Cleanup the PiP window controls 2023-01-15 13:26:16 +01:00
Bnyro
a52bd6247c Move the bitmap scaling logic to the ImageHelper 2023-01-15 13:20:33 +01:00
Bnyro
3890bc3bcc Add indicators for current position and duration 2023-01-13 19:35:32 +01:00
Bnyro
59697caebf Layout and skip+prev functionality 2023-01-13 18:20:00 +01:00
Bnyro
04d8d64d9b Add an option to allow data saver on metered networks 2022-12-25 16:08:52 +01:00
Bnyro
d81bbf1094 use the proper exoplayer api for setting the notification icon 2022-12-22 10:48:46 +01:00
Bnyro
a8bfa8fc56 don't load thumbnail into notification in data saver mode 2022-12-12 18:55:54 +01:00
Bnyro
499c629923 fix crash when removing notification 2022-11-19 15:18:05 +01:00