fix(player): options video - download video should prefer downloadUrl instead of streamingUrl

Signed-off-by: Lachezar Lechev <lachezar@ambire.com>
This commit is contained in:
Lachezar Lechev 2025-11-27 12:14:02 +02:00
parent 5f1841bfb8
commit 4c407392dd
No known key found for this signature in database
GPG key ID: 69BDCB3ED8CE8037

View file

@ -54,8 +54,8 @@ const OptionsMenu = ({ className, stream, playbackDevices, extraSubtitlesTracks,
}
}, [streamingUrl, downloadUrl]);
const onDownloadVideoButtonClick = React.useCallback(() => {
if (streamingUrl || downloadUrl) {
platform.openExternal(streamingUrl || downloadUrl);
if (downloadUrl || streamingUrl ) {
platform.openExternal(downloadUrl || streamingUrl);
}
}, [streamingUrl, downloadUrl]);