mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-05 05:15:22 +00:00
update timeout
This commit is contained in:
parent
dd4cd9314c
commit
b61907ad22
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ function VideoViewer(props: Props) {
|
||||||
if (shouldPlay) {
|
if (shouldPlay) {
|
||||||
const playPromise = player.play();
|
const playPromise = player.play();
|
||||||
const timeoutPromise = new Promise((resolve, reject) => {
|
const timeoutPromise = new Promise((resolve, reject) => {
|
||||||
setTimeout(() => reject(PLAY_TIMEOUT_ERROR), 1000);
|
setTimeout(() => reject(PLAY_TIMEOUT_ERROR), 2500);
|
||||||
});
|
});
|
||||||
|
|
||||||
Promise.race([playPromise, timeoutPromise]).catch(error => {
|
Promise.race([playPromise, timeoutPromise]).catch(error => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue