Update video player to remove default big play button shown when paused (#1270)

This commit is contained in:
PikachuEXE 2021-05-29 04:29:35 +08:00 committed by GitHub
parent c6be835502
commit 754a4a8aa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -221,6 +221,9 @@ export default Vue.extend({
this.player.volume(this.volume) this.player.volume(this.volume)
this.player.playbackRate(this.defaultPlayback) this.player.playbackRate(this.defaultPlayback)
// Remove big play button
// https://github.com/videojs/video.js/blob/v7.12.1/docs/guides/components.md#basic-example
this.player.removeChild('BigPlayButton')
if (this.storyboardSrc !== '') { if (this.storyboardSrc !== '') {
this.player.vttThumbnails({ this.player.vttThumbnails({