MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / useStreamingLoader

Method useStreamingLoader

Telegram/SourceFiles/data/data_document.cpp:1623–1633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1621}
1622
1623bool DocumentData::useStreamingLoader() const {
1624 if (size <= 0) {
1625 return false;
1626 } else if (const auto info = sticker()) {
1627 return info->isWebm();
1628 }
1629 return isAnimation()
1630 || isVideoFile()
1631 || isAudioFile()
1632 || isVoiceMessage();
1633}
1634
1635bool DocumentData::canBeStreamed() const {
1636 return hasRemoteLocation() && supportsStreaming();

Callers 3

canBePlayedMethod · 0.80
setVideoQualitiesMethod · 0.80
uploadMethod · 0.80

Calls 1

isWebmMethod · 0.80

Tested by

no test coverage detected