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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user