Open
Bug 1264171
Opened 9 years ago
Updated 2 years ago
Separate the accurate seek and fast seek into two implementations.
Categories
(Core :: Audio/Video: Playback, defect, P3)
Core
Audio/Video: Playback
Tracking
()
NEW
People
(Reporter: kaku, Unassigned)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(1 file)
58 bytes,
text/x-review-board-request
|
Details |
The SeekTask class now handles both accurate seek and fast seek. I would like to have separated implementations for each seek operation.
Reporter | ||
Updated•9 years ago
|
Reporter | ||
Comment 1•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/46393/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/46393/
Attachment #8741316 -
Flags: review?(jwwang)
Comment 2•9 years ago
|
||
FastSeekTask is basically SeekTask which contains all the logic about fast seek and accurate seek. I can't see how this change improve/simplify the code.
Reporter | ||
Comment 3•9 years ago
|
||
(In reply to JW Wang [:jwwang] PTO 4/7 ~ 4/15 from comment #2)
> FastSeekTask is basically SeekTask which contains all the logic about fast
> seek and accurate seek. I can't see how this change improve/simplify the
> code.
Hmm..., basically FastSeek shares almost the same logic of AccuractSeek, the only difference is while receiving decoded audio/video data from reader (a.k.a. the OnAudioDecoded()/OnVideoDecoded()).
However, FastSeek has the chance to fall back to AccurateSeek (https://dxr.mozilla.org/mozilla-central/source/dom/media/MediaDecoderStateMachine.cpp#656). That is the main reason why FastSeek needs to contain all what AccurateSeek has.
Another way is letting FastSeek comprises a SeekTask instance and delegate the seeking operation to it if needed. Or, we can just postpone this bug until Bug 1026330 is resolved?
Flags: needinfo?(jwwang)
Comment 5•9 years ago
|
||
I would prefer to remove fastSeek. No other browsers implement it. We added telemetry to Firefox 47 to report when it's used, and we've had no reports yet. So it's looking like no-one uses it.
Comment 6•9 years ago
|
||
Actually it looks like Safari implements fastSeek:
https://bugs.webkit.org/show_bug.cgi?id=124262
I'm still not convinced it's worth keeping.
Comment 7•9 years ago
|
||
It used to benefit B2G, but now we may not need it...
Comment 8•9 years ago
|
||
I think we should wait for the telemetry [1] that reports how often fastSeek is used hits our release channel, and if we don't have any/many uses, consider removing fastSeeek.
[1] https://telemetry.mozilla.org/new-pipeline/dist.html#!cumulative=0&end_date=2016-04-16&keys=__none__!__none__!__none__!__none__&max_channel_version=nightly%252F48&measure=VIDEO_FASTSEEK_USED&min_channel_version=null&product=Firefox&sanitize=1&sort_keys=submissions&start_date=2016-03-06&table=0&trim=1&use_submission_date=0
Updated•9 years ago
|
Priority: -- → P2
Updated•9 years ago
|
Attachment #8741316 -
Flags: review?(jwwang)
(In reply to Chris Pearce (:cpearce) from comment #5)
> I would prefer to remove fastSeek. No other browsers implement it. We added
> telemetry to Firefox 47 to report when it's used, and we've had no reports
> yet. So it's looking like no-one uses it.
We can use fast seek to implement recovery seek when video decode is resumed from being suspended, if the video has no audio.
Mass change P2 -> P3
Priority: P2 → P3
Comment 11•3 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months, so the assignee is being reset.
Assignee: kakukogou → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•