John Preston
5e7e7eaa83
FullMsgId rely on PeerId instead of ChannelId.
2021-12-22 10:11:57 +00:00
John Preston
2eb64e051b
Don't start animations from QEvent::Enter.
...
The enter/leave events may be sent from ~QWidget() and if we start
animating something with grabbing of widgets it crashes sometimes.
2021-11-29 15:56:50 +04:00
John Preston
3c0f80719e
Don't show playlist with mouse over controls.
2021-11-29 11:11:38 +04:00
John Preston
c153cdc70e
Change volume by wheel events on volume icon.
2021-11-29 11:11:16 +04:00
John Preston
07dfe88d62
Fix player controls with animations disabled.
2021-11-29 10:25:55 +04:00
John Preston
5cb5e3cc22
Use similar dropdown for playback speed.
2021-11-26 18:00:22 +04:00
John Preston
c947586091
Add reverse / shuffle options dropdown.
2021-11-26 18:00:22 +04:00
John Preston
551e1f787c
Move volume dropdown management to audio player.
2021-11-26 18:00:21 +04:00
John Preston
cdf09e0519
Use composition for playbackSpeed button.
2021-11-26 18:00:21 +04:00
John Preston
4b489ee7d2
Fade out controls in a narrow player.
2021-11-26 18:00:21 +04:00
John Preston
ca61b80fe5
Update audio player icons.
2021-11-26 18:00:21 +04:00
John Preston
38367dc1c7
Allow repeat all in shuffle mode.
2021-11-26 18:00:21 +04:00
John Preston
433169626b
Fix restarting shuffled playlist.
2021-11-26 18:00:21 +04:00
John Preston
5cd339332c
Implement shuffled playlist.
2021-11-26 18:00:20 +04:00
John Preston
7d89952541
Edit noforwards in group / channel type.
2021-11-26 18:00:20 +04:00
John Preston
0309eb023e
Cycle through repeat modes by repeat toggle button.
2021-11-26 18:00:20 +04:00
John Preston
ecb4d1d9ba
Support repeat all in the audio player.
2021-11-26 18:00:20 +04:00
John Preston
68378cf8e5
Support reversed order in the playlist.
2021-11-26 18:00:20 +04:00
John Preston
74cfaff100
Migrate Media::Player::Instance to rpl.
2021-11-26 18:00:20 +04:00
John Preston
92e2b91f81
Add repeat / order controls to the audio player.
2021-11-26 18:00:20 +04:00
John Preston
395100584f
Add a second dropdown with playback mode controls.
2021-11-26 18:00:20 +04:00
John Preston
8a1140c09f
Extract Media::Player::Dropdown widget.
2021-11-18 21:51:10 +04:00
John Preston
a2bf1544df
Remove Q_OBJECT from VolumeWidget.
2021-11-18 21:51:10 +04:00
John Preston
f4a6be2ed9
Move audio player icons to "player" folder.
2021-11-18 21:51:10 +04:00
John Preston
c534f3f22e
Some internal HistoryItem refactoring.
...
Replace most IsServerMsgId / id <=> 0 with isRegular().
Track isLocal / isHistoryEntry in flags.
Remove toHistoryMessage.
2021-11-07 12:50:13 +04:00
Ilya Fedin
847c01d605
Add Qt 6 support
...
Tested only on Linux so far
2021-10-21 13:15:00 +04:00
John Preston
19ce1edc16
Use base::SafeRound instead of std::round.
...
Previous assertion violations because of NaN from std::round were
in video streaming, see commits 27d58ba07b
, 8f5830d520
.
Now the crashes happened in the ConvertScale() call from a background
thread when preparing an image from clipboard for sending to a chat.
2021-09-27 12:13:57 +04:00
John Preston
8f9e394dd0
Fix build with GCC.
2021-09-07 23:41:08 +03:00
23rd
150dbef19f
Added ability to save icon of last voice playback speed.
2021-09-07 23:41:07 +03:00
23rd
81a72caf07
Added context menu to voice playback speed button.
...
Fixed #16868 .
Fixed #16138 .
2021-09-07 23:41:07 +03:00
udf
d53932382c
Set mixer volume before changing setting
2021-09-06 15:40:51 +03:00
23rd
bcbab7ad8e
Added ability to change playback speed for long audio files.
2021-09-01 01:23:20 +03:00
23rd
b635a9d4a5
Changed voice playback speed setting to storage value of speed.
2021-09-01 01:23:20 +03:00
23rd
e6f0c176f7
Moved AudioMsgId to separated file.
2021-09-01 01:23:20 +03:00
Ilya Fedin
ba9b72e038
Fix -Wunused-variable warnings with gcc
2021-07-19 22:31:27 +03:00
John Preston
4276b6cce0
Use rpl for Window::Theme::Background updates.
2021-07-15 16:42:36 +03:00
Ilya Fedin
79cc797aff
Fix -Wunused-variable warnings
2021-07-13 21:43:34 +03:00
23rd
a631a28092
Removed App::pixmapFromImageInPlace.
2021-07-06 12:13:06 +03:00
23rd
af7ea90246
Added floating panel of playing playlist for scheduled audio files.
2021-07-01 23:53:45 +03:00
23rd
4753a57091
Added ability to validate playlists in section of scheduled messages.
2021-07-01 23:53:45 +03:00
23rd
3fd772ce17
Moved file click handlers to separated file.
2021-06-18 07:30:54 +03:00
23rd
7924979dfb
Removed Ui::showPeerHistoryAtItem from facades.
2021-06-17 10:57:46 +04:00
23rd
8356bac6d7
Added new event of seeking to media player.
2021-06-10 23:00:55 +03:00
23rd
690fbe83fd
Unified and moved to single place generating of song name from SongData.
2021-05-31 08:54:22 +04:00
Ilya Fedin
ae0b9141dd
Trying to get rid of unused variables...
2021-03-15 11:40:44 +03:00
Ilya Fedin
23272430b4
Build with QT_NO_KEYWORDS
2021-03-04 12:07:54 +04:00
23rd
dd01ece14a
Replaced snap util function with std::clamp.
2021-01-24 10:41:10 +03:00
Ilya Fedin
86be105c25
Media Play key is expected to behave like Toggle Media Play/Pause
...
Looks like Qt maps "Media Play" to the common play/pause button on keyboards:
https://github.com/qt/qtbase/blob/5.15/src/platformsupport/input/xkbcommon/qxkbcommon.cpp#L293
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/windows/qwindowskeymapper.cpp#L392
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/android/androidjniinput.cpp#L519
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/android/androidjniinput.cpp#L607
While "Toggle Media Play/Pause" is some special case:
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/windows/qwindowskeymapper.cpp#L488
https://github.com/qt/qtbase/blob/5.15/src/plugins/platforms/ios/quiview.mm#L584
It is worth to behave on "Media Play" like on "Toggle Media Play/Pause".
2020-12-08 21:20:26 +03:00
John Preston
dde94d486b
Change button round radius.
2020-12-08 11:19:23 +04:00
John Preston
41591ff2e9
Add group calls top bar.
2020-12-01 09:45:21 +03:00