Support rendering Webm videos with alpha.

This commit is contained in:
John Preston
2022-01-19 17:45:51 +03:00
parent 1755ead681
commit 8b7d2c880e
25 changed files with 139 additions and 44 deletions

View File

@@ -38,7 +38,7 @@ ItemSticker::ItemSticker(
? 1.0
: (_pixmap.height() / float64(_pixmap.width())));
});
if (stickerData->animated) {
if (stickerData->isLottie()) {
_lottie.player = ChatHelpers::LottiePlayerFromDocument(
_mediaView.get(),
ChatHelpers::StickerLottieSize::MessageHistory,