This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11243 - we should have a media element best practices section
Summary: we should have a media element best practices section
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: LC1 HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-05 22:42 UTC by contributor
Modified: 2011-08-04 05:16 UTC (History)
6 users (show)

See Also:


Attachments

Description contributor 2010-11-05 22:42:56 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/complete.html
Section: http://www.whatwg.org/specs/web-apps/current-work/#video

Comment:
we should have a media element best practices section

Posted from: 216.239.45.4 by ian@hixie.ch
Comment 1 Ian 'Hixie' Hickson 2010-11-05 22:46:17 UTC
For example:

 - when you're done with a video, it's good practice to release resources by removing src="" and <source> and calling load().

 - when implementing the 'buffered' API, how precise you are is a quality of implementation issue, but it's better to be conservative than optimistic (i.e. don't say you've buffered everything when you haven't).

 - you can drop buffered data at any time

 - when a media element is removed from a document and not reinserted by the time the event loop spins, it's a good time to release all hardware resources (like video planes, networking, buffer)
Comment 2 Ian 'Hixie' Hickson 2011-01-07 23:28:53 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 3 contributor 2011-01-07 23:30:45 UTC
Checked in as WHATWG revision r5751.
Check-in comment: Add best-practices sections for media elements.
http://html5.org/tools/web-apps-tracker?from=5750&to=5751
Comment 4 Michael[tm] Smith 2011-08-04 05:16:11 UTC
mass-move component to LC1