2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Force streaming bit for stories videos.

This commit is contained in:
John Preston
2023-06-16 16:44:32 +04:00
parent fc0902adf0
commit 08c4f1f67a
3 changed files with 34 additions and 13 deletions

View File

@@ -443,7 +443,10 @@ void DocumentData::setattributes(
_additional = std::make_unique<StickerData>();
sticker()->type = StickerType::Webm;
}
if (isAudioFile() || isAnimation() || isVoiceMessage()) {
if (isAudioFile()
|| isAnimation()
|| isVoiceMessage()
|| storyMedia()) {
setMaybeSupportsStreaming(true);
}
}
@@ -1588,6 +1591,19 @@ void DocumentData::setRemoteLocation(
}
}
void DocumentData::setStoryMedia(bool value) {
if (value) {
_flags |= Flag::StoryDocument;
setMaybeSupportsStreaming(true);
} else {
_flags &= ~Flag::StoryDocument;
}
}
bool DocumentData::storyMedia() const {
return (_flags & Flag::StoryDocument);
}
void DocumentData::setContentUrl(const QString &url) {
_url = url;
}