diff options
| author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
|---|---|---|
| committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
| commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
| tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/fr/web/api/htmlmediaelement/volume | |
| parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
| download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip | |
initial commit
Diffstat (limited to 'files/fr/web/api/htmlmediaelement/volume')
| -rw-r--r-- | files/fr/web/api/htmlmediaelement/volume/index.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/files/fr/web/api/htmlmediaelement/volume/index.html b/files/fr/web/api/htmlmediaelement/volume/index.html new file mode 100644 index 0000000000..130734e004 --- /dev/null +++ b/files/fr/web/api/htmlmediaelement/volume/index.html @@ -0,0 +1,66 @@ +--- +title: HTMLMediaElement.volume +slug: Web/API/HTMLMediaElement/volume +tags: + - API + - Audio + - HTML DOM + - Property + - Propriété + - Reference + - Volume + - sound +translation_of: Web/API/HTMLMediaElement/volume +--- +<p>{{APIRef("HTML DOM")}}</p> + +<p>La propriété <strong><code>HTMLMediaElement.volume</code></strong> définit le volume auquel le média doit être lu. </p> + +<h2 id="Syntax" name="Syntax">Syntaxe</h2> + +<pre class="syntaxbox">var <em>volume</em> = <em>video</em>.volume; //1</pre> + +<h3 id="Valeur">Valeur</h3> + +<p>Une valeur de type double (nombre à virgule) inclut entre 0 et 1, si elle vaut 0 le son est coupé et elle vaut 1 le son est le plus élevé possible.</p> + +<h2 id="Exemple">Exemple</h2> + +<pre>var obj = document.createElement('audio'); +console.log(obj.volume); // 1 +obj.volume = 0.75;</pre> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Statut</th> + <th scope="col">Commentaire</th> + </tr> + <tr> + <td>{{SpecName('HTML WHATWG', "#dom-media-volume", "HTMLMediaElement.volume")}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td></td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', "embedded-content-0.html#htmlmediaelement", "HTMLMediaElement.volume")}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td></td> + </tr> + </tbody> +</table> + +<h2 id="Compatibilité_navigateur">Compatibilité navigateur</h2> + + + +<p>{{Compat("api.HTMLMediaElement.volume")}}</p> + +<h2 id="See_Also" name="See_Also">Voir aussi</h2> + +<ul> + <li>The interface defining it, {{domxref("HTMLMediaElement")}}.</li> + <li>{{domxref("HTMLMediaElement.muted")}}</li> +</ul> |
