soundcloud / areweplayingyet

html5 audio benchmarks
BSD 2-Clause "Simplified" License
311 stars 69 forks source link

Wrong autoplay property test #23

Closed neovov closed 13 years ago

neovov commented 13 years ago

It seems that the autoplay property test (the last of the list) is incorrect.

The spec says that browser vendor should provide a way for the user to disable the automatic playback. We can find a ton of reasons for doing that (accessibility, bandwidth, network quota, annoyability, etc.). I don't think a single browser propose this.

Secondly, this property, like preload, is device dependent. You can't autoplay on iOS for a ton of reasons too (battery life, performances, bandwidth, kind of network, etc.) (In fact you can autoplay inside an app using a property of the webview)

Finally, I think there is a special behaviour on iOS (or webkit ?). You can set the autoplay to true but it won't autoplay (I don't know if the property will be true or false). BUT, it will autoplay if you hotswap the src attribute.

tsenart commented 13 years ago

Hi there! Can you link to the part of the spec that you're talking about? I'd like to be on the same page as you before making any further comment. :)

neovov commented 13 years ago

Hi !

I'm refering to the note below this : http://www.w3.org/TR/html5/video.html#attr-media-autoplay Especially this part : "this allows the user to override the automatic playback when it is not desired", that I understand it should be a preference in the browser to allow the user to override. Maybe I misunderstand?

The note below this part say the same thing I guess : http://www.w3.org/TR/html5/video.html#handling-first-frame-available (under HAVE_ENOUGH_DATA)

yvg commented 13 years ago

I don't understand why you report this. Yes Safari Mobile doesn't support it, so? The point here is to point out the differences in browsers by testing the very basics not to write tests that will pass in all browsers. If you think the test is incorrect please open a pull request and we'll take a look :)