Don't stream videos when external player is used

External player feature doesn't work otherwise
This commit is contained in:
Ilya Fedin 2020-10-26 12:02:02 +04:00 committed by John Preston
parent f749647567
commit b0ce88395f
1 changed files with 5 additions and 2 deletions

View File

@ -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() {