2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

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

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