(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.
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.
(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? ScreenSaver. lists.freedeskt op.org/ archives/ xdg/2007- March/009187. html .ScreenSaver is outdated ...
> > That sounds like the preferred API to use, but I haven't found official
> > documentation. It seems very similar to org.gnome.
> > http://
>
> org.freedesktop
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 git.gnome. org/browse/ gtk+/tree/ gtk/gtkapplicat ion.c#n1412).
> http://
It is a shame that GTK3 now depends on GNOME. SessionManager is preferred over org.gnome. ScreenSaver, thanks.
But this does look like evidence that org.gnome.