As we saw in the last chapter, integrating audio and video assets with basic controls into and HTML5 document is extremely easy. But if you intend to use your multimedia in other forms than just a straightforward video playback element, you will need to understand the properties available for custom playback code integration.
By default, when an audio or video element is displayed in a HTML5 document, the source asset declared within it will be preloaded to allow for instantaneous playback when the user initiates the player. Assets will be preloaded only as far as the browsers deems necessary to enable fluid uninterrupted playback. To override this setting, we can use the preload
parameter within the audio element to declare what we would like to be preloaded when a user views our page.
Setting the preload parameter to auto
will preload the entire audio upon page load and could be a useful addition to any audio you are almost certain a user will watch...