W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2016

[mediacapture-image] Merged Pull Request: Update/cleanup examples (#99, #62).

From: Miguel Casas-Sanchez via GitHub <sysbot+gh@w3.org>
Date: Tue, 18 Oct 2016 18:17:28 +0000
To: public-media-capture@w3.org
Message-ID: <pull_request.closed-89869580-1476814646-sysbot+gh@w3.org>
miguelao has just merged miguelao's pull request 114 for 

== Update/cleanup examples (#99, #62). ==
Examples update (#99, #62):

- Example 1 is now the zoom one (was: number 2), and I beefed it up
to have the needex HTML markup as well and have a takePhoto().
- Example 2 is now the repeated-grabbing-of-a-frame, no big changes,
just homogeneisation of variable names.
- Example 3 is now the grab-frame-and-postprocessing, which I made
work by bouncing the grabbed `imageBitmap` on a `canvas`. For the
purpose of the example, the colours are inverted.
- Also I homogeneised catch/then clause indenting and error reporting,
and inlined the superfluous `failedToGetMedia()`.

Finally I also added 3 codepen.io links (and a collection) with each
of the examples slightly modified, and added informative notes with
the links to the spec. Slightly modified means I added buttons to e.g.
start/stop capture and sometimes I casted the video feed to a video 

See https://github.com/w3c/mediacapture-image/pull/114
Received on Tuesday, 18 October 2016 18:17:34 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:37 UTC