display a thumbnail while the media player is loading
This commit is contained in:
parent
6d234672b8
commit
cf652a3e0f
1 changed files with 2 additions and 0 deletions
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue