Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Vidéos
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Vidéos
Commits
e6f62797
Unverified
Commit
e6f62797
authored
6 years ago
by
Chocobozzz
Browse files
Options
Downloads
Patches
Plain Diff
Hide big play button on autoplay
parent
244e76a5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
client/src/assets/player/peertube-videojs-plugin.ts
+4
-4
4 additions, 4 deletions
client/src/assets/player/peertube-videojs-plugin.ts
client/src/sass/video-js-custom.scss
+7
-0
7 additions, 0 deletions
client/src/sass/video-js-custom.scss
with
11 additions
and
4 deletions
client/src/assets/player/peertube-videojs-plugin.ts
+
4
−
4
View file @
e6f62797
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
client/src/sass/video-js-custom.scss
+
7
−
0
View file @
e6f62797
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment