display a thumbnail while the media player is loading

This commit is contained in:
Akinwale Ariwodola 2019-01-23 05:39:06 +01:00
parent 6d234672b8
commit cf652a3e0f

View file

@ -349,6 +349,8 @@ class MediaPlayer extends React.PureComponent {
style={mediaPlayerStyle.player} style={mediaPlayerStyle.player}
rate={this.state.rate} rate={this.state.rate}
volume={this.state.volume} volume={this.state.volume}
poster={thumbnail}
posterResizeMode={"cover"}
paused={this.state.paused} paused={this.state.paused}
onLoad={this.onLoad} onLoad={this.onLoad}
onProgress={this.onProgress} onProgress={this.onProgress}