Fix issues with playing uri #642

Merged
btzr-io merged 4 commits from fix-play into master 2017-10-01 18:35:40 +02:00
2 changed files with 5 additions and 0 deletions

View file

@ -21,6 +21,8 @@ Web UI version numbers should always match the corresponding version of LBRY App
* While editing a publish, the URL will no longer change if you select a new file. (#601)
* Fixed issues with opening the folder for a file (#606)
* Be consistent with the step property on credit inputs (#604)
* Fixed issue when file fails to download (#642)
* Fixed issue after accessing a video without enough credits (#605)
### Deprecated
*

View file

@ -295,6 +295,7 @@ export function doLoadVideo(uri) {
streamInfo.error == "Timeout";
if (timeout) {
dispatch(doSetPlayingUri(null));
dispatch({
type: types.LOADING_VIDEO_FAILED,
data: { uri },
@ -306,6 +307,7 @@ export function doLoadVideo(uri) {
}
})
.catch(error => {
dispatch(doSetPlayingUri(null));
dispatch({
type: types.LOADING_VIDEO_FAILED,
data: { uri },
@ -351,6 +353,7 @@ export function doPurchaseUri(uri) {
const { cost } = costInfo;
if (cost > balance) {
dispatch(doSetPlayingUri(null));
dispatch(doOpenModal(modals.INSUFFICIENT_CREDITS));
return Promise.resolve();
}