What are the specifications for HTML5 audio.volume

I have some code indicating that with javascript you can set the volume level of an HTML5 element <audio>

using something like document.getElementById('player').volume-=0.1

, but I can't find anything to indicate what the volume range is. 0-5? 0-10? 0-100? Does anyone know what the maximum tag size is audio

, and what are the smallest increments that can be raised?

+3


source to share


1 answer


From the w3c HTML5 spec



... 4. Let the volume be the playback volume of the media element's audio files in the range 0.0 (silent) to 1.0 (loudest).

+7


source







All Articles