Merge pull request #642 from lbryio/fix-play

Fix issues with playing uri
This commit is contained in:
Jeremy Kauffman 2017-10-01 12:35:39 -04:00 committed by GitHub
commit 17a164b10f
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();
}