mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Don't stream videos when external player is used
External player feature doesn't work otherwise
This commit is contained in:
parent
f749647567
commit
b0ce88395f
1 changed files with 5 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue