Skip to content

Commit

Permalink
Bug 22229: Editorial input
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-be committed Sep 30, 2013
1 parent 0a4febe commit b2fe184
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 17 deletions.
26 changes: 10 additions & 16 deletions getusermedia.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ <h2>Terminology</h2>
<p>Constraints that are intended for video sources will be
ignored by audio sources and vice-versa. Similarly,
constraints that are not recognized will be preserved in the
constraint structure, but ignored by the application. This
constraint structure, but ignored by the UA. This
will allow future constraints to be defined in a backward
compatible manner.</p>

Expand Down Expand Up @@ -406,30 +406,25 @@ <h2>MediaStream</h2>
<p>An object that reads data from the output of a
<code><a>MediaStream</a></code> is referred to as a
<code><a>MediaStream</a></code> <dfn>consumer</dfn>. The list of
<code><a>MediaStream</a></code> consumers currently includes the media
elements and the <code><a>PeerConnection</a></code> API specified in
[[!WEBRTC10]].</p>
<code><a>MediaStream</a></code> consumers currently include the media
elements [[!HTML5]], <code>RTCPeerConnection</code> [[!WEBRTC10]],
<code>MediaRecorder</code> [[!mediastream-rec]] and
<code>ImageCapture</code> [[!mediastream-imagecap]].</p>

<p class="note"><code><a>MediaStream</a></code> consumers must be able to
handle tracks being added and removed. This behavior is specified per
consumer.</p>

<p>A <code><a>MediaStream</a></code> object is said to be
<dfn>finished</dfn> when all tracks belonging to the stream have
<a>ended</a>. When this happens for any reason other than the
<code><a href="#dom-mediastreamtrack-stop">stop()</a></code> method being
invoked, the user agent MUST queue a task that runs the following
steps:</p>
<a>ended</a>. When this happens the user agent MUST queue a task that
runs the following steps:</p>

<ol>
<li>
<p>If the object's <code><a href=
"#dom-mediastream-ended">ended</a></code> attribute has the value
true already, then abort these steps. (The <code><a href=
"#dom-mediastreamtrack-stop">stop()</a></code> method was probably called
just before the stream stopped for other reasons, e.g. the user
clicked an in-page stop button and then the user agent provided stop
button.)</p>
true already, then abort these steps.</p>
</li>

<li>
Expand Down Expand Up @@ -3004,9 +2999,6 @@ <h2>Examples</h2>
var canvas = document.getElementById('photo');
function gotStream(stream) {
video.src = URL.createObjectURL(stream);
video.onerror = function () {
stream.stop();
};
stream.onended = noStream;
video.onloadedmetadata = function () {
canvas.width = video.videoWidth;
Expand Down Expand Up @@ -3243,6 +3235,8 @@ <h2>Changes since August 24, 2013</h2>
<ol>
<li>Bug 22269: Renamed getSourceInfos() to getSources() and made the
result async.</li>

<li>Bug 22229: Editorial input</li>
</ol>

<h2>Changes since July 4, 2013</h2>
Expand Down
24 changes: 23 additions & 1 deletion getusermedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,27 @@ var respecConfig = {
// This is important for Rec-track documents, do not copy a patent URI from a random
// document unless you know what you're doing. If in doubt ask your friendly neighbourhood
// Team Contact.
wgPatentURI: ["http://www.w3.org/2004/01/pp-impl/47318/status","http://www.w3.org/2004/01/pp-impl/43696/status"]
wgPatentURI: ["http://www.w3.org/2004/01/pp-impl/47318/status","http://www.w3.org/2004/01/pp-impl/43696/status"],

localBiblio: {
"mediastream-rec": {
title: "MediaStream Recording",
href: "https://dvcs.w3.org/hg/dap/raw-file/tip/media-stream-capture/MediaRecorder.html",
authors: [
"Jim Barnett",
"Travis Leithead"
],
status: "WD",
publisher: "W3C"
},
"mediastream-imagecap": {
title: "MediaStream Image Capture",
href: "http://www.w3.org/TR/image-capture/",
authors: [
"Giridhar Mandyam"
],
status: "WD",
publisher: "W3C"
}
}
};

0 comments on commit b2fe184

Please sign in to comment.