Skip to content
Snippets Groups Projects
Unverified Commit e6f62797 authored by Chocobozzz's avatar Chocobozzz
Browse files

Hide big play button on autoplay

parent 244e76a5
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,8 @@ class PeerTubePlugin extends Plugin {
this.playerElement = options.playerElement
if (this.autoplay === true) this.player.addClass('vjs-has-autoplay')
this.player.ready(() => {
const volume = getStoredVolume()
if (volume !== undefined) this.player.volume(volume)
......@@ -314,10 +316,8 @@ class PeerTubePlugin extends Plugin {
if (this.autoplay === true) {
this.player.posterImage.hide()
this.updateVideoFile(undefined, 0, () => {
this.seek(this.startTime)
this.player.play()
})
this.updateVideoFile(undefined, 0, () => this.seek(this.startTime))
} else {
// Proxy first play
const oldPlay = this.player.play.bind(this.player)
......
......@@ -115,6 +115,13 @@ $setting-transition-easing: ease-out;
}
}
// Hide the big play button on autoplay
&.vjs-has-autoplay {
.vjs-big-play-button {
display: none !important;
}
}
.vjs-control-bar,
.vjs-big-play-button,
.vjs-settings-dialog {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment