parent
c25ee25482
commit
45ca07115b
1 changed files with 2 additions and 0 deletions
|
@ -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 },
|
||||||
|
|
Loading…
Add table
Reference in a new issue