diff options
author | tristantheb <tristantheb@users.noreply.github.com> | 2021-06-06 11:44:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-06 11:44:55 +0200 |
commit | 6f85683973762f84f6d99211b3b6158059e16f5a (patch) | |
tree | 19dbf2006709d2841b8535fd3c0d6390edc2643b /files/fr/web/html/attributes/capture/index.html | |
parent | 6781d84b8a98f4c28efebaf7ed15d0666083ef11 (diff) | |
download | translated-content-6f85683973762f84f6d99211b3b6158059e16f5a.tar.gz translated-content-6f85683973762f84f6d99211b3b6158059e16f5a.tar.bz2 translated-content-6f85683973762f84f6d99211b3b6158059e16f5a.zip |
UPDATE: Update translation of the HTML attributes (#706)
* UPDATE: Refresh of the index page and remove KS
* L10N: Translation of the accept attributes
* UPDATE: Refresh of the autocomplete attribute
* L10N: Translation of the capture attribute
* Revert accept with BCD (but table not exist)
* UPDATE: Refresh the crossorigin attribute
* L10N: Translation of the disabled attribute
* L10N: Translation of the elementtiming attribute
* L10N: Translation of the for attribute
* L10N: Translation of the max attribute
* L10N: Translation of the maxlength attribute
* L10N: Translation of the min attribute
* FIX: Add missing summary
* L10N: Translation of the minlength attribute
* L10N: Translation of the multiple attribute
* UPDATE: Refresh the pattern attribute
* L10N: Translation of the readonly attribute
* L10N: Translation of the rel attribute
* L10N: Translation of the required attribute
* L10N: Translation of the size attribute
* L10N: Translation of the step attribute
* Review - attr accept
* Typo live sample
* Review - capture
* Review - autocomplete
* Review - crossorigin
* Review disabled
* Review elementtiming
* Review - for
* Review max
* Review - maxlength
* Review min
* Review minlength
* Review multiple
* Review pattern
* Review readonly
* Review rel
* Review required
* Review size
* Review step
* Review attributes index
Co-authored-by: julieng <julien.gattelier@gmail.com>
Diffstat (limited to 'files/fr/web/html/attributes/capture/index.html')
-rw-r--r-- | files/fr/web/html/attributes/capture/index.html | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/files/fr/web/html/attributes/capture/index.html b/files/fr/web/html/attributes/capture/index.html new file mode 100644 index 0000000000..63cefd3d74 --- /dev/null +++ b/files/fr/web/html/attributes/capture/index.html @@ -0,0 +1,96 @@ +--- +title: 'Attribut HTML : capture' +slug: Web/HTML/Attributes/capture +tags: + - API + - Attribute + - Attributes + - Capture + - Constraint validation + - HTML +translation_of: Web/HTML/Attributes/capture +--- +<p>{{HTMLSidebar}}</p> + +<div class="notecard draft"> + <p><b>Brouillon :</b></p> + <p>Cette page n'est pas terminée.</p> +</div> + +<p class="summary">L'attribut <strong><code>capture</code></strong> spécifie que, facultativement, un nouveau fichier doit être capturé, et le périphérique qui devrait être utilisé pour capturer ce nouveau média d'un type défini par l'attribut <code><a href="accept">accept</a></code>. Les valeurs comprennent <code>user</code> et <code>environment</code>. L'attribut capture est pris en charge sur les champs de formulaire de type <a href="/fr/docs/Web/HTML/Element/Input/file"><code>file</code></a>.</p> + +<p>L'attribut <code>capture</code> prend pour valeur une chaîne de caractères qui spécifie quelle caméra utiliser pour la capture des données d'image ou de vidéo, si l'attribut <a href="accept"><code>accept</code></a> indique que l'entrée doit être de l'un de ces types.</p> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Valeur</th> + <th scope="col">Description</th> + </tr> + </thead> + <tbody> + <tr> + <td><code>user</code></td> + <td>La caméra et/ou le microphone faisant face à l'utilisateur devraient être utilisés.</td> + </tr> + <tr> + <td><code>environment</code></td> + <td>La caméra et/ou le microphone orientés vers l'extérieur devraient être utilisés.</td> + </tr> + </tbody> +</table> + +<div class="notecard note"> + <p><b>Note :</b></p> + <p>Capture était auparavant un attribut booléen qui, lorsqu'il était présent, indiqué que les périphériques de capture de l'appareil (comme la caméra ou le micro) devaient être utilisés plutôt que de demander à l'utilisateur de sélectionner un fichier.</p> +</div> + +<h2 id="examples">Exemples</h2> + +<p>Lorsqu'ils sont définis sur un type d'entrée de fichier, les systèmes d'exploitation dotés de microphones et de caméras affichent une interface utilisateur permettant la sélection à partir d'un fichier existant ou la création d'un nouveau fichier.</p> + +<pre class="brush: html"><p> + <label for="soundFile">Quel est le son de votre voix ?</label> + <input type="file" id="soundFile" capture="user" accept="audio/*"> +</p> +<p> + <label for="videoFile">Téléchargez une vidéo :</label> + <input type="file" id="videoFile" capture="environment" accept="video/*"> +</p> +<p> + <label for="imageFile">Téléchargez une photo de vous :</label> + <input type="file" id="imageFile" capture="user" accept="image/*"> +</p></pre> + +<p>{{EmbedLiveSample('examples', '', 200)}}</p> + +<p>Notez que ceux-ci fonctionnent mieux sur les appareils mobiles ; si votre appareil est un ordinateur de bureau, vous obtiendrez probablement un sélecteur de fichiers classique.</p> + +<h2 id="specifications">Spécifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Spécification</th> + <th scope="col">Statut</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML Media Capture', '#the-capture-attribute','capture attribute')}}</td> + <td>{{Spec2('HTML Media Capture')}}</td> + </tr> + </tbody> +</table> + +<h2 id="browser_compatibility">Compatibilité des navigateurs</h2> + +<p>{{Compat("html.elements.attribute.capture")}}</p> + +<h2 id="see_also">Voir aussi</h2> + +<ul> + <li><a href="/fr/docs/Web/API/File/Using_files_from_web_applications">Utilisation de fichiers à partir d'applications web</a></li> + <li><a href="/fr/docs/Web/API/File">File API</a></li> + <li>La propriété <a href="/fr/docs/Web/API/HTMLInputElement"><code>HTMLInputElement.files</code></a></li> +</ul> |