beautypg.com

Adobe Dreamweaver CC 2014 v.13 User Manual

Page 358

background image

made with the server.) You might want to set a buffer time if you are delivering video that has a higher bit rate than the site visitor’s
connection speed, or when Internet traffic might cause bandwidth or connectivity problems. For example, if you want to send 15 seconds of
video to the web page before the web page starts to play the video, set the buffer time to 15.

3. Click OK to close the dialog box and add the FLV file to your web page.

The Insert FLV command generates a video player SWF file and a skin SWF file that are used to display your video on a web page. The
command also generates a main.asc file that you must upload to your Flash Media Server. (To see the new files, you may need to click the
Refresh button in the Files panel.) These files are stored in the same directory as the HTML file to which you’re adding video content. When
you upload the HTML page containing the FLV file, don’t forget to upload the SWF files to your web server, and the main.asc file to your
Flash Media Server.

Note: If you already have a main.asc file on your server, check with your server administrator before uploading the main.asc file generated
by the Insert FLV command.

You can easily upload all of the required media files by selecting the video component placeholder in the Dreamweaver Document window,
and clicking the Upload Media button in the Property inspector (Window > Properties). To see a list of required files, click Show required
files.

Note: The Upload Media button does not upload the HTML file that contains the video content.

Edit Flash Player download information

When you insert an FLV file in a page, Dreamweaver inserts code that detects whether the user has the correct version of Flash Player. If not, the
page displays default alternative content that prompts the user to download the latest version. You can change this alternative content at any time.

This procedure also applies to SWF files.
Note: If a user does not have the required version but does have Flash Player 6.0 r65 or later, the browser displays a Flash Player express
installer. If the user declines the express install, the page then displays the alternative content.

1. In the Design view of the Document window, select the SWF file or FLV file.

2. Click the eye icon in the tab of the SWF file or FLV file.

You can also press Control + ] to switch to alternative content view. To return to SWF/FLV view, press Control + [ until all of the
alternative content is selected. Then press Control + [ again.

3. Edit the content just as you would edit any other content in Dreamweaver.

Note: You cannot add SWF files or FLV files as alternative content.

4. Click the eye icon again to return to the SWF or FLV file view.

Troubleshoot FLV files

This section details some of the most common causes of problems with FLV files.

Viewing problems caused by absence of related files

The code generated by Dreamweaver CS4 and later relies on four dependent files, different from the FLV file itself:

swfobject_modified.js

expressInstall.swf

FLVPlayer_Progressive.swf

The skin file (for example Clear_Skin_1.swf)

Note that there are two more dependent files for Dreamweaver CS4 and later, compared to Dreamweaver CS3.

The first two of these files (swfobject_modified.js and expressInstall.swf) are installed in a folder called Scripts, which Dreamweaver creates in the
root of your site if it doesn't already exist.

The second two files (FLVPlayer_Progressive.swf and the skin file) are installed in the same folder as the page in which the FLV is embedded.
The skin file contains the controls for the FLV, and its name depends on the skin chosen in the options described in Dreamweaver Help. For
example, if you choose Clear Skin, the file is named Clear_Skin_1.swf.

All four dependent files MUST be uploaded to your remote server for the FLV to display correctly.

Forgetting to upload these files is the most common cause of FLV files failing to run correctly in a web page. If one of the files is missing, you
might see a "white box" on the page.

To ensure that you've uploaded all of the dependent files, use the Dreamweaver Files panel to upload the page in which the FLV appears. When
you upload the page, Dreamweaver asks you if you want to upload dependent files (unless you've turned off this option). Click yes to upload
dependent files.

Viewing problems when previewing pages locally

Because of security updates in Dreamweaver CS4, you cannot use the Preview in Browser command to test a page with an embedded FLV
unless you define a local testing server in your Dreamweaver site definition and use the testing server to preview the page.

Normally, you require a testing server only if you are developing pages with ASP, ColdFusion, or PHP (see Set up your computer for application

351

This manual is related to the following products: