removed additional unused code
This commit is contained in:
parent
f61a8a4372
commit
913d642b52
1 changed files with 3 additions and 1 deletions
|
@ -137,6 +137,7 @@ class VideoPlayer extends React.PureComponent {
|
||||||
|
|
||||||
file() {
|
file() {
|
||||||
const { downloadPath, filename } = this.props;
|
const { downloadPath, filename } = this.props;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: filename,
|
name: filename,
|
||||||
createReadStream: opts => {
|
createReadStream: opts => {
|
||||||
|
@ -144,7 +145,8 @@ class VideoPlayer extends React.PureComponent {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
*playableType() {
|
|
||||||
|
playableType() {
|
||||||
const { mediaType } = this.props;
|
const { mediaType } = this.props;
|
||||||
|
|
||||||
return ["audio", "video"].indexOf(mediaType) !== -1;
|
return ["audio", "video"].indexOf(mediaType) !== -1;
|
||||||
|
|
Loading…
Reference in a new issue