DivX Web Player Plug-In Samples: Preview Image Sample



Preview image Sample

This sample demonstrates how to set a preview image.

We have used the previewImage parameter to point at a preview, image file and have set a previewMessage with a custom font size. Note how we have set autoPlay to false to enable all this.

This sample uses the following HTML code:

    <object classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"
            width="320" height="192"
            codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab">

      <param name="autoPlay" value="false" />
      <param name="previewImage" value="../../images/preview.png" />
      <param name="previewMessage" value="Click here to play" />
      <param name="previewMessageFontSize" value="18" />
      <param name="src" value="../../videos/video2.divx" />

      <embed type="video/divx" src="../../videos/video2.divx"
             width="320" height="192"
             autoPlay="false" previewImage="../../images/preview.png"
             previewMessage="Click here to play" previewMessageFontSize="18"
             pluginspage="http://go.divx.com/plugin/download/">
      </embed>
    </object>


Back to samples index