Add '1.75' playback speed

This commit is contained in:
Omar Roth 2019-07-14 10:08:46 -05:00
parent 1ae7b646b3
commit e8a56e0fea
No known key found for this signature in database
GPG key ID: B8254FB7EC3D37F2
3 changed files with 6 additions and 2 deletions

View file

@ -322,6 +322,10 @@ input[type="search"]::-webkit-search-cancel-button {
order: 6; order: 6;
} }
.vjs-playback-rate > .vjs-menu {
width: 50px;
}
.vjs-control-bar { .vjs-control-bar {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

View file

@ -1,7 +1,7 @@
var options = { var options = {
preload: 'auto', preload: 'auto',
liveui: true, liveui: true,
playbackRates: [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 2.0], playbackRates: [0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2.0],
controlBar: { controlBar: {
children: [ children: [
'playToggle', 'playToggle',

View file

@ -46,7 +46,7 @@ function update_value(element) {
<div class="pure-control-group"> <div class="pure-control-group">
<label for="speed"><%= translate(locale, "Default speed: ") %></label> <label for="speed"><%= translate(locale, "Default speed: ") %></label>
<select name="speed" id="speed"> <select name="speed" id="speed">
<% {2.0, 1.5, 1.25, 1.0, 0.75, 0.5, 0.25}.each do |option| %> <% {2.0, 1.75, 1.5, 1.25, 1.0, 0.75, 0.5, 0.25}.each do |option| %>
<option <% if preferences.speed == option %> selected <% end %>><%= option %></option> <option <% if preferences.speed == option %> selected <% end %>><%= option %></option>
<% end %> <% end %>
</select> </select>