TDLib 1.7: MPEG4 thumbnails are too much, autostart animations
This commit is contained in:
parent
bf9c4e1e5e
commit
0d21174220
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ Item {
|
|||
|
||||
videoMessageComponent.videoType = videoMessageComponent.isVideoNote ? "video" : videoData['@type'];
|
||||
videoFileId = videoData[videoType].id;
|
||||
if (typeof videoData.thumbnail !== "undefined") {
|
||||
if (rawMessage.content['@type'] === "messageAnimation") {
|
||||
playButton.visible = true;
|
||||
fullscreenButton.visible = !videoMessageComponent.fullscreen;
|
||||
handlePlay();
|
||||
} else if (typeof videoData.thumbnail !== "undefined") {
|
||||
previewFileId = videoData.thumbnail.file.id;
|
||||
if (videoData.thumbnail.file.local.is_downloading_completed) {
|
||||
placeholderImage.source = videoData.thumbnail.file.local.path;
|
||||
|
|
Loading…
Reference in a new issue