W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2011

[Bug 13383] New: Feature request: pause media when hidden

From: <bugzilla@jessica.w3.org>
Date: Wed, 27 Jul 2011 10:08:21 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-13383-2486@http.www.w3.org/Bugs/Public/>

           Summary: Feature request: pause media when hidden
           Product: HTML WG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: media
          Severity: normal
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: samdutton@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,

Use cases:
- open multiple autoplay videos in multiple browser windows or tabs (for
example, when a user Ctrl-clicks on multiple video links)
- move between windows or tabs that have audio playing in them (for example,
when a user is listening to two radio stations)
- minimise a window with a video playing in it.

Desired behaviour:
- media is paused (even if set to autoplay) when opened in a page that is
- media is paused when the page itís on becomes hidden
- media play resumes when the page itís on becomes visible, if the media was
playing when the page became hidden, or the media was set to autoplay and never

Proposed solution:
- provide media elements with a pauseifhidden attribute that defaults to true
(but maybe an attribute with multiple possible values, to cope with a greater
variety of use cases, would be more sensible?)

- this feature could make use of the work done on the Page Visibility API
though it might also make sense for media to pause when the page itís on loses
focus, not just when the page becomes hidden.

- for browsers that support the Page Visibility API I've built a demo that
pauses video when it's hidden: http://www.samdutton.com/pageVisibility
- for versions of Chrome that support the API (Chrome 13+) I've built an
extension that uses the Page Visibility API to pause video playback in hidden

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 27 July 2011 10:08:22 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:56 UTC