summaryrefslogtreecommitdiffstats
path: root/webbrowser
diff options
context:
space:
mode:
authorThomas Groman <tgroman@nuegia.net>2020-05-07 22:31:49 -0700
committerThomas Groman <tgroman@nuegia.net>2020-05-07 22:31:49 -0700
commit31d5e092a19a9d527f5d259da45938c95e57aead (patch)
treef214dba0e913e2e64e09d200fb2a45caeb7dff38 /webbrowser
parentfcff4a7af21b8445410910103b984acc29354db5 (diff)
downloadwebbrowser-31d5e092a19a9d527f5d259da45938c95e57aead.tar
webbrowser-31d5e092a19a9d527f5d259da45938c95e57aead.tar.gz
webbrowser-31d5e092a19a9d527f5d259da45938c95e57aead.tar.lz
webbrowser-31d5e092a19a9d527f5d259da45938c95e57aead.tar.xz
webbrowser-31d5e092a19a9d527f5d259da45938c95e57aead.zip
add 1.25x speed to html5 video playback
Diffstat (limited to 'webbrowser')
-rw-r--r--webbrowser/base/content/browser-context.inc10
-rw-r--r--webbrowser/base/content/nsContextMenu.js2
-rw-r--r--webbrowser/locales/en-US/chrome/browser/browser.dtd2
3 files changed, 11 insertions, 3 deletions
diff --git a/webbrowser/base/content/browser-context.inc b/webbrowser/base/content/browser-context.inc
index 38c4725..c53440e 100644
--- a/webbrowser/base/content/browser-context.inc
+++ b/webbrowser/base/content/browser-context.inc
@@ -1,7 +1,4 @@
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
<menuseparator id="page-menu-separator"/>
<menuitem id="spell-no-suggestions"
@@ -85,6 +82,13 @@
name="playbackrate"
checked="true"
oncommand="gContextMenu.mediaCommand('playbackRate', 1.0);"/>
+ <menuitem id="context-media-playbackrate-125x"
+ label="&mediaPlaybackRate125x.label;"
+ accesskey="&mediaPlaybackRate125x.accesskey;"
+ type="radio"
+ name="playbackrate"
+ checked="true"
+ oncommand="gContextMenu.mediaCommand('playbackRate', 1.25);"/>
<menuitem id="context-media-playbackrate-150x"
label="&mediaPlaybackRate150x.label;"
accesskey="&mediaPlaybackRate150x.accesskey;"
diff --git a/webbrowser/base/content/nsContextMenu.js b/webbrowser/base/content/nsContextMenu.js
index 916dd26..1a8ee69 100644
--- a/webbrowser/base/content/nsContextMenu.js
+++ b/webbrowser/base/content/nsContextMenu.js
@@ -393,6 +393,7 @@ nsContextMenu.prototype = {
if (onMedia) {
this.setItemAttr("context-media-playbackrate-050x", "checked", this.target.playbackRate == 0.5);
this.setItemAttr("context-media-playbackrate-100x", "checked", this.target.playbackRate == 1.0);
+ this.setItemAttr("context-media-playbackrate-100x", "checked", this.target.playbackRate == 1.25);
this.setItemAttr("context-media-playbackrate-150x", "checked", this.target.playbackRate == 1.5);
this.setItemAttr("context-media-playbackrate-200x", "checked", this.target.playbackRate == 2.0);
this.setItemAttr("context-media-loop", "checked", this.target.loop);
@@ -405,6 +406,7 @@ nsContextMenu.prototype = {
this.setItemAttr("context-media-playbackrate", "disabled", hasError);
this.setItemAttr("context-media-playbackrate-050x", "disabled", hasError);
this.setItemAttr("context-media-playbackrate-100x", "disabled", hasError);
+ this.setItemAttr("context-media-playbackrate-125x", "disabled", hasError);
this.setItemAttr("context-media-playbackrate-150x", "disabled", hasError);
this.setItemAttr("context-media-playbackrate-200x", "disabled", hasError);
this.setItemAttr("context-media-showcontrols", "disabled", hasError);
diff --git a/webbrowser/locales/en-US/chrome/browser/browser.dtd b/webbrowser/locales/en-US/chrome/browser/browser.dtd
index c810b07..deaa7bf 100644
--- a/webbrowser/locales/en-US/chrome/browser/browser.dtd
+++ b/webbrowser/locales/en-US/chrome/browser/browser.dtd
@@ -423,6 +423,8 @@ items are mutually exclusive. -->
<!ENTITY mediaPlaybackRate050x.accesskey "S">
<!ENTITY mediaPlaybackRate100x.label "Normal Speed">
<!ENTITY mediaPlaybackRate100x.accesskey "N">
+<!ENTITY mediaPlaybackRate125x.label "Increased Speed (1.25x)">
+<!ENTITY mediaPlaybackRate125x.accesskey "I">
<!ENTITY mediaPlaybackRate150x.label "High Speed (1.5×)">
<!ENTITY mediaPlaybackRate150x.accesskey "H">
<!-- LOCALIZATION NOTE: "Ludicrous Speed" is a reference to the