Closed
Bug 1206719
Opened 9 years ago
Closed 8 years ago
[B2G] Throttle the seek command from videocontrols.xml.
Categories
(Core :: Audio/Video: Playback, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: bechen, Assigned: bechen)
References
Details
Attachments
(2 files)
3.04 KB,
patch
|
Details | Diff | Splinter Review | |
4.31 KB,
patch
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•9 years ago
|
||
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.
Assignee | ||
Comment 2•9 years ago
|
||
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 3•9 years ago
|
||
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 4•9 years ago
|
||
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.
Assignee | ||
Comment 5•9 years ago
|
||
(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.
Comment 6•9 years ago
|
||
(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 7•9 years ago
|
||
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)
Assignee | ||
Comment 8•9 years ago
|
||
wip patch.
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•