ByronChen / html5media

Automatically exported from code.google.com/p/html5media
0 stars 0 forks source link

Change autobuffer to preload #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Spec changed autobuffer to preload.
http://html5.org/tools/web-apps-tracker?from=4810&to=4811
http://www.whatwg.org/specs/web-apps/current-work/multipage/
video.html#attr-media-preload

Please change to match the spec.

(Firefox 3.5 and 3.6 implements autobuffer. You could add autobuffer for 
Firefox 3.5 and 3.6 with script for preload=""/preload="auto" (value is 
case-insensitive).)

Original issue reported on code.google.com by zcor...@gmail.com on 12 Mar 2010 at 3:10

GoogleCodeExporter commented 9 years ago
I've now updated html5media to respect the new preload attribute described in 
the 
HTML5 specification. This attribute replaces the original autobuffer attribute 
in the 
specification.

html5media still supports the old autobuffer attribute for 
backwards-compatibility. 
However, it is recommended that you follow the specification and use the 
preload 
attribute in your code.

Firefox 3.5 and 3.6 only support the autobuffer attribute at present. Thus, if 
you 
want to enable autobuffering in these browsers but still write code that will 
work in 
the future, you can include both attributes in your video tags as follows, and 
it will all 
still work.

<video src="foo.mp4" autobuffer preload></video>

The HTML5 specification also allows for setting the value of the preload 
attribute to 
"metadata" to instruct the player to only download the video metadata. This is 
currently treated the same as autobuffer="none" by html5media, as there appears 
to 
be no way to make Flowplayer emulate this satisfactorily.

Original comment by david.et...@gmail.com on 14 Mar 2010 at 10:12