From b2fe1848e240e7f19436918ab781664887fe0713 Mon Sep 17 00:00:00 2001
From: Adam Bergkvist
Date: Mon, 30 Sep 2013 13:47:18 +0200
Subject: [PATCH] Bug 22229: Editorial input
---
getusermedia.html | 26 ++++++++++----------------
getusermedia.js | 24 +++++++++++++++++++++++-
2 files changed, 33 insertions(+), 17 deletions(-)
diff --git a/getusermedia.html b/getusermedia.html
index d19de17..71d050c 100644
--- a/getusermedia.html
+++ b/getusermedia.html
@@ -223,7 +223,7 @@ Terminology
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.
@@ -406,9 +406,10 @@ MediaStream
An object that reads data from the output of a
MediaStream
is referred to as a
MediaStream
consumer. The list of
- MediaStream
consumers currently includes the media
- elements and the PeerConnection
API specified in
- [[!WEBRTC10]].
+ MediaStream
consumers currently include the media
+ elements [[!HTML5]], RTCPeerConnection
[[!WEBRTC10]],
+ MediaRecorder
[[!mediastream-rec]] and
+ ImageCapture
[[!mediastream-imagecap]].
MediaStream
consumers must be able to
handle tracks being added and removed. This behavior is specified per
@@ -416,20 +417,14 @@
MediaStream
A MediaStream
object is said to be
finished when all tracks belonging to the stream have
- ended. When this happens for any reason other than the
- stop()
method being
- invoked, the user agent MUST queue a task that runs the following
- steps:
+ ended. When this happens the user agent MUST queue a task that
+ runs the following steps:
-
If the object's ended
attribute has the value
- true already, then abort these steps. (The stop()
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.)
+ true already, then abort these steps.
-
@@ -3004,9 +2999,6 @@
Examples
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;
@@ -3243,6 +3235,8 @@ Changes since August 24, 2013
- Bug 22269: Renamed getSourceInfos() to getSources() and made the
result async.
+
+ - Bug 22229: Editorial input
Changes since July 4, 2013
diff --git a/getusermedia.js b/getusermedia.js
index 7774920..b67b2a6 100644
--- a/getusermedia.js
+++ b/getusermedia.js
@@ -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"
+ }
+ }
};