How to Embed .MPG on a Website With QuickTime
QuickTime is a software program created by Apple to view and play a wide range of multimedia files, including video, audio, animations and images. Designed for both the Windows and Mac OS X operating systems, QuickTime provides support for the MPEG video format. Embedding an MPEG on a website and viewing it with QuickTime is a simple process requiring only a current version of the program and the creation of a few lines of HTML code.
Instructions
-
-
1
Install QuickTime. Download the most current version of QuickTime for your operating system from the Apple website, then double-click the installer file to launch it. Click "Next" on the first installation screen, then "Yes" on the following screen to accept the program's license agreement. Select your installation folder and desktop shortcut preferences, then click "Install." Installation generally takes five to 10 minutes. Click "Finish" after the process is completed.
-
2
Place your MPEG file in the same folder as the web page where it will be embedded.
-
-
3
Open your web page. If you use a text editing program, open your page in the editor and locate the position on the page where you want to embed your MPEG. If you use a visual web editor, such as Adobe Dreamweaver or Microsoft Expression Web, open your page and find the spot where you want to embed the MPEG. Click once on this spot, then change your view to Code View to view the HTML that controls that portion of the page.
-
4
Add the embed code. Insert a blank line in your HTML code, then copy and paste the following snippet of code onto the blank line:
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<embed autoplay="false" href="my_video_file.mpeg" target="quicktimeplayer" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object>Change the placeholder file name within the <embed> tag to match the name of your MPEG file. Set the autoplay parameter value within the tag to "true" if you want the file to play automatically when your web page loads.
-
5
Save your page and open it in your web browser. The MPEG file you added in the previous step should play on your web page using the QuickTime software you installed in Step 1.
-
1
References
Resources
- Photo Credit A silver digital video camera - close up image by Werg from Fotolia.com