Video attributes

There are few HTML5 video attributes that you can control through the Nuevo shortcode.

1. poster

A URL for an image to be shown while the video is downloading, or until the user hits the play button

2. preload (default preload=”metadata”)

Value Description
auto The author thinks that the browser should load the entire video when the page loads
metadata The author thinks that the browser should load only metadata when the page loads
none The author thinks that the browser should NOT load the video when the page loads

Preload attribute on the HTML5 <video> tag is ignored or disabled by mobile browser vendors.

3. muted

Set “muted=true” to start video muted

4. autoplay

Set “autoplay=true” to auto play video. Autoplay policies can be different in each browser. In most cases autoplay requires muted attribute or no audio track.

5. loop

set “loop=true” to loop video.

6. crossorigin

This attribute indicates whether to use CORS to fetch the related video.

  • “anonymous” – Sends a cross-origin request without a credential. If the server does not give credentials to the origin site the resource usage will be restricted.
  • “use-credentials” – Sends a cross-origin request with a credential. If the server does not give credentials to the origin site the resource usage will be restricted.

7. playsinline (enabled by default)

A Boolean attribute indicating that the video is to be played “inline”
Set “playsinline=false” to play video in fullscreen. By default this attribute is enabled.