Container for one or more mcs:video-source elements and an optional mcs:video-fallback element.
Depending on the device capabilities, video assets can be embedded in the page, or the page can contain a link which, when clicked, will activate an external video asset. The poster attribute specifies an image policy that provides the content for the activation link.
The width and height properties defined for an mcs:video element are applied either to the video element or an image corresponding to the policy specified by the poster attribute. Other styles defined for mcs:video, as well as styles defined for the mcs:video-source and mcs:video-fallback elements are ignored.
Attribute | Description | Type | Default | Options | Use |
---|---|---|---|---|---|
poster | An image policy, representing the video, that provides the content for the activation link. | xs:anyURI | required |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:mcs="http://www.volantis.com/xmlns/2006/01/xdime/mcs">
<head>
<title>mcs:video</title>
</head>
<body>
<div>
<mcs:video poster="/images/video-poster.mimg" style="width: 95%;">
<mcs:video-source src="movie.swf" type="application/x-shockwave-flash"/>
<mcs:video-source src="movie.mp4" type="video/mp4"/>
<mcs:video-source src="movie.webm" type="video/webm"/>
<mcs:video-source src="movie.3gp" type="video/3gpp"/>
<mcs:video-fallback>
<p>Video formats are not supported on this device.
<a href="http://www.mysite.com">Learn more...</a>
</p>
</mcs:video-fallback>
</mcs:video>
</div>
</body>
</html>