diff --git a/src/players/FilePlayer.js b/src/players/FilePlayer.js index 4eabf2d8..baaed3ba 100644 --- a/src/players/FilePlayer.js +++ b/src/players/FilePlayer.js @@ -30,7 +30,7 @@ export default class FilePlayer extends Base { this.player.pause() } stop () { - this.player.src = '' + this.player.removeAttribute('src') } seekTo (fraction) { super.seekTo(fraction) @@ -53,17 +53,12 @@ export default class FilePlayer extends Base { } render () { const Media = AUDIO_EXTENSIONS.test(this.props.url) ? 'audio' : 'video' - const style = { display: this.props.url ? 'block' : 'none' } const attributes = this.props.fileConfig.attributes - return ( - - ) + const style = { + width: '100%', + height: '100%', + display: this.props.url ? 'block' : 'none' + } + return } }