NOTE: This is a collection of information and links collected over the years that might provide useful information. A Safer Company LLC does not guarantee, endorse or approve any of these links or their scripts. Use these links to other websites at your own risk.
- Animation Gif Homework.docx
- DVDs, CDs, Photo Editing
- Animation
- Animation Files Formats for the Web
- Animated GIF with Flash
- Animated GIF with Photoshop
- Audio
- Audio - Adding to a Web Page
- Embedded WMA
- Common Audio Formats
- Multimedia
- Slideshows
- sound_recorder_message.wma
- Video - embed FLV - DOES NOT WORK
- Video
- Adding Video
- Adding Video to Web Page
- Web Design
- Web Design
- HTML - Video Codes
- Video - HTML5
- video_information.docx
- Windows Movie Maker
- Video - Notes
- Video Players
- Web Design
Audio - Adding to a Web Page
- Create a folder for your audio files.
- Select the audio file to add to the web page. Make sure you have rights to the music file before you use it!
- Upload the audio file to the web hosting.
- Embed the audio file - Every web browser treats videos differently so you should use both old and new HTML embed tags. (<object> and <embed>).
- Open Dreamweaver
- Create a new document Ctrl n or place the cursor on the web page where you want to insert the audio file.
- In the Insert panel select Media: Plugin. Select
the file that you want to add to the web page.
- Dreamweaver will insert the following code:
<embed src="/Multimedia/audio/01 - Dewey Square.mp3" width="32" height="32"></embed> - The following parameters should be added to give the user more control:
- pluginspage - where to get the plugin software
- type - specifies the plugin. If this
parameter is not added, browsers will give different results:
- The image below show the controls that Firefox, Internet
Explorer and
Opera display.
- Chrome will autostart the audio file and will display which is not very helpful. If you click the black box it will stop the audio.
- Safari will give an error message saying it cannot find the Internet plugin.
- When the plugin is specified,
Firefox, Opera, Chrome, and
Safari display the following controls:
- The image below show the controls that Firefox, Internet
Explorer and
Opera display.
- src - the path to the audio file REQUIRED
- width - the width of the media player controls
- height - the height of the media player controls
- autostart - false tells the player not to start automatically - RECOMMENDATION: do not autostart
- hidden - false tells the controls to be displayed - RECOMMENDATION: the user should be able to control the audio
- loop - false tells the audio file not to repeat - RECOMMENDATION: it is probably better not to have the audio repeat
Compare
Example 1 and Example 2 below show the code and the audio controls that will be displayed. Review this page in different browsers and versions of browsers to see the difference.
Example 1:
<embed
src="/Multimedia/audio/01 - Dewey Square.mp3"
width="300"
height="45"
autostart="False"
>
</embed>
Example 2:
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"
name="MediaPlayer"
src="/Multimedia/audio/01 - Dewey Square.mp3"
width="250"
height="45"
autostart="False"
hidden="false"
loop="False"
>
</embed>
Internet Explorer vs Other Browsers
Internet Explorer uses the
<!-- IE uses Object code-->
<object id="MediaPlayer2"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject" width="300" height="45">
<param name="autoplay" value="false" />
<param name="FileName" value="/audio/Beethoven.mp3" />
<param name="AnimationatStart" value="false" />
<param name="TransparentatStart" value="false" />
<param name="AutoStart" value="false" />
<param name="ShowControls" value="true" />
</object>
Page last updated: May 31, 2012 10:36 AM
Content and Navigation...