Commit graph

76 commits

Author SHA1 Message Date
Benoit Marty
ac075f0558 Gallery: rework load more management 2024-12-18 12:00:37 +01:00
Benoit Marty
67e70cc615 Gallery: animate items. 2024-12-18 11:56:46 +01:00
Benoit Marty
8bd34ed702 Gallery: Voice message: render duration when the playback is not started. 2024-12-18 11:29:02 +01:00
Benoit Marty
16b348a2ce Fix ordering of media. 2024-12-18 11:23:53 +01:00
Benoit Marty
70f133a291 Gallery: Actions on files are actually only for voice messages. 2024-12-17 17:14:50 +01:00
Benoit Marty
c6dfc14366 There is no need to compute the number of column manually. 2024-12-17 17:14:50 +01:00
Benoit Marty
270fcb9029
Merge pull request #4045 from element-hq/feature/bma/inlinePlayer
Inline voice message player in the files gallery.
2024-12-17 14:24:54 +01:00
Benoit Marty
75e8ec6e7c Add inline voice player to the files gallery 2024-12-16 11:03:44 +01:00
Benoit Marty
49b413b92f Distinguish Audio and Voice media items. 2024-12-16 10:54:47 +01:00
Benoit Marty
85baf612ed Format file 2024-12-16 09:58:28 +01:00
bmarty
ff3fbe9cbf Sync Strings from Localazy 2024-12-16 00:28:36 +00:00
Benoit Marty
93e86b0fe1 Private fun 2024-12-13 18:50:39 +01:00
Benoit Marty
ba8d57f211 Improve title and subtitle for empty states in the gallery. 2024-12-13 18:30:30 +01:00
Benoit Marty
b236389ccb Reorder imports. 2024-12-13 16:00:18 +01:00
Benoit Marty
54c26857bd Ensure waveform is not null for voice message. 2024-12-13 10:43:59 +01:00
Benoit Marty
9ea08fb61e Fix test and add tests. 2024-12-13 09:47:52 +01:00
Benoit Marty
73f175a9a1 Rename preview 2024-12-13 09:45:49 +01:00
Benoit Marty
8809dcd0f5 Cleanup 2024-12-13 09:45:48 +01:00
Benoit Marty
7504a51917 Extract methods to toggle play and seek the player 2024-12-13 09:45:48 +01:00
Benoit Marty
e42846aa3e Remember the listener 2024-12-13 09:45:47 +01:00
Benoit Marty
497e5fdcf7 Move fun to a Factory file 2024-12-13 09:45:47 +01:00
Benoit Marty
db8cca7d0c Move some player controller to a dedicated package. 2024-12-13 09:45:46 +01:00
Benoit Marty
45a62a7d8f We do not need ExoPlayerWrapper anymore because we are not displaying the embedded controller. 2024-12-13 09:45:45 +01:00
Benoit Marty
ce09aac59d Add audio file support in the gallery and in the media viewer.
Make MediaPlayerControllerView compatible to control audio playback
2024-12-13 09:45:45 +01:00
Benoit Marty
da272ddb07 Implement month separator for the Gallery.
Improve day separator rendering in the timeline.
Use Today, Yesterday, and the name of the day if less than 7 days and do not render the year for the current year.
Improve date format for the media viewer.
Rework how date and time are computed.
ActionListView: Time can take more space, so update the layout.
2024-12-11 23:57:57 +01:00
Benoit Marty
0113a52c66 Fix test.
I'll iterate on the various date format in a separate PR.
2024-12-11 09:55:04 +01:00
Benoit Marty
1c691d2433 Add unit test on MediaItemsPostProcessor 2024-12-10 16:57:41 +01:00
Benoit Marty
ec821bb9c7 Order imports. 2024-12-10 15:58:44 +01:00
Benoit Marty
bb06b68110 Let the Presenter use real classes. 2024-12-10 15:56:54 +01:00
Benoit Marty
1b7d3a33b7 Add test on DefaultEventItemFactory 2024-12-10 15:16:41 +01:00
Benoit Marty
e5b34216e9 Media timeline: improve pagination logic. 2024-12-10 15:11:53 +01:00
Benoit Marty
36eceb75e8 Move bottom state to the View state 2024-12-10 13:38:28 +01:00
Benoit Marty
db0bca9721 Improve preview. 2024-12-10 13:10:25 +01:00
Benoit Marty
f314c25039 Iterate on Error rendering. 2024-12-10 13:04:53 +01:00
Benoit Marty
6fbd343076 Introduce GroupedMediaItems for code clarity 2024-12-10 13:01:33 +01:00
Benoit Marty
893c152272 Add missing previews 2024-12-10 12:28:42 +01:00
Benoit Marty
0f43e7c1b8 More formatting 2024-12-10 10:42:23 +01:00
Benoit Marty
6dbfa94a71 Fix test. 2024-12-10 09:56:08 +01:00
Benoit Marty
cce1c9974a Format file. 2024-12-10 09:28:46 +01:00
Benoit Marty
a89a9c35d8 Remove not needed MediaGalleryTimelineProvider 2024-12-10 09:24:31 +01:00
Benoit Marty
a40aff6618 Change scope to RoomScope 2024-12-10 09:04:14 +01:00
Benoit Marty
e55e977950 Remove TimelineMediaItemsCacheInvalidator, it is not needed. 2024-12-10 09:01:42 +01:00
Benoit Marty
323ae0ad2e Rename imageItems to imageAndVideoItems. 2024-12-10 08:57:36 +01:00
Benoit Marty
197fda5d0e Rename onDone to onBackClick. 2024-12-10 08:51:43 +01:00
Benoit Marty
ae0593d555 Rename preview. 2024-12-10 08:07:12 +01:00
Benoit Marty
73143d88c0 Fix preview 2024-12-09 17:52:59 +01:00
Benoit Marty
d81859705d Fix preview. 2024-12-09 17:34:52 +01:00
Benoit Marty
653c1e8214 Sync strings. 2024-12-09 17:16:29 +01:00
Benoit Marty
3e1b1c29d1 Media Gallery 2024-12-09 16:48:48 +01:00
Benoit Marty
5a8aabdb4d MediaViewer: Show divider above the caption only if there is a caption and the media is video (to have a divider with the video controller) 2024-12-06 10:19:19 +01:00