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

Method canBePlayed

Telegram/SourceFiles/data/data_document_media.cpp:383–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381}
382
383bool DocumentMedia::canBePlayed() const {
384 return !_owner->inappPlaybackFailed()
385 && _owner->useStreamingLoader()
386 && (loaded() || _owner->canBeStreamed());
387}
388
389bool DocumentMedia::thumbnailEnoughForSticker() const {
390 const auto &location = owner()->thumbnailLocation();

Callers 15

applyVideoQualityMethod · 0.80
saveCancelMethod · 0.80
displayDocumentMethod · 0.80
canInitStreamingMethod · 0.80
preloadDataMethod · 0.80
ResolveDocumentFunction · 0.80
drawMethod · 0.80
textStateMethod · 0.80
GifMethod · 0.80
drawMethod · 0.80

Calls 3

inappPlaybackFailedMethod · 0.80
useStreamingLoaderMethod · 0.80
canBeStreamedMethod · 0.80

Tested by

no test coverage detected