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