Reset playing uri
This commit is contained in:
Baltazar Gomez 2017-09-30 23:39:00 -06:00 committed by GitHub
parent c25ee25482
commit 45ca07115b

View file

@ -295,6 +295,7 @@ export function doLoadVideo(uri) {
streamInfo.error == "Timeout"; streamInfo.error == "Timeout";
if (timeout) { if (timeout) {
dispatch(doSetPlayingUri(null));
dispatch({ dispatch({
type: types.LOADING_VIDEO_FAILED, type: types.LOADING_VIDEO_FAILED,
data: { uri }, data: { uri },
@ -306,6 +307,7 @@ export function doLoadVideo(uri) {
} }
}) })
.catch(error => { .catch(error => {
dispatch(doSetPlayingUri(null));
dispatch({ dispatch({
type: types.LOADING_VIDEO_FAILED, type: types.LOADING_VIDEO_FAILED,
data: { uri }, data: { uri },