/
erhoof
/
telegraf
Обзор
Документация
Войти
/
erhoof
/
telegraf
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
qml/components/messageContent/MessageAnimation.qml
33 строки
874 B
mbarashkov
Улучшено отображение анимаций
18 сен 2025, 14:13
18 сен 2025, 14:13
3d73745
Код
Авторство
О чём код?
import QtQuick 2.6 import Sailfish.Silica 1.0 import QtMultimedia 5.6 import ru.telegrafaurora.telegraf 1.0 import "../" import "../../js/functions.js" as Functions MessageContentBase { id: thisItem property var videoData: rawMessage.content.animation property string videoUrl: videoData.animation.local.path; property string thumbnailUrl: videoData.thumbnail.file.local.path; TDLibFile { id: videoFile autoLoad: true fileInformation: videoData.animation } TDLibFile { id: thumbnailFile autoLoad: true fileInformation: videoData.thumbnail.file } MessageAnimationVideoPlayer { id: animationPlayer source: videoUrl === "" ? videoFile.path : videoUrl thumbnailSource: thumbnailUrl == "" ? thumbnailFile.path : thumbnailUrl visible: parent.visible } }