update timeout

This commit is contained in:
Sean Yesmunt 2020-04-29 10:31:44 -04:00
parent dd4cd9314c
commit b61907ad22

View file

@ -120,7 +120,7 @@ function VideoViewer(props: Props) {
if (shouldPlay) {
const playPromise = player.play();
const timeoutPromise = new Promise((resolve, reject) => {
setTimeout(() => reject(PLAY_TIMEOUT_ERROR), 1000);
setTimeout(() => reject(PLAY_TIMEOUT_ERROR), 2500);
});
Promise.race([playPromise, timeoutPromise]).catch(error => {