RESOLVED INVALID Bug 124983
Nix Upstream: Adding MediaControlsNix to WebCore
https://bugs.webkit.org/show_bug.cgi?id=124983
Summary Nix Upstream: Adding MediaControlsNix to WebCore
Thiago de Barros Lacerda
Reported 2013-11-28 10:45:39 PST
Nix Upstream: Adding MediaControlsNix to WebCore
Attachments
Patch (10.47 KB, patch)
2013-11-28 10:47 PST, Thiago de Barros Lacerda
no flags
Patch (10.48 KB, patch)
2013-11-28 10:51 PST, Thiago de Barros Lacerda
benjamin: review-
benjamin: commit-queue-
Thiago de Barros Lacerda
Comment 1 2013-11-28 10:47:02 PST
Thiago de Barros Lacerda
Comment 2 2013-11-28 10:51:38 PST
Eric Carlson
Comment 3 2013-12-02 07:55:12 PST
Have you seen Source/WebCore/Modules/mediacontrols/? The Apple ports use this to implement media controls with JavaScript. The WinCairo port is looking at implementing media controls this was as well [1]. That approach is *much* simpler in the long run. [1] https://bugs.webkit.org/show_bug.cgi?id=124868
Benjamin Poulain
Comment 4 2013-12-02 14:34:52 PST
Comment on attachment 218016 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=218016&action=review > Source/WebCore/html/shadow/MediaControlsNix.cpp:60 > + return 0; return nullptr. > Source/WebCore/html/shadow/MediaControlsNix.cpp:145 > + Page* page = document().page(); > + if (!page) if (!document().page()) return > Source/WebCore/html/shadow/MediaControlsNix.cpp:166 > + double now = m_mediaController->currentTime(); > + double duration = m_mediaController->duration(); This should be done _after_ the early return. > Source/WebCore/html/shadow/MediaControlsNix.cpp:170 > + > + Page* page = document().page(); > + if (!page) > + return; ditto > Source/WebCore/html/shadow/MediaControlsNix.h:45 > + void changedMute() OVERRIDE; Missing virtual.
Thiago de Barros Lacerda
Comment 5 2013-12-02 14:48:20 PST
(In reply to comment #3) > Have you seen Source/WebCore/Modules/mediacontrols/? The Apple ports use this to implement media controls with JavaScript. The WinCairo port is looking at implementing media controls this was as well [1]. > > That approach is *much* simpler in the long run. > > [1] https://bugs.webkit.org/show_bug.cgi?id=124868 Thanks Eric, I will take a look on that
Thiago de Barros Lacerda
Comment 6 2013-12-02 14:48:55 PST
(In reply to comment #4) > (From update of attachment 218016 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=218016&action=review > > > Source/WebCore/html/shadow/MediaControlsNix.cpp:60 > > + return 0; > > return nullptr. > > > Source/WebCore/html/shadow/MediaControlsNix.cpp:145 > > + Page* page = document().page(); > > + if (!page) > > if (!document().page()) > return > > > Source/WebCore/html/shadow/MediaControlsNix.cpp:166 > > + double now = m_mediaController->currentTime(); > > + double duration = m_mediaController->duration(); > > This should be done _after_ the early return. > > > Source/WebCore/html/shadow/MediaControlsNix.cpp:170 > > + > > + Page* page = document().page(); > > + if (!page) > > + return; > > ditto > > > Source/WebCore/html/shadow/MediaControlsNix.h:45 > > + void changedMute() OVERRIDE; > > Missing virtual. Thanks Benjamin, I will fix those
Note You need to log in before you can comment on or make changes to this bug.