The HTML5 spec used to require that playbackRate be set to defaultPlaybackRate when play() was called. It now requires this only when play() is triggered by the built-in UI: The "play" function in a user agent's interface must set the playbackRate attribute to the value of the defaultPlaybackRate attribute before invoking the play() method's steps.
Additionally, the spec requires that 'playbackRate' must always return " the last value it was set to, or 1.0 if it hasn't yet been set". WebKit doesn't return the last value set if the media engine was not allocated or ready to play at the time it was last set.
Created attachment 85358 [details] Proposed patch
Comment on attachment 85358 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=85358&action=review > Source/WebCore/ChangeLog:14 > + (WebCore::HTMLMediaElement::playbackRate): > + (WebCore::HTMLMediaElement::playInternal): > + (WebCore::HTMLMediaElement::togglePlayState): > + * manual-tests/media-default-playback-rate.html: Added. Please use the version of the change log that contains comments.
http://trac.webkit.org/changeset/82272