Skip to content

Commit

Permalink
fix(player): Hid default captions layer to favor player's captions layer
Browse files Browse the repository at this point in the history
  • Loading branch information
rafa8626 committed Nov 1, 2018
1 parent 31666b9 commit c06adcf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/openplayer.css
Original file line number Diff line number Diff line change
Expand Up @@ -664,8 +664,9 @@
.op-player[data-fullscreen='true'].op-controls--hidden .op-controls {
bottom: -40px;
}
.op-player video::-webkit-media-controls {
display: none;
.op-player video::-webkit-media-controls,
.op-player video::-webkit-media-text-track-container {
display: none !important;
}

/* == Captions =============== */
Expand Down
2 changes: 1 addition & 1 deletion dist/openplayer.min.css

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions src/css/player.css
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,9 @@
.op-player[data-fullscreen='true'].op-controls--hidden .op-controls {
bottom: -40px;
}
.op-player video::-webkit-media-controls {
display: none;
.op-player video::-webkit-media-controls,
.op-player video::-webkit-media-text-track-container {
display: none !important;
}

/* == Captions =============== */
Expand Down

0 comments on commit c06adcf

Please sign in to comment.