mcs:video-fallback

Purpose

Provides alternative content for mcs:video. If the containing mcs:video element does not list any content types supported by the device, then the contents of mcs:video-fallback will be processed.

Styles

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.

Contained by

Example

<?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>

Related topics