John Preston
cbffeca8d5
Extract some Lottie::Animation code to Lottie::Player.
2019-07-01 17:57:37 +02:00
John Preston
4917ca7b32
Remove all legacy global namespace langs.
2019-06-21 11:06:52 +02:00
John Preston
87fc066e67
Use tr:: instead of lang().
2019-06-21 11:06:51 +02:00
John Preston
d3ca6b96a1
Use tr:: instead of __generic.
2019-06-21 11:06:50 +02:00
John Preston
a7c8feaecb
Use tr:: instead of langFactory and __rich.
2019-06-21 11:06:50 +02:00
John Preston
ca7c50fbcd
Remove pseudo-HTML from langpacks and Ui::Text::String.
2019-06-21 11:06:46 +02:00
John Preston
2162aa8df0
Rename Text to Ui::Text::String.
2019-06-21 11:06:46 +02:00
John Preston
0868a9f7b9
Use Controller::account in MainWindow.
2019-06-06 14:59:00 +03:00
John Preston
dd68c7e90d
Use Window::Controller to manage MainWindow.
2019-06-06 14:20:21 +03:00
John Preston
263bbf1788
Move _authSession to Main::Account.
2019-06-06 12:37:12 +03:00
John Preston
e53f4a5450
Close streamed video on Escape.
2019-06-05 17:54:12 +03:00
John Preston
c7b1683f6e
Beta version 1.7.4: Use loadedInMediaCache for songs.
2019-06-04 18:59:26 +03:00
John Preston
04e3b250e7
Keep track of fully cached media files.
2019-06-04 14:30:44 +03:00
John Preston
2255eb2c68
Show loaded till in playback slider.
2019-06-04 14:30:44 +03:00
John Preston
0ce5405eef
Show download progress in playback controls.
2019-06-04 14:30:43 +03:00
John Preston
021ada5e9e
Hide save button in media viewer when downloading.
2019-06-04 14:30:43 +03:00
John Preston
ebf2a678b1
Use a special FileLoader for streamed documents.
2019-06-04 14:30:43 +03:00
John Preston
8c0cd9b9e9
Prepare Media::Streaming::Reader to be shared.
2019-06-04 14:30:43 +03:00
John Preston
9c613fe2f7
Move system versions to platform/platform_info.
2019-06-04 14:23:14 +03:00
John Preston
3577e71782
Validate mime type of animated stickers.
2019-05-27 15:09:07 +02:00
John Preston
cfff744cb1
Parse and render lottie in the background.
2019-05-27 14:11:26 +02:00
John Preston
f073963582
Preview lottie animations in media viewer.
2019-05-27 14:11:26 +02:00
John Preston
22c2054dcf
First attempt to use QtLottie.
2019-05-27 14:11:26 +02:00
John Preston
08bddc5579
Move messages data to AuthSession.
2019-05-01 16:11:42 +04:00
John Preston
321e4ffe9c
Don't auto-resume video when seeking.
2019-04-08 14:34:31 +04:00
John Preston
5f8ede194b
Fix rendering of large images on macOS.
2019-04-03 16:42:08 +04:00
John Preston
99bb09374d
Use new animations engine everywhere.
2019-04-02 14:33:53 +04:00
John Preston
a6e96f9a28
Use new animations engine in all Basic-s.
2019-04-02 14:33:53 +04:00
John Preston
cd3c1c6dc0
Use new animations engine for typings.
2019-04-02 14:33:53 +04:00
John Preston
3bd1bbc77a
Use Streaming::Player in video messages playback.
2019-03-26 16:51:39 +04:00
John Preston
2701e63406
Allow revoking only sent messages.
2019-03-24 12:12:43 +04:00
John Preston
a34e998c42
Handle fwd_from without a link to the account.
2019-03-24 12:12:42 +04:00
John Preston
c0959ceaeb
Start video when moving to it in media viewer.
...
Fixes #5796 .
2019-03-18 11:44:49 +04:00
John Preston
8f9bed0443
Fix document caption in media viewer.
...
Regression was introduced in 5cae57601a
.
Fixes #5799 , fixes #5802 , fixes #5804 .
2019-03-17 23:00:09 +04:00
John Preston
bc2b0f8392
Add button to download video files.
...
Fixes #5781 .
2019-03-15 14:15:04 +04:00
John Preston
f2a7cf5c64
Improve shared videos design.
2019-03-15 12:09:48 +04:00
John Preston
5cae57601a
Allow video download from media viewer.
2019-03-14 16:03:02 +04:00
John Preston
2b7fb7a9a6
Pause music only when video playback starts.
2019-03-14 14:45:08 +04:00
John Preston
5ec37e9112
Use separate click handler for OpenWith.
2019-03-13 13:35:47 +04:00
John Preston
ef682e7023
Fix photos in overview with disabled autodownload.
...
Fixes #5599 , fixes #5747 .
2019-03-12 12:55:26 +04:00
John Preston
846499a4fb
Fix volume saving to settings.
2019-03-12 09:09:53 +04:00
John Preston
c063d94aa5
Remove DocumentData::actionOnLoad. Fix GIF open.
2019-03-11 19:07:35 +04:00
John Preston
261720c941
Fix radial animations on macOS.
...
QOpenGLWidget doesn't draw antialiased ellipses and arcs,
so we use a software rasterizer and then draw the resulting image.
2019-03-11 13:51:15 +04:00
John Preston
a886c598c1
Fix non-streamable videos layout.
2019-03-11 12:08:20 +04:00
John Preston
18c42954ae
Fix sparse frame painting on macOS.
2019-03-11 12:08:20 +04:00
John Preston
3706be77ea
Fix macOS media viewer controls hiding.
2019-03-11 12:08:19 +04:00
John Preston
f481f1e142
Make videos larger, fix playback animation.
2019-03-11 12:08:19 +04:00
John Preston
5c4b459f57
Use new animations in video viewer.
2019-03-11 12:08:18 +04:00
John Preston
92332b45ea
Don't reset zoom on video seek.
2019-03-11 12:08:17 +04:00
John Preston
b742c95516
Support streamed video rotation.
2019-03-11 12:08:16 +04:00
John Preston
0f4ccce0e1
Update ffmpeg.
2019-03-11 12:08:15 +04:00
John Preston
01d763eed1
Use DocumentData::getDuration for all types.
2019-03-11 12:08:15 +04:00
John Preston
22356eb01c
Fix initial video duration display.
2019-03-11 12:08:14 +04:00
John Preston
6887993f92
Report streaming failed.
2019-03-11 12:08:13 +04:00
John Preston
71b733a018
Display receivedTill in video player controls.
2019-03-11 12:08:13 +04:00
John Preston
e2eb9cea00
Apply sample_aspect_ratio in streaming.
2019-03-11 12:08:12 +04:00
John Preston
99e96a5b13
Allow looping video without audio in streaming.
2019-03-11 12:08:12 +04:00
John Preston
c27456277e
Support streaming of local files.
2019-03-11 12:08:11 +04:00
John Preston
dafa286b18
Show option to download on streaming error.
2019-03-11 12:08:11 +04:00
John Preston
8171828c2a
Fix build on GCC.
2019-03-11 12:08:09 +04:00
John Preston
c574119718
Implement file reference update in streaming.
2019-03-11 12:08:08 +04:00
John Preston
648cd44ddd
Display correct video / music state.
2019-03-11 12:08:08 +04:00
John Preston
fde8dd9607
Play streaming audio in player.
2019-03-11 12:08:08 +04:00
John Preston
f1e0cd6c1d
Play streaming video in mediaview.
2019-03-11 11:52:11 +04:00
John Preston
d37b65e624
If stuck wait for three seconds of packets.
2019-03-11 11:49:54 +04:00
23rd
f48d8538c0
Added ability to see attached stickers on photos.
2019-03-10 22:10:36 +04:00
23rd
78d00bcf22
Refactored counting idle time.
...
- psIdleTime() was replaced with Platform::LastUserInputTime().
- _lastTimeVideoPlayedAt was moved to Application as _lastNonIdleTime.
- Call of updateNonIdle() was added while voice is recording.
- Fixed #5695 .
- Thanks Preston. =)
2019-03-10 22:02:58 +04:00
23rd
4ed1835d32
Fixed Ctrl + F shortcut for full screen toggle in media view.
2019-02-20 11:43:50 +04:00
John Preston
fe618bd652
Use crl::time/now instead of TimeMs/getms.
2019-02-19 11:06:33 +04:00
John Preston
7c1704e68b
Fix crash in EditCaptionBox.
2019-02-17 13:51:53 +04:00
John Preston
032694ad9e
Move files to media/audio and media/clip.
2019-02-13 15:41:33 +03:00
John Preston
ae6c152988
Version 1.5.15: Fix macOS media viewer overlay.
...
Regression was introduced in c1a0dad2b7
.
2019-02-12 19:55:35 +03:00
John Preston
c1a0dad2b7
Use QOpenGLWidget for macOS media viewer overlay.
...
Also move mediaview to media/view/media_view_overlay_widget.
2019-02-12 14:00:47 +03:00
John Preston
a1baa23a52
Use both thumbnails in photos and documents.
...
Fixes #5602 .
2019-01-28 13:10:45 +03:00
John Preston
c5a41e1f55
Divide data/data_peer and remove from PCH.
2019-01-17 12:21:29 +04:00
John Preston
6d08394adc
Divide history_media_types to several modules.
2018-12-21 17:09:31 +04:00
John Preston
bf31722931
Show collage/slideshow as an album in MediaView.
2018-11-04 15:51:38 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
2018-11-04 15:51:37 +04:00
John Preston
113f665295
Move Image and derived to ui/image.
2018-11-04 15:51:36 +04:00
John Preston
2812d2911f
Remove media_volume icon, use volume slider.
2018-10-15 11:06:27 +03:00
John Preston
2e5a0e056c
Move to std::optional.
2018-09-21 19:28:46 +03:00
John Preston
1ffbec0215
Finish animations disabling.
...
Replace some infinite animations with static layouts.
2018-09-20 21:26:10 +03:00
John Preston
839885910c
Pass FileOrigin in all file downloads.
2018-08-20 17:26:28 +03:00
John Preston
777bf7d8d9
Fix video seeking.
...
Regression was introduced in d0e854e9d8
.
Each time you hide() a widget its mousePress state is reset and
mouseMoveEvent() / mouseReleaseEvent() handlers are never called.
So you can't toggle (hide + show) widgets that are mouse-pressed.
Fixes #4802 .
2018-06-06 11:58:07 +03:00
John Preston
dd81f5d59f
Replace base::lambda with shorter term.
...
base::lambda -> Fn (type alias for std::function).
base::lambda_once -> FnMut (type alias for base::unique_function).
base::lambda_guarded -> crl::guard.
base::lambda_call_type_t -> crl::deduced_call_type.
2018-06-04 18:38:27 +03:00
John Preston
d0e854e9d8
Allow showing boxes in passport panel.
2018-06-03 23:16:35 +03:00
John Preston
5e7642b42a
Support markdown and replaces in media captions.
2018-05-24 16:03:21 +03:00
John Preston
8a56ede187
Move all (item/view/media) maps to Data::Session.
2018-02-08 12:20:49 +03:00
John Preston
7425e80f05
Use HistoryMedia as view, add Data::Media.
2018-02-08 12:20:48 +03:00
John Preston
97a9089ebf
Move draw / getState code to HistoryView::Message.
...
Item dimensions broken for now.
Also remove history.h from pch.
2018-02-08 12:20:48 +03:00
John Preston
bee474f6e9
Remove history_item and layout from pch.
...
Also move some code to separate modules.
Also create history item views by Window::Controller.
2018-02-08 12:20:47 +03:00
John Preston
794e31505b
First version of feed section view.
2018-02-08 12:20:46 +03:00
John Preston
ea7441ae77
Use single LEGAL file with license and copyright.
2018-01-03 13:23:14 +03:00
John Preston
ea51f976f2
Alpha version 1.2.5: Workaround GCC 7.2 ICE.
2017-12-29 21:47:49 +03:00
John Preston
2a409e3734
Add files from clipboard to composed album.
...
Fixes #4243 .
2017-12-29 20:02:23 +03:00
John Preston
0171a4e874
Handle click on group thumb item in MediaView.
2017-12-29 17:58:53 +03:00
John Preston
2bcbb5a5be
Display group / userpic thumbnails in MediaView.
2017-12-29 16:44:36 +03:00
John Preston
5b4694a4eb
Move text options constant to a separate module.
...
Also start MediaView group thumbs code.
2017-12-28 16:06:06 +03:00
John Preston
d1687ab963
Improve info wrapping in section / layer.
...
Also move layerwidget to window/layer_widget.
Also replace ui/effects/widget_fade_wrap with ui/wrap/fade_wrap.
2017-11-16 07:59:05 +04:00
John Preston
66662e02a6
Fix crash in video player seeking.
...
Regression was introduced in 87ff770020
.
Seek handler may destroy controller so first the playback is updated.
2017-05-31 11:58:43 +03:00