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() {
|
||||
const { downloadPath, filename } = this.props;
|
||||
|
||||
return {
|
||||
name: filename,
|
||||
createReadStream: opts => {
|
||||
|
@ -144,7 +145,8 @@ class VideoPlayer extends React.PureComponent {
|
|||
},
|
||||
};
|
||||
}
|
||||
*playableType() {
|
||||
|
||||
playableType() {
|
||||
const { mediaType } = this.props;
|
||||
|
||||
return ["audio", "video"].indexOf(mediaType) !== -1;
|
||||
|
|
Loading…
Reference in a new issue