W3C home > Mailing lists > Public > public-html@w3.org > November 2008

setting HTMLMediaElement volume and playbackRate attributes

From: Eric Carlson <eric.carlson@apple.com>
Date: Sun, 23 Nov 2008 10:20:11 -0800
To: HTML WG <public-html@w3.org>
Message-id: <C99485D0-C3EF-4A64-B796-7B6B462DC943@apple.com>

   Why is it OK to set the volume to zero but it is an error to set  
the playback rate to zero?

   The spec says the following about "volume" [1]:

	The volume attribute must return the playback volume of any audio  
portions of the media element,
	in the range 0.0 (silent) to 1.0 (loudest).

   It says the following about "playbackRate" [2]:

	The attribute is mutable, but on setting, if the new value is 0.0, a  
	must be raised instead of the value being changed.

   How is this helpful? Further, why is it OK to set the rate to  
0.00001 but an error to set it to 0 when there is no real difference  
between the two from the user's perspective?


[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#dom-media-volume
[2] http://www.whatwg.org/specs/web-apps/current-work/multipage/video.html#dom-media-playbackrate
Received on Sunday, 23 November 2008 18:20:58 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:39 UTC