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

Method automaticLoad

Telegram/SourceFiles/data/data_document_media.cpp:131–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131void VideoPreviewState::automaticLoad(Data::FileOrigin origin) const {
132 Expects(_media != nullptr);
133
134 if (_usingThumbnail) {
135 _media->videoThumbnailWanted(origin);
136 } else {
137 _media->automaticLoad(origin, nullptr);
138 }
139}
140
141::Media::Clip::ReaderPointer VideoPreviewState::makeAnimation(
142 Fn<void(::Media::Clip::Notification)> callback) const {

Callers

nothing calls this directly

Calls 15

AppClass · 0.85
DocumentFileNameForSaveFunction · 0.85
DetectNameTypeFunction · 0.85
ShouldFunction · 0.85
videoThumbnailWantedMethod · 0.80
isAnimationMethod · 0.80
saveToCacheMethod · 0.80
filenameMethod · 0.80
settingsMethod · 0.80
QStringClass · 0.50
uploadingMethod · 0.45

Tested by

no test coverage detected