display download error only when that uri is playing

This commit is contained in:
Travis Eden 2018-07-18 10:29:43 -04:00
parent d43dd78821
commit 17ca490db4

View file

@ -274,7 +274,7 @@ function handleLoadVideoError(uri, errorType = '') {
return (dispatch, getState) => { return (dispatch, getState) => {
// suppress error when another media is playing // suppress error when another media is playing
const { playingUri } = getState().content; const { playingUri } = getState().content;
if (!playingUri || playingUri === uri) { if (playingUri && playingUri === uri) {
dispatch({ dispatch({
type: ACTIONS.LOADING_VIDEO_FAILED, type: ACTIONS.LOADING_VIDEO_FAILED,
data: { uri }, data: { uri },