From b0ce88395ffe2abc1d7fbef7d258a9b60bf738aa Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Mon, 26 Oct 2020 12:02:02 +0400 Subject: [PATCH] Don't stream videos when external player is used External player feature doesn't work otherwise --- Telegram/SourceFiles/data/data_document.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/data/data_document.cpp b/Telegram/SourceFiles/data/data_document.cpp index f9fcac1e94..b80953ba57 100644 --- a/Telegram/SourceFiles/data/data_document.cpp +++ b/Telegram/SourceFiles/data/data_document.cpp @@ -1320,8 +1320,11 @@ bool DocumentData::useStreamingLoader() const { } bool DocumentData::canBeStreamed() const { - // For now video messages are not streamed. - return hasRemoteLocation() && supportsStreaming(); + // Streaming couldn't be used with external player + // Maybe someone brave will implement this once upon a time... + return hasRemoteLocation() + && supportsStreaming() + && (!cUseExternalVideoPlayer() || !isVideoFile()); } void DocumentData::setInappPlaybackFailed() {