Closed Bug 1350852 Opened 7 years ago Closed 7 years ago

Dispatch a specific event to cancel the throbber while resuming video decoder.

Categories

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

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: kaku, Assigned: kaku)

References

Details

Attachments

(2 files)

In bug 1309494, we use the "canplay" event to cancel the throbber which was fine, however, in bug 1349097, we're going to resume a video decoder after the playback had ended, and this is not going to work because we won't dispatch the "canplay" anymore after the playback had ended.

So, we need a rather specific event for canceling the throbber.
Assignee: nobody → kaku
Blocks: 1349097
Status: NEW → ASSIGNED
Depends on: 1309494
Comment on attachment 8851899 [details]
Bug 1350852 P1 - add a mozvideoonlyseekcompleted event;

https://reviewboard.mozilla.org/r/124074/#review126648

::: dom/media/MediaDecoderStateMachine.cpp:2402
(Diff revision 1)
>      // and fail the assertion in GetClock() since we didn't stop MediaSink.
>      mMaster->UpdatePlaybackPositionInternal(newCurrentTime);
>    }
>  
> +  // Dispatch a VideoOnlySeekCompleted event to notify JS video controller to
> +  // cancel the throbber UI.

I want a neutral comment here without MDSM understanding the details of the video control. So you might want to say "dispatch an event so the UI can change in response to the end of video-only seek".
Attachment #8851899 - Flags: review?(jwwang) → review+
Comment on attachment 8851900 [details]
Bug 1350852 P2 - use mozvideoonlyseekcompleted to cancel throbber while resuming video decoder;

https://reviewboard.mozilla.org/r/124076/#review126650
Attachment #8851900 - Flags: review?(jwwang) → review+
Comment on attachment 8851900 [details]
Bug 1350852 P2 - use mozvideoonlyseekcompleted to cancel throbber while resuming video decoder;

https://reviewboard.mozilla.org/r/124076/#review126876
Attachment #8851900 - Flags: review?(jaws) → review+
Thanks for the review!
Pushed by tkuo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/094dc48011f4
P1 - add a mozvideoonlyseekcompleted event; r=jwwang
https://hg.mozilla.org/integration/autoland/rev/fdb359af3621
P2 - use mozvideoonlyseekcompleted to cancel throbber while resuming video decoder; r=jaws,jwwang
https://hg.mozilla.org/mozilla-central/rev/094dc48011f4
https://hg.mozilla.org/mozilla-central/rev/fdb359af3621
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Blocks: 1355031
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: