New Feature: Playlist Center! Pick a topic and let our playlists guide the way.

Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member

Embedding audio and video files

From: Dreamweaver CS3 Essential Training

Video: Embedding audio and video files

In the previous movie we looked at the relatively simple task of linking to an audio or video file. The result was in a browser window with the proper plug-in installed, that the media clip played right in the browser window. And it was unnecessary to design a page to hold the clip. Now, in this movie you're going to see how to place a media clip into an actual web page containing other content. When you make a media object part of a web page's layout it's called "embedding the clip". When you embed the clip your audio or video file appears among the other images, text, tables, and whatever else is on your page. So, for instance if I want to embed my audio file and my video file onto this page, instead of linking to them, or maybe even in addition to linking to them. So, here's how we do it, I'm going to start with the audio file. I'm just going to go down and create a line between the MP3 file and the MOV file link.

Embedding audio and video files

In the previous movie we looked at the relatively simple task of linking to an audio or video file. The result was in a browser window with the proper plug-in installed, that the media clip played right in the browser window. And it was unnecessary to design a page to hold the clip. Now, in this movie you're going to see how to place a media clip into an actual web page containing other content. When you make a media object part of a web page's layout it's called "embedding the clip". When you embed the clip your audio or video file appears among the other images, text, tables, and whatever else is on your page. So, for instance if I want to embed my audio file and my video file onto this page, instead of linking to them, or maybe even in addition to linking to them. So, here's how we do it, I'm going to start with the audio file. I'm just going to go down and create a line between the MP3 file and the MOV file link.

And with my curser there I'm going to come over to the Common area of my Insert bar and I'll find the Media button. And you can see we have several different selections here and this being an Adobe product we have tons of different {italic}Flash{plain} plug-ins that we can choose from. We've got {italic}Shockwave{plain}, but down here at the very bottom here, we have plug-in, which is just sort of a generic selection. And {italic}Dreamweaver{plain} is going to ask me to locate the media object I want to use. So, I'll look in my Root folder, in assets, go into sound, and there's the MP3 file, and I'll click choose. And there's the plug-in icon representing my audio file. Now, even though this is an audio file, I still need to specify the dimensions of the plug-in area, because I want the controller bar to actually appear on this page. For audio files the dimensions aren't as important as they are for video because audio files have no images.

So, I just need to choose an arbitrary size that I think would be good for the playback controller. Now, before I set the size let's see what this looks like in the browser. So, save this, check this out in my browser. and to pause. I didn't allow enough room for me to actually see the volume control, or the playback bar. So, let's go back, I'll select that plug-in object, and down here in the Properties Inspector, I'll just choose an arbitrary value of say, 150 pixels. Save that, preview that. (jazz music starts) And that's much better. Now I have an actual controller embedded on my page that I can use to scrub back and forth, or raise or lower the volume. And this audio file is now embedded on the page. This was the link we created up here.

(jazz music starts) But this is the actual embedded version on the page here. We can do the same thing with the video file. Let's embed this photos.mov file. I'll just click down to this next line, here. We come up to the plug-in area again and select Plugin. And this time I'll go into video, select photos.mov and click Choose. And again we encounter this annoying thing where {italic}Dreamweaver{plain} can't automatically detect the dimensions of your video clip. If I preview this in my browser right now, You can see the movie is playing, let me just pause that audio up there. The movie was playing there, but I just see it in this tiny, 32x32 pixel square. So, you have to know the dimensions of your movie in order to make sure that it's not cut off when it's playing. Now I can do this simply by opening the movie in {italic}QuickTime,{plain} going to the Movie Info, and I can see here that the Normal Size is 269 x 291 pixels tall.

So let's go in and enter that value in {italic}Dreamweaver.{plain} We have 269 for the Width and 291 for the Height. There it is. Let's save that, and check that out in the browser. Pause that. In the next movie I'll show you how to make sure that this doesn't start playing automatically if you don't want it to. Notice here the movie file, I can see the whole movie now but it looks like the controller is cut off a bit. What I need to do is to come back in here, and I need to add a little bit more height to compensate for the controller.

And the magic number here, for some reason, is 16 pixels. We need to add an additional 16 pixels of height to allow for the entire controller to appear. So that would be 307 pixels in height. Now when I save and preview this in the browser, So, basically if you want to embed any other type of media file the process is the same. The exception would be {italic}Flash{plain} files, because you can see we have specific objects here for {italic}Flash{plain} files. But, if you want to embed a WMV file or {italic}Real Player {plain}file, all you do is select the generic Plugin button, and then find your file. And again, anybody who wants to view this content has to have the right plug-in installed, so you should provide a link to the proper location to download that plug-in.

But there actually is an attribute you can add to the media clip in the HTML code to automatically direct the browser to the right location should the necessary plug-in not be installed. Let me show you how this works. With the media object selected down here in the Properties Inspector, there's a plug-in URL field (Plg URL). Here's where I can enter the web address for the plug-ins download page. I can't really show you an example of this since the {italic}QuickTime{plain} plug-in is installed in all of my browsers, but to illustrate this a little bit better, I'm going to come in and change the movie file. I'm going to change that extension.

Now, the extension tells the browser what type of file this is. And it knows to play movie files with {italic}QuickTime.{plain} I'm going to change this to photos.lynda. There is no such plug-in called ".lynda", but this will work to fool the browser. Go ahead and save that, it's going to ask if I want to update the links in the following files. I definitely do. You can see this link now says photos.lynda. This is going to confuse the browser because it won't know what plug-in to use to play this movie. I'm going to save that. Now, I'm not going to preview in {italic}Safari,{plain} because {italic}Safari{plain} is a little bit too helpful. It knows that I'm only checking out this file on my local computer.

So, it actually -- let me pause the audio file again -- it actually opened up a window showing me where that file is located on my desktop. That's not what I wanted to show you. Let me show you this in {italic}Firefox.{plain} Pause that. Now, in {italic}Firefox{plain} we get this note saying "Additional plugins are required to display all the media on the page", and notice down here that we just have this blank area because it doesn't know what a .lynda file is, but it says "Click here to download plug-in". So, if I click here it'll go to that address and try to find the information to download that plug-in. There is no plug-in information at lynda.com, but there is this link here to find out more about plug-ins, or how to manually find missing plug-ins.

If I click on that it'll take me to this {italic}Firefox{plain} Add-ons area where I can download some of the most popular plug-ins available. And in some versions it will allow you to manually install a plug-in, and it will actually take you to the website that you listed in the Plg URL, but not in this case. I'm going to go back and I'm going to change that back to a .mov file. So it all works properly again. So that's how you embed a media object using the Plugin button. Now in the next movie, we're going to look at some things you can do to your media files once they're embedded on the page, like make sure they don't start playing right away like that audio file and this movie keep doing.

Show transcript

This video is part of

Image for Dreamweaver CS3 Essential Training
Dreamweaver CS3 Essential Training

129 video lessons · 86864 viewers

Garrick Chow
Author

 
Expand all | Collapse all
  1. 1m 12s
    1. Welcome
      1m 12s
  2. 21m 0s
    1. HTML vs. XHTML
      3m 4s
    2. What is CSS?
      3m 48s
    3. What is XML?
      2m 11s
    4. What is DHTML?
      1m 9s
    5. What is JavaScript?
      1m 23s
    6. File naming conventions
      3m 22s
    7. What is an index page?
      6m 3s
  3. 46m 18s
    1. Setting up your workspace
      2m 39s
    2. The Welcome screen
      4m 11s
    3. Windows and Mac differences
      3m 18s
    4. The Insert bar
      4m 38s
    5. The Property Inspector
      1m 50s
    6. The Document toolbar
      6m 6s
    7. The Document window
      9m 11s
    8. Panels and panel groups
      6m 58s
    9. Saving workspace layouts
      2m 22s
    10. Defining a default browser
      5m 5s
  4. 24m 59s
    1. Defining a site
      9m 5s
    2. File and folder management
      3m 11s
    3. Understanding path structure
      3m 17s
    4. Adding content to a site
      6m 6s
    5. Creating a site map
      3m 20s
  5. 38m 39s
    1. Creating a new blank site
      6m 0s
    2. Creating and saving a new document
      7m 54s
    3. About DOCTYPE
      3m 59s
    4. Inserting images
      9m 26s
    5. Inserting text
      3m 35s
    6. Aligning text and images
      4m 9s
    7. Inserting meta tags
      3m 36s
  6. 45m 58s
    1. Link basics
      6m 4s
    2. Linking with Point to File
      5m 18s
    3. External links
      4m 15s
    4. Creating email links
      5m 49s
    5. Named anchors
      7m 37s
    6. Linking to a file
      7m 35s
    7. Image maps
      9m 20s
  7. 1h 8m
    1. About CSS
      4m 52s
    2. Anatomy of a style sheet
      4m 10s
    3. CSS and page properties
      10m 11s
    4. Moving an internal style sheet to an external style sheet
      6m 46s
    5. The CSS Styles panel
      3m 48s
    6. CSS selectors
      2m 37s
    7. Type selectors
      12m 13s
    8. ID selectors
      10m 21s
    9. Class selectors
      5m 42s
    10. Creating rollovers with pseudo-class selectors
      7m 22s
  8. 42m 54s
    1. CSS vs. the Font tag
      2m 42s
    2. Formatting text with the Property Inspector
      8m 41s
    3. What measurement should I use?
      3m 15s
    4. Managing white space with margins, padding, and line height
      8m 34s
    5. Using font lists
      5m 45s
    6. Aligning text
      2m 47s
    7. Creating lists
      5m 8s
    8. Creating Flash text
      6m 2s
  9. 43m 19s
    1. About tables
      1m 28s
    2. Tables in Code view
      2m 36s
    3. Creating and adding content to tables
      7m 40s
    4. Changing table borders with XHTML
      5m 46s
    5. Coloring tables with XHTML and CSS
      6m 41s
    6. Aligning table content
      6m 39s
    7. Sorting tables
      3m 6s
    8. Setting table widths
      4m 48s
    9. Creating rounded-corner tables
      4m 35s
  10. 28m 22s
    1. Dreamweaver's layout tools
      3m 8s
    2. Tracing images
      4m 58s
    3. Adding AP div tags
      7m 29s
    4. Working with Layout Tables
      6m 55s
    5. Adjusting table widths and nesting tables
      5m 52s
  11. 16m 19s
    1. What is a device?
      3m 14s
    2. Attaching a printer-friendly style sheet
      3m 5s
    3. Styling for print
      7m 41s
    4. Adobe Device Central
      2m 19s
  12. 29m 54s
    1. Rollover rules
      3m 31s
    2. Creating simple rollovers
      5m 36s
    3. Creating disjointed rollovers
      7m 12s
    4. Creating navigation bars with multiple states
      9m 21s
    5. Creating Flash buttons
      4m 14s
  13. 26m 32s
    1. Viewing the code
      6m 9s
    2. Editing in Code view
      3m 0s
    3. The Code toolbar
      5m 11s
    4. Working with Code Collapse
      4m 27s
    5. The Quick Tag Editor
      2m 20s
    6. Working with snippets
      5m 25s
  14. 32m 45s
    1. About forms
      3m 23s
    2. Adding text fields
      9m 52s
    3. Adding checkboxes and radio buttons
      5m 37s
    4. Adding lists and menus
      6m 5s
    5. Submitting form results
      3m 23s
    6. Styling form elements with CSS
      4m 25s
  15. 23m 17s
    1. Opening a new browser window
      9m 38s
    2. Creating a popup message
      2m 50s
    3. Validating text fields
      2m 42s
    4. Getting more behaviors
      7m 2s
    5. Removing extensions
      1m 5s
  16. 14m 58s
    1. External image editor preferences
      3m 18s
    2. Built-in image editing tools
      3m 11s
    3. Roundtrip editing from Dreamweaver to Fireworks or Photoshop
      4m 39s
    4. Copying and pasting
      3m 50s
  17. 34m 16s
    1. Templates in action
      5m 12s
    2. Creating a new template
      6m 36s
    3. Applying templates
      3m 36s
    4. Modifying a template
      1m 40s
    5. Adding repeating regions
      3m 28s
    6. Working with repeating regions
      3m 13s
    7. Adding optional regions
      3m 34s
    8. Creating a library item
      3m 48s
    9. Modifying a library item
      3m 9s
  18. 13m 2s
    1. Using the History panel
      4m 24s
    2. Saving History steps as commands
      3m 25s
    3. Using Find and Replace
      5m 13s
  19. 14m 44s
    1. W3C accessibility guidelines
      4m 6s
    2. Accessibility preferences
      1m 29s
    3. Inserting accessible images
      3m 2s
    4. Inserting accessible tables
      2m 53s
    5. Inserting accessible form objects
      3m 14s
  20. 26m 17s
    1. About media objects
      2m 6s
    2. Linking to audio and video files
      5m 56s
    3. Embedding audio and video files
      7m 7s
    4. Setting parameters
      4m 27s
    5. Inserting Flash content
      2m 37s
    6. Inserting Flash video
      4m 4s
  21. 28m 47s
    1. Getting site reports
      3m 35s
    2. Checking links sitewide
      3m 30s
    3. Signing up with Tripod
      6m 36s
    4. Entering remote info
      4m 13s
    5. Publishing your site
      5m 41s
    6. Updating and publishing pages
      5m 12s
  22. 44s
    1. Goodbye
      44s

Start learning today

Get unlimited access to all courses for just $25/month.

Become a member
Sometimes @lynda teaches me how to use a program and sometimes Lynda.com changes my life forever. @JosefShutter
@lynda lynda.com is an absolute life saver when it comes to learning todays software. Definitely recommend it! #higherlearning @Michael_Caraway
@lynda The best thing online! Your database of courses is great! To the mark and very helpful. Thanks! @ru22more
Got to create something yesterday I never thought I could do. #thanks @lynda @Ngventurella
I really do love @lynda as a learning platform. Never stop learning and developing, it’s probably our greatest gift as a species! @soundslikedavid
@lynda just subscribed to lynda.com all I can say its brilliant join now trust me @ButchSamurai
@lynda is an awesome resource. The membership is priceless if you take advantage of it. @diabetic_techie
One of the best decision I made this year. Buy a 1yr subscription to @lynda @cybercaptive
guys lynda.com (@lynda) is the best. So far I’ve learned Java, principles of OO programming, and now learning about MS project @lucasmitchell
Signed back up to @lynda dot com. I’ve missed it!! Proper geeking out right now! #timetolearn #geek @JayGodbold

Are you sure you want to delete this note?

No

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.