Comment 62 for bug 434476

Revision history for this message
In , Karlt (karlt) wrote :

(In reply to Martin Stránský from comment #4)
> (In reply to Karl Tomlinson (:karlt) from comment #3)
> > IIUC this will inhibit the screensaver, even if there is an advert or audio
> > playing out of view on any foreground tab of an unminimized window.
>
> I tested it and it inhibits the screensaver in fullscreen mode only? Why do
> you think it affects non-fullscreen playback too?

The code added in bug 739542 looks like it adds a WakeLock with a "Playing_media" tag whenever an nsHTMLMediaElement is not paused.

I'm assuming nsHTMLMediaElement is used for non-fullscreen media.

> > Does the screensaver that you work with support org.freedesktop.ScreenSaver?
> > That sounds like the preferred API to use, but I haven't found official
> > documentation. It seems very similar to org.gnome.ScreenSaver.
> > http://lists.freedesktop.org/archives/xdg/2007-March/009187.html
>
> org.freedesktop.ScreenSaver is outdated ...

KDE people may contest that. It would seem strange to switch from a freedesktop interface to a gnome interface.

> ... and does not work.

But if org.freedesktop.ScreenSaver doesn't work we do need something else.

> The SessionManager is used by gnome itself (by
> http://git.gnome.org/browse/gtk+/tree/gtk/gtkapplication.c#n1412).

It is a shame that GTK3 now depends on GNOME.
But this does look like evidence that org.gnome.SessionManager is preferred over org.gnome.ScreenSaver, thanks.