Closed Bug 1206719 Opened 9 years ago Closed 7 years ago

[B2G] Throttle the seek command from videocontrols.xml.

Categories

(Core :: Audio/Video: Playback, defect)

Unspecified
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bechen, Assigned: bechen)

References

Details

Attachments

(2 files)

On B2G platform, the seek operation usually takes a lot of time.
So I'm trying to add throttle mechanism in videocontrols.xml to reduce the seek commands when user dragging the progress bar.
Simply set a 50ms timer to throttle the seek commands. But since video app doesn't use the control, the patch doesn't affect it.
Comment on attachment 8664664 [details] [diff] [review]
bug-1206719.v01.patch

How do you think about the 50ms timer?
Attachment #8664664 - Flags: feedback?(jolin)
Attachment #8664664 - Flags: feedback?(ayang)
Comment on attachment 8664664 [details] [diff] [review]
bug-1206719.v01.patch

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

It looks like workaround to me.
When lot of seeking happening, it should run to the latest seek point when current seek is completed. So, I don't see the reason we need a throttle for seeking.
Attachment #8664664 - Flags: feedback?(ayang)
Comment on attachment 8664664 [details] [diff] [review]
bug-1206719.v01.patch

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

It's always difficult to pick a good value for throttling that works on different devices. How about listen to 'seeked' event?
That is, if it's already 'seeking', remember the scrubber position and call fastSeek() in 'seeked' handler.
(In reply to John Lin [:jolin][:jhlin] from comment #4)
> Comment on attachment 8664664 [details] [diff] [review]
> bug-1206719.v01.patch
> 
> Review of attachment 8664664 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> It's always difficult to pick a good value for throttling that works on
> different devices. How about listen to 'seeked' event?
> That is, if it's already 'seeking', remember the scrubber position and call
> fastSeek() in 'seeked' handler.

Seems that listen an event is better than a fixed 50ms value, I'll try it.
(In reply to John Lin [:jolin][:jhlin] from comment #4)
> That is, if it's already 'seeking', remember the scrubber position and call
> fastSeek() in 'seeked' handler.

when you queue quickly multiple seek, all seeks but the last one become "fast seek" (this was done in bug 1159343)
Comment on attachment 8664664 [details] [diff] [review]
bug-1206719.v01.patch

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

It's always difficult to pick a good value for throttling that works on different devices. How about listen to 'seeked' event?
That is, if it's already 'seeking', remember the scrubber position and call fastSeek() in 'seeked' handler.
Attachment #8664664 - Flags: feedback?(jolin)
wip patch.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: