mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-31 01:11:26 +00:00
Clean up log statements
This commit is contained in:
parent
a6e6d592e2
commit
a1f5572cb7
1 changed files with 0 additions and 8 deletions
|
@ -256,19 +256,13 @@ class MediaPlayer extends React.PureComponent<Props, State> {
|
||||||
// This is what render-media does with unplayable files
|
// This is what render-media does with unplayable files
|
||||||
const { claim, fileName, downloadPath, contentType } = this.props;
|
const { claim, fileName, downloadPath, contentType } = this.props;
|
||||||
|
|
||||||
console.log('render', contentType, MediaPlayer.SANDBOX_TYPES)
|
|
||||||
|
|
||||||
if (MediaPlayer.SANDBOX_TYPES.indexOf(contentType) > -1) {
|
if (MediaPlayer.SANDBOX_TYPES.indexOf(contentType) > -1) {
|
||||||
console.log('claim', claim)
|
|
||||||
const outpoint = `${claim.txid}:${claim.nout}`;
|
const outpoint = `${claim.txid}:${claim.nout}`;
|
||||||
|
|
||||||
console.log('fetch', `${MediaPlayer.SANDBOX_SET_BASE_URL}${outpoint}`)
|
|
||||||
|
|
||||||
return fetch(`${MediaPlayer.SANDBOX_SET_BASE_URL}${outpoint}`)
|
return fetch(`${MediaPlayer.SANDBOX_SET_BASE_URL}${outpoint}`)
|
||||||
.then(res => res.text())
|
.then(res => res.text())
|
||||||
.then(url => {
|
.then(url => {
|
||||||
const fileSource = { url: `${MediaPlayer.SANDBOX_CONTENT_BASE_URL}${url}` };
|
const fileSource = { url: `${MediaPlayer.SANDBOX_CONTENT_BASE_URL}${url}` };
|
||||||
console.log('set source', fileSource)
|
|
||||||
return this.setState({ fileSource });
|
return this.setState({ fileSource });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -333,8 +327,6 @@ class MediaPlayer extends React.PureComponent<Props, State> {
|
||||||
|
|
||||||
const isFileType = this.isSupportedFile();
|
const isFileType = this.isSupportedFile();
|
||||||
|
|
||||||
console.log('isFileType', isFileType);
|
|
||||||
|
|
||||||
const isFileReady = fileSource && isFileType;
|
const isFileReady = fileSource && isFileType;
|
||||||
const isPlayableType = this.playableType();
|
const isPlayableType = this.playableType();
|
||||||
const { isLoading, loadingStatus } = this.showLoadingScreen(isFileType, isPlayableType);
|
const { isLoading, loadingStatus } = this.showLoadingScreen(isFileType, isPlayableType);
|
||||||
|
|
Loading…
Add table
Reference in a new issue