John Preston
9ce59730ff
Collect local DocumentMedia data.
2020-06-01 18:09:32 +04:00
John Preston
3f26fc9f55
Allow WebDocument video thumbnails.
2020-06-01 18:09:32 +04:00
John Preston
f4ed2c26ba
Save video thumbnail location to local storage.
2020-06-01 18:09:32 +04:00
John Preston
c61f3a0aba
Fix sending of thumbnailed inline result GIFs.
2020-06-01 18:09:31 +04:00
John Preston
3c9ca2eb94
Load and show video thumbnails in the panel.
2020-06-01 18:09:31 +04:00
John Preston
58f82620e0
Simplify media overview layouts.
2020-06-01 18:09:31 +04:00
John Preston
d64014c995
Clear DocumentMedia in ReplyPreview.
2020-06-01 18:09:31 +04:00
John Preston
fb322b5fc5
Use empty Storage::Cache::Key as nullopt.
2020-06-01 18:09:31 +04:00
John Preston
cbb9657044
Fix download task finalizing.
2020-06-01 18:09:30 +04:00
John Preston
3797753d16
Support different location types for thumbnails.
2020-06-01 18:09:30 +04:00
John Preston
956c3af0ae
Start DocumentData::thumbnail move to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
ff6365ec72
Fix crash in still downloaded ~DocumentData.
2020-06-01 18:09:30 +04:00
John Preston
1e9c79ca85
Move automaticLoad() to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
40f12a2584
Keep document byte data only in DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
97bab388ea
Use rpl for file download progress notifications.
2020-06-01 18:09:30 +04:00
John Preston
bf616036b3
Check loaded status through DocumentMedia if possible.
2020-06-01 18:09:30 +04:00
John Preston
669b79588e
Remove FilePathResolve::SaveFromData.
2020-06-01 18:09:30 +04:00
John Preston
33f4946242
Start using document bytes from DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
888e42df34
Remove data_document_good_thumbnail module.
2020-06-01 18:09:30 +04:00
John Preston
70c79eb6bd
Move sticker image to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
bdd3c51ab8
Move inline thumbnail image to DocumentMedia.
2020-06-01 18:09:30 +04:00
John Preston
7db53599e8
Use Data::DocumentMedia to store good thumbnails.
2020-06-01 18:09:29 +04:00
John Preston
6adcf660f1
Guard click handlers that capture session data.
...
Click handlers invocation is done by posting on_main,
so in rare cases the session may be already destroyed.
2020-05-04 17:38:49 +04:00
John Preston
ed715fb810
Update API scheme to layer 111.
2020-03-27 20:36:01 +04:00
Av
fdd841e5c4
Increase media cache memory size to solve flicker issue
...
When displaying large numbers of GIFs, Telegram's Media Cache runs out of size and unloads items that are still being displayed.
2020-03-10 11:47:26 +04:00
John Preston
db322cc19a
Move requestDialogEntry to Histories.
2020-02-21 18:48:30 +04:00
John Preston
66204bae95
Update API scheme on layer 107.
2019-12-29 14:41:10 +03:00
John Preston
d47c138f23
Save streaming player between message edits.
2019-12-28 17:56:06 +03:00
John Preston
418b0e7db0
Always try to stream video messages.
2019-12-13 17:51:14 +03:00
John Preston
38199276f1
Fix round video messages streaming.
2019-12-12 16:26:53 +03:00
John Preston
5b787a6759
Add more extensions as possibly-executable.
2019-12-08 17:54:21 +03:00
John Preston
ee94e78533
All mtproto downloads using DownloadMtprotoTask.
2019-12-05 11:32:33 +03:00
John Preston
4611727ab9
Rewrite webFileLoader without Storage::DownloadManager.
2019-12-04 15:15:58 +03:00
John Preston
27a83a7a09
Use base::FileNameFromUserString.
2019-10-20 14:22:46 +04:00
John Preston
0c713a930a
Remove app.h / facades.h from precompiled header.
2019-10-01 23:59:46 +03:00
John Preston
ee5423762a
Generate previews for cloud theme links.
2019-09-09 14:56:05 +03:00
John Preston
9c86f0e0a5
Save themes, apply and close editor on save.
2019-09-06 19:31:07 +03:00
John Preston
4929de2bfb
Apply cloud themes.
2019-09-06 19:31:06 +03:00
John Preston
ac8f924909
Show tdesktop cloud themes in a box.
2019-09-06 19:31:06 +03:00
John Preston
abf49e1672
Update API scheme.
2019-08-09 11:50:49 +01:00
John Preston
ff44094ded
Rename AuthSession to Main::Session.
2019-07-24 13:45:24 +02:00
John Preston
06982fdf04
Remove some calls to Auth().
2019-07-24 13:13:51 +02:00
John Preston
4d92d74de0
Add python extensions to the list of executables.
2019-07-24 08:02:20 +02:00
John Preston
567bf60644
Use getters in MTP classes.
2019-07-05 16:23:07 +02:00
John Preston
226ca6d117
Clear 'Cancelled' flag on download start.
...
Fixes #6123 .
2019-07-04 13:21:43 +02:00
John Preston
0a63eac4f6
Generate good thumbnail for animated stickers.
2019-07-04 10:20:36 +02:00
John Preston
35bc2cc2a5
Prepare lottie animations caching.
2019-07-01 17:57:34 +02:00
John Preston
8f3f898c47
Show animated stickers in StickerSetBox.
2019-07-01 17:57:32 +02:00
John Preston
87fc066e67
Use tr:: instead of lang().
2019-06-21 11:06:51 +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
a547f80ae9
Rename Window::Controller to Window::SessionController.
2019-06-06 13:21:40 +03:00
John Preston
04e3b250e7
Keep track of fully cached media files.
2019-06-04 14:30:44 +03:00
John Preston
274fed3cb0
Move several fields to bit flags in DocumentData.
2019-06-04 14:30:43 +03:00
John Preston
b2895a39ed
Register streaming loaders in Storage::Downloader.
2019-06-04 14:30:43 +03:00
John Preston
cca906d383
Use ready parts from loader in streaming.
2019-06-04 14:30:43 +03:00
John Preston
8704f6efd0
Use simple loader for non-streamable file types.
2019-06-04 14:30:43 +03:00
John Preston
e1114530ab
Working code for streaming downloader.
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
a968e112e8
Fix crash on invalid lottie file selection.
2019-05-30 18:09:44 +03:00
John Preston
3577e71782
Validate mime type of animated stickers.
2019-05-27 15:09:07 +02:00
John Preston
4ab3c2dfcb
Add support for gzip-ed animated stickers.
2019-05-27 14:11:27 +02:00
John Preston
61b6effccc
View some more files as stickers.
2019-05-27 14:11:26 +02:00
John Preston
707aa88974
Animated stickers proof of concept.
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
08bddc5579
Move messages data to AuthSession.
2019-05-01 16:11:42 +04:00
23rd
5d8888bb8b
Refactored code.
...
- Refactored passing message id to edit media.
- Removed get/setEditMedia from mainwidget.
- Combined onEditMedia and onSendFileConfirm in single method.
- Added argument in FileLoadTask to pass message id to edit media.
- Renamed flags in apiwrap.
- Added check for allowing edit media when use clipboard.
- Removed unused fileIsValidForAlbum.
- Removed LOGs.
- Replaced _isNotAlbum with _isAlbum.
- Removed _viaRemoteContent.
- Removed _newMediaPath.
- Added empty() to MessageGroupId.
2019-04-02 18:14:12 +04:00
23rd
89e1291d86
Added confirming only images and videos when edit album item.
...
- Added hiding of checkbox when edit album item.
2019-04-02 18:14:12 +04:00
John Preston
d3bf489bea
Improve base::binary_guard interface.
2019-04-02 14:33:52 +04:00
John Preston
8759d637ff
Use StorageFileLocation in mtpFileLoader.
2019-03-29 14:24:07 +04:00
John Preston
95023ca770
Use StorageFileLocation in streaming loader.
2019-03-29 14:24:07 +04:00
John Preston
aa8f62da9d
Support new ('modern') API file locations.
2019-03-29 14:24:07 +04:00
John Preston
5ec37e9112
Use separate click handler for OpenWith.
2019-03-13 13:35:47 +04:00
John Preston
c063d94aa5
Remove DocumentData::actionOnLoad. Fix GIF open.
2019-03-11 19:07:35 +04:00
John Preston
b0ff443eac
Fix sending of saved GIFs.
2019-03-11 12:08:21 +04:00
John Preston
01d763eed1
Use DocumentData::getDuration for all types.
2019-03-11 12:08:15 +04:00
John Preston
6887993f92
Report streaming failed.
2019-03-11 12:08:13 +04:00
John Preston
c27456277e
Support streaming of local files.
2019-03-11 12:08:11 +04:00
John Preston
2e824ace00
Fix video messages inline playback.
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
003d01206f
Allow .opus playback.
2019-03-11 12:08:10 +04:00
John Preston
8171828c2a
Fix build on GCC.
2019-03-11 12:08:09 +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
ccd04b98b9
Fix sync video to audio.
2019-03-11 11:49:54 +04:00
John Preston
d37b65e624
If stuck wait for three seconds of packets.
2019-03-11 11:49:54 +04:00
John Preston
3e9b811875
Implement precise seek in streaming.
2019-03-11 11:49:54 +04:00
John Preston
44c562d8ba
Fix streaming seek, display progress.
2019-03-11 11:49:53 +04:00
John Preston
93c548c013
Support streaming speed changing.
2019-03-11 11:49:53 +04:00
John Preston
a7d9281768
Implement pause / resume in streaming.
2019-03-11 11:49:53 +04:00
John Preston
3b369fc98e
Buffer audio when waiting data in streaming.
2019-03-11 11:49:53 +04:00
John Preston
e5cd7e6d40
Fix streaming from the middle of the file.
2019-03-11 11:49:53 +04:00
John Preston
ec9512899e
Support streaming playback speed 0.5 - 2.
2019-03-11 11:49:22 +04:00
John Preston
26ea6c4e63
Provide receivedTill for streamed tracks.
2019-03-11 11:49:22 +04:00
John Preston
8e44a7f5c4
Basic code for video streaming + testing on video.
2019-03-11 11:49:22 +04:00
John Preston
a093cb6274
Move some logic to Media::Streaming::Player.
2019-03-11 11:49:21 +04:00
John Preston
473e30e594
Basic code for media streaming + testing on music.
2019-03-11 11:49:21 +04:00
John Preston
d208236994
Accept binary_guard in crl::guard().
2019-02-17 15:56:07 +04:00
John Preston
032694ad9e
Move files to media/audio and media/clip.
2019-02-13 15:41:33 +03:00
John Preston
818662c2e6
Version 1.5.13: Don't automatically load executable files.
2019-02-12 14:28:33 +03:00
John Preston
45fda44924
Fix crash on bad sticker.
...
DocumentData::getStickerLarge and DocumentData::loaded go to a loop.
2019-02-11 15:52:36 +03:00
John Preston
d3159d86da
Version 1.5.12: Fix manual loading GIFs to cache.
2019-02-09 18:00:48 +03:00
John Preston
4d9464ed87
Remove flags checking for backgrounds.
...
Also limit image size to 2960px.
Fixes #5641 .
2019-02-04 18:53:00 +03:00
John Preston
3cfc3dcecf
Mark even more extensions as executables.
2019-01-30 17:59:55 +03:00
John Preston
5ca12a73c3
Use new HistoryWallPaper media type for wallpaper.
2019-01-29 19:26:19 +03:00
John Preston
c2744700c0
Mark more extensions as executables.
2019-01-29 14:52:33 +03:00
John Preston
a1baa23a52
Use both thumbnails in photos and documents.
...
Fixes #5602 .
2019-01-28 13:10:45 +03:00
John Preston
a70e72f75d
Application->Sandbox, Messenger->Application.
2019-01-23 12:51:58 +04:00
John Preston
805e4d01e7
Allow re-downloading failed media.
2019-01-21 10:49:44 +04:00
John Preston
1894b8fcf7
Handle t.me/bg links with wallpapers / colors.
2019-01-18 16:41:07 +04:00
John Preston
0f9c2a62fe
Load fullres images of new wallpapers.
2019-01-17 12:21:31 +04:00
John Preston
97b0288c7d
Add automatic loading of videos/files.
2018-12-25 22:15:22 +04:00
John Preston
e3cc8652e4
New structs for media autodownload settings.
2018-12-25 22:15:22 +04:00
John Preston
b0d01389c6
Add .terminal extension as executable on macOS.
2018-12-21 17:09:32 +04:00
John Preston
6d08394adc
Divide history_media_types to several modules.
2018-12-21 17:09:31 +04:00
John Preston
b75442a10e
No warning from verified peers.
2018-12-07 20:19:47 +04:00
John Preston
b10ccce44a
Warn before running executable files.
2018-12-05 12:30:05 +04:00
John Preston
3461f3dfc7
Destroy file loaders not delayed.
2018-11-26 11:33:29 +04:00
John Preston
3f58c930e3
Use separate download folder for support.
2018-11-22 17:15:52 +04:00
23rd
00969df06f
Made isAudioFile() check more strictly.
...
Thanks John Preston.
2018-11-15 09:43:39 +04:00
John Preston
aba6cc2c64
Don't force WEBP format for stickers.
...
Fixes #5374 .
2018-11-12 14:39:21 +04:00
John Preston
af5f85a288
Fix crash with dangling DocumentData pointers.
2018-11-12 14:39:20 +04:00
John Preston
f1c06d6743
Store StickerData::image in unique_ptr.
2018-11-09 19:16:47 +04:00
John Preston
2b95b96fa3
Store replyPreview in unique_ptr<Image>.
2018-11-09 19:14:31 +04:00
John Preston
ef38572d5a
Detect and send supports_streaming bit for videos.
2018-11-07 18:10:00 +04:00
John Preston
f2348fc749
Fix document unloading.
2018-11-04 15:51:39 +04:00
John Preston
4837117719
Use photo as video thumbnail in WebPageData.
2018-11-04 15:51:38 +04:00
John Preston
8000ff2cd7
Generate high quality thumbnail on sending video.
2018-11-04 15:51:38 +04:00
John Preston
da358615e0
Generate high quality video thumbnail when loaded.
2018-11-04 15:51:38 +04:00
John Preston
8e7117fa22
Don't unload all media on switching between chats.
2018-11-04 15:51:38 +04:00
John Preston
959859f57c
Forget least used documents gradually.
2018-11-04 15:51:37 +04:00
John Preston
595134cab5
Move image-related modules to ui/image/.
2018-11-04 15:51:37 +04:00
John Preston
8b76428c7e
Create ImagePtr-s using a factory method.
2018-11-04 15:51:37 +04:00
John Preston
4b5b79e415
Use final Image with different Images::Source-s.
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
a7772b922c
Improve sticker file reference refreshing.
2018-09-26 21:23:08 +03:00
John Preston
55f60866cb
Set correct cache tags for different file types.
2018-09-01 18:56:08 +03:00
John Preston
2e7f4c2f21
Use Storage::Cache::Database for file caching.
2018-09-01 18:56:08 +03:00
John Preston
51092fb6a9
Fix file references for faved stickers.
2018-09-01 18:56:08 +03:00
John Preston
c913c77fef
Refresh file references when sending stickers.
2018-08-20 17:26:28 +03:00
John Preston
839885910c
Pass FileOrigin in all file downloads.
2018-08-20 17:26:28 +03:00
John Preston
ee16070abe
Update API scheme to layer 86.
2018-08-20 17:26:27 +03:00
John Preston
0e9793b845
Move MimeType from utils to core/mime_type.
...
Also move to Core namespace.
2018-06-14 01:08:47 +03:00
John Preston
2bd8737410
Fix sticker inline bot results.
...
Fixes #3317 .
2018-06-03 20:48:02 +03:00
John Preston
dcf70b2847
Add ".download" for .lnk and .scf file names.
...
This is a workaround for some windows shell vulnerabilities.
See http://www.defensecode.com/whitepapers/
Stealing-Windows-Credentials-Using-Google-Chrome.pdf
2018-03-06 19:04:47 +03:00
John Preston
0f901b3728
Update API and use WebDocument for inline bots.
2018-03-06 16:49:44 +03:00
John Preston
bc171f625a
Remove some more symbols from filenames.
2018-02-15 15:34:38 +03:00
John Preston
a858ab5d0b
Fix crash in DocumentData destructor.
...
Keep AuthSession pointer in DocumentData for loader destruction.
2018-02-08 12:20:52 +03:00