How to Embed M4V in IE and Firefox

An M4V file is an extension of the MPEG-4 video file that plays digital video and audio streams, based on Apple's iTunes application. If you have an M4V file that you want to embed into a Web page, you can do so by adding a section of HTML code into the document. Since different Web browsers handle embedded videos in different ways, you must include both the "<object>" and "<embed>" codes to make the video viewable in all browsers.

Instructions

    • 1

      Launch Notepad or your preferred text or HTML editor and open the Web page in which you wish to embed an M4V file.

    • 2

      Scan through the page code and choose the location where you want to embed the video.

    • 3

      Insert the following code into your document. This code includes both the <embed> tag and the <object> tag for cross-browser compatibility:

      <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
      CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"
      WIDTH="320" HEIGHT="256" >
      <PARAM NAME="src" VALUE="http://URL.com/video.m4v">
      <PARAM NAME="autoplay" VALUE="true">
      <PARAM NAME="controller" value="true">
      <EMBED SRC="QTMimeType.pntg" TYPE="image/x-macpaint"
      PLUGINSPAGE="http://www.apple.com/quicktime/download" QTSRC=" http://URL.com/video.m4v"
      WIDTH="320" HEIGHT="256" AUTOPLAY="true" CONTROLLER="true">
      </EMBED>
      </OBJECT>

    • 4

      Alter the "WIDTH" and "HEIGHT" parameters for both the <object> tag and the <embed> tag to the desired display size of the video in a visitor’s browser.

    • 5

      Replace "http://URL.com/video.m4v" in the example with the URL of the video file on your server. Be sure to make this change for both the <object> and <embed> tags.

    • 6

      Set the "Autoplay" and "Controller" parameters for the <object> and <embed> tags to "true" or "false." The "Autoplay" parameter automatically starts the video when a visitor lands on the page, if this value is set to "true." The "Controller" parameter governs whether the video controls display below the video, allowing the user to pause, fast-forward or rewind the video.

    • 7

      Save the changes and upload the Web page to your server.

Related Searches:

References

Comments

Related Ads

Featured