[Webkit-unassigned] [Bug 192530] New: [GStreamer] HTMLMediaElement::m_player->paused is always true while video is playing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Dec 8 13:57:49 PST 2018


            Bug ID: 192530
           Summary: [GStreamer] HTMLMediaElement::m_player->paused is
                    always true while video is playing
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media Elements
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at igalia.com
                CC: bugs-noreply at webkitgtk.org

I was debugging why SleepDisablerGLib is broken currently. After getting a bit distracted by the inhibit portal being broken (separate bug, not our fault) I realized HTMLMediaElement is never creating SleepDisabler objects in the first place.

Turns out that when playing a YouTube video, HTMLMediaElement::shouldDisableSleep always returns early in this condition here:

    if (!m_player || m_player->paused() || loop())
        return SleepType::None;

because m_player->paused() is returning true. But this happens when the video is playing, not when it is paused. So yeah that's not good.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181208/66df9c95/attachment.html>

More information about the webkit-unassigned mailing list