Closed Bug 862399 Opened 11 years ago Closed 8 years ago

Add UI to loop playback of audio files

Categories

(Toolkit :: Video/Audio Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed
relnote-firefox --- 49+

People

(Reporter: sdrocking, Assigned: jaws)

References

Details

Attachments

(1 file, 2 obsolete files)

      No description provided.
Blocks: 799318
Summary: add option to loop playback → Add an option to loop playback of mp3 files
No longer blocks: 799318
OS: Windows 7 → All
Hardware: x86_64 → All
Summary: Add an option to loop playback of mp3 files → Add UI to loop playback of audio files
Version: unspecified → Trunk
Attached patch Patch (obsolete) — Splinter Review
Assignee: nobody → jaws
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #8750794 - Flags: review?(gijskruitbosch+bugs)
Comment on attachment 8750794 [details] [diff] [review]
Patch

Review of attachment 8750794 [details] [diff] [review]:
-----------------------------------------------------------------

The summary of this bug is for audio files - does it make sense to have this UI on video files, as the patch does?

r+ but if you redo the patch based on this question and/or the below, happy to have another look.

::: browser/base/content/browser-context.inc
@@ +125,5 @@
> +      <menuitem id="context-media-loop"
> +                label="&mediaLoop.label;"
> +                accesskey="&mediaLoop.accesskey;"
> +                type="checkbox"
> +                oncommand="gContextMenu.mediaCommand('loop');"/>

It feels to me like this could/should be further down the menu? Maybe underneath "Play speed" ?

::: browser/locales/en-US/chrome/browser/browser.dtd
@@ +557,5 @@
>  <!ENTITY mediaPlay.accesskey         "P">
>  <!ENTITY mediaPause.label            "Pause">
>  <!ENTITY mediaPause.accesskey        "P">
> +<!ENTITY mediaLoop.label             "Loop">
> +<!ENTITY mediaLoop.accesskey         "L">

This access key is in use for "P_lay speed". "o" is in use for Copy Video Location, and p for "Play", so it feels like we should just remove the access key from either play speed or from this item. It doesn't seem like the kind of item that you would repeatedly use and/or toggle...
Attachment #8750794 - Flags: review?(gijskruitbosch+bugs) → review+
(In reply to :Gijs Kruitbosch from comment #2)
> The summary of this bug is for audio files - does it make sense to have this
> UI on video files, as the patch does?

Yeah, we should have it for both. Video files, such as music videos, may be beneficial to loop, and also for parity with Chrome which also has this present on videos.

> ::: browser/base/content/browser-context.inc
> @@ +125,5 @@
> > +      <menuitem id="context-media-loop"
> > +                label="&mediaLoop.label;"
> > +                accesskey="&mediaLoop.accesskey;"
> > +                type="checkbox"
> > +                oncommand="gContextMenu.mediaCommand('loop');"/>
> 
> It feels to me like this could/should be further down the menu? Maybe
> underneath "Play speed" ?

I went back and forth on the location. I put it higher because I had recently looked at the context menu on Chrome, but I think if we order based on usage, it should be lower. I'll move it below playback speed.

> ::: browser/locales/en-US/chrome/browser/browser.dtd
> @@ +557,5 @@
> >  <!ENTITY mediaPlay.accesskey         "P">
> >  <!ENTITY mediaPause.label            "Pause">
> >  <!ENTITY mediaPause.accesskey        "P">
> > +<!ENTITY mediaLoop.label             "Loop">
> > +<!ENTITY mediaLoop.accesskey         "L">
> 
> This access key is in use for "P_lay speed". "o" is in use for Copy Video
> Location, and p for "Play", so it feels like we should just remove the
> access key from either play speed or from this item. It doesn't seem like
> the kind of item that you would repeatedly use and/or toggle...

I don't know how I didn't notice this in my testing. I would like to keep an access key because one may fit in other locales. I will go with a letter not in "Loop".
Attached patch Patch for check-in (obsolete) — Splinter Review
Play Speed access key was changed from "l" to "d" so Loop can use "L".
Attachment #8750794 - Attachment is obsolete: true
Attachment #8750853 - Attachment is obsolete: true
Release Note Request (optional, but appreciated)
[Why is this notable]: audio and video can now be looped using the built-in controls
[Suggested wording]: Loop HTML5 audio and video files through the context menu.
[Links (documentation, blog post, etc)]: n/a
relnote-firefox: --- → ?
https://hg.mozilla.org/mozilla-central/rev/6afc5dab5979
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
See Also: → 1272411
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: