Video must follow rules set up by https://designmanual.oslo.kommune.no/video.
The following attributes are required on the video-tag:
controls - see documentation on MDN
preload="metadata" - see documentation on MDN
Additional relevant attributes:
poster - see documentation on MDN
loop - see documentation on MDN
muted - see documentation on MDN
crossorigin - see documentation on MDN
role="presentation" - see documentation on W3C
You can add the sandbox attribute to an iframe to restrict permissions - see documentation on MDN
Video: Lorem ipsum, dolor sit amet. Creative Something License Example 4.0
Transcription of, and info about, the video "Lorem ipsum dolor sit amet".
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.
When hosting your own video, you must provide one or more source-tags with webm and/or mp4 file types.
You might have issues with CORS if you serve the video from another domain than the one used for the HTML.
To help fix this, add the attribute crossorigin="anonymous" to the video-tag.
Be sure to also send the correct "Access-Control-*" headers from the server(s)/CDN-service you're using. Typically "Access-Control-Allow-Origin" and "Access-Control-Allow-Methods".
Animation clips are the only video clips that are allowed to auto start and go on a loop. No audio allowed.
Small animations can be fun, but think about what you want to add to the rest of the content.
The following technical changes to the attributes of the video-tag are required:
Video: Lorem ipsum, dolor sit amet. Creative Something License Example 4.0
Transcription of, and info about, the video "Lorem ipsum dolor sit amet".
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
when an unknown printer took a galley of type and scrambled it to make a type specimen book.
It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.