Closed Bug 1272411 Opened 8 years ago Closed 7 years ago

[Context Menu] Provide a 1.25x faster video speed option in the video controls. Also add UI to loop playback of media files

Categories

(SeaMonkey :: General, defect)

defect
Not set
normal

Tracking

(seamonkey2.50 fixed)

RESOLVED FIXED
seamonkey2.50
Tracking Status
seamonkey2.50 --- fixed

People

(Reporter: philip.chee, Assigned: sherman.s.wang, Mentored)

References

Details

(Whiteboard: [good first bug][gfb][lang=js,xul,dtd])

User Story

Bug 1126282 - Provide a 1.25x faster video speed option in the video controls
Bug 862399 - Add UI to loop playback of audio files

Attachments

(1 file, 1 obsolete file)

(From Bug 1126282 comment #0)
> The current video speed options don't work very well for spoken audio. 1.5x
> is too fast. I'd like a video option in between. Currently, I end up using
> the devtools to set this.

> YouTube offers 1.25x for their HTML5 player. Would 1.25x work for you? It
> would be nice to be consistent with them.
User Story: (updated)
See Also: → 862399
Summary: [Context Menu] Provide a 1.25x faster video speed option in the video controls → [Context Menu] Provide a 1.25x faster video speed option in the video controls. Also add UI to loop playback of media files
Hi, I would be interested in doing this for my first bug. Would it be possible? Thanks.
(In reply to Horatiu Lazu from comment #1)
> Hi, I would be interested in doing this for my first bug. Would it be
> possible? Thanks.

Yes certainly. We won't change the status to ASSIGNED until we see a patch from you. So please proceed. If you need any assistance you can find us on IRC  irc://moznet/seamonkey
Is the bug assigned to somebody? can i work on it?
I'm no longer working on it, I'm working on another bug right now
If nobody else is currently working this, I'd like to tackle it as my first bug.
Attached patch 1272411.patch (obsolete) — Splinter Review
port of Firefox implementation for 1.25x video speed option and video looping UI
Seeing as Richa hasn't been active since mid-October, I've uploaded a patch that ports the implementation from Firefox including their updated verbiage for video speeds.  A few other minor fixes from the Firefox block of code came along for the ride as well; please advise if they should be removed.
Comment on attachment 8822113 [details] [diff] [review]
1272411.patch

Looks good to me. Will check it out later.
Attachment #8822113 - Flags: review?(philip.chee)
Attachment #8822113 - Flags: review?(iann_bugzilla)
Attachment #8822113 - Flags: feedback?(frgrahl)
Comment on attachment 8822113 [details] [diff] [review]
1272411.patch

1.25 and loop work fine for me from the context menu.
Attachment #8822113 - Flags: feedback?(frgrahl) → feedback+
Assignee: nobody → sherman.s.wang
Status: NEW → ASSIGNED
Comment on attachment 8822113 [details] [diff] [review]
1272411.patch

Nice patch!

> -    this.showItem("context-video-fullscreen", this.onVideo);
> +    this.showItem("context-video-fullscreen", this.onVideo &&
> +                  this.target.ownerDocument.fullscreenElement == null);
This can be written as:
   this.showItem("context-video-fullscreen", this.onVideo &&
                 !this.target.ownerDocument.fullscreenElement);

> +      this.setItemAttr("context-media-playbackrate-050", "disabled", hasError);
> +      this.setItemAttr("context-media-playbackrate-100", "disabled", hasError);
> +      this.setItemAttr("context-media-playbackrate-125", "disabled", hasError);
> +      this.setItemAttr("context-media-playbackrate-150", "disabled", hasError);
> +      this.setItemAttr("context-media-playbackrate-200", "disabled", hasError);
These are not needed as the whole popup is disabled.

> -<!ENTITY mediaPlaybackRate.label        "Playback Speed">
> -<!ENTITY mediaPlaybackRate.accesskey    "b">
> -<!ENTITY mediaPlaybackRate050.label     "Slow Motion (½×)">
> -<!ENTITY mediaPlaybackRate100.label     "Normal Speed">
> -<!ENTITY mediaPlaybackRate150.label     "High Speed (1½×)">
> -<!ENTITY mediaPlaybackRate150.accesskey "H">
> -<!ENTITY mediaPlaybackRate200.label     "Double Speed">
> -<!ENTITY mediaPlaybackRate200.accesskey "D">
Don't change these please.

> +<!ENTITY mediaPlaybackRate125.label     "Fast (1.25×)">
> +<!ENTITY mediaPlaybackRate125.accesskey "F">
Please use UTF 8 character for ¼ e.g. "Fast Speed (1¼×)"

> +<!ENTITY mediaLoop.label              "Loop">
> +<!ENTITY mediaLoop.accesskey          "L">
L is taken by "Copy Video _L_ocation".
I think "o" is still available.
Attachment #8822113 - Flags: review?(philip.chee)
Attachment #8822113 - Flags: review?(iann_bugzilla)
Attached patch 1272411-2.patchSplinter Review
Updated patch per feedback from Comment #10
Attachment #8822113 - Attachment is obsolete: true
Sherman,

you need to set r? or it will get lost in time. Philip and IanN are the reviewers for SeaMonkey. I can do it for you like the last time but then I get the direct notifications too.
Attachment #8823078 - Flags: review?(philip.chee)
Attachment #8823078 - Flags: review?(iann_bugzilla)
(In reply to Frank-Rainer Grahl from comment #12)
> Sherman,
> 
> you need to set r? or it will get lost in time. Philip and IanN are the
> reviewers for SeaMonkey. I can do it for you like the last time but then I
> get the direct notifications too.

Thanks for catching that.  I think I have the r? flag set correctly now.
Comment on attachment 8823078 [details] [diff] [review]
1272411-2.patch

r/a=me
Attachment #8823078 - Flags: review?(iann_bugzilla) → review+
Sherman, I pushed the bug for you. The next time please add a commit message to it. 

https://hg.mozilla.org/comm-central/rev/52def7491f3399fe04989958a4508989daee4571
Target Milestone: --- → seamonkey2.50
Attachment #8823078 - Flags: review?(philip.chee)
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: