removed unused code
This commit is contained in:
parent
ee002597fc
commit
f61a8a4372
1 changed files with 0 additions and 2 deletions
|
@ -137,13 +137,11 @@ class VideoPlayer extends React.PureComponent {
|
||||||
|
|
||||||
file() {
|
file() {
|
||||||
const { downloadPath, filename } = this.props;
|
const { downloadPath, filename } = this.props;
|
||||||
const stat = fs.statSync(downloadPath);
|
|
||||||
return {
|
return {
|
||||||
name: filename,
|
name: filename,
|
||||||
createReadStream: opts => {
|
createReadStream: opts => {
|
||||||
return fs.createReadStream(downloadPath, opts);
|
return fs.createReadStream(downloadPath, opts);
|
||||||
},
|
},
|
||||||
length: stat.size,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
*playableType() {
|
*playableType() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue