2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Detect and send supports_streaming bit for videos.

This commit is contained in:
John Preston
2018-11-07 18:07:20 +04:00
parent a2b04c9d71
commit ef38572d5a
9 changed files with 137 additions and 5 deletions

View File

@@ -152,6 +152,7 @@ public:
int32 duration() const;
bool isImage() const;
void recountIsImage();
bool supportsStreaming() const;
void setData(const QByteArray &data) {
_data = data;
}
@@ -237,6 +238,8 @@ private:
QByteArray _data;
std::unique_ptr<DocumentAdditionalData> _additional;
int32 _duration = -1;
bool _isImage = false;
bool _supportsStreaming = false;
ActionOnLoad _actionOnLoad = ActionOnLoadNone;
FullMsgId _actionOnLoadMsgId;