beautypg.com

Media components (flash player 6 and 7) – Adobe Flash Professional CC 2014 v.13.0 User Manual

Page 373

background image

To the top

contentPath parameter, nothing happens when Flash Professional executes the FLVPlayback instance.

isLive Boolean value that, if true, specifies that the video is streaming live from FMS. The default value is false.

cuePoints A string that specifies the cue points for the video. Cue points allow you to synchronize specific points in the video with Flash
Professional animation, graphics, or text. The default value is an empty string.

maintainAspectRatio A Boolean value that, if true, resizes the video player in the FLVPlayback component to retain the source video
aspect ratio; the source video is still scaled and the FLVPlayback component itself is not resized. The autoSize parameter takes precedence
over this parameter. The default value is true.

skin A parameter that opens the Select Skin dialog box and allows you to choose a skin for the component. The default value is None. If
you choose None, the FLVPlayback instance does not have control elements that allow the user to play, stop, or rewind the video, or take
other actions that the controls make possible. If the autoPlay parameter is set to true, the video plays automatically. For more information,
see “Customizing the FLVPlayback component” in Using ActionScript 3.0 Components or ActionScript 2.0 Components Language
Reference
.

totalTime Total number of seconds in the source video. The default value is 0. If you use progressive download, Flash Professional uses
this number if it is set to a value greater than zero (0). Otherwise, Flash Professional tries to take the time from metadata.
Note: If you’re using FMS or FVSS, this value is ignored; the total time of the video is taken from the server.

volume A number from 0 to 100 that represents the percentage of maximum volume at which to set the volume.

Specify the contentPath or source parameter

If you imported a local video clip into Flash Professional for use with progressively downloaded or streaming video content, update the contentPath
(AS2 FLA files) or source (AS3 FLA files) parameter of the FLVPlayback component before uploading your content to a web server or Flash Media
Server. The contentPath or source parameter specifies the name and location of the video file on the server, and implies the playback method (for
example, progressively downloading using HTTP, or streaming from Flash Media Server using RTMP).

1. With the FLVPlayback component selected on the Stage, open the Property inspector (Window > Properties) and select Parameters in the

Property inspector, or open the Component inspector (Window > Component Inspector).

2. Enter values for parameters, or use the default settings as appropriate. For the contentPath or source parameter, do the following: a)

Double-click the Value cell for the contentPath or source parameter to activate the Content Path dialog box. b) Enter the URL or local path
to the FLV or F4V file, or the XML file (for Flash Media Server or FVSS) that describes how to play the video.

If you do not know the location of the video or XML file, click the folder icon to navigate to the correct location. When browsing for an video
file, if it is at or below the location of the target SWF file, Flash Professional automatically makes the path relative to that location so that it is
ready for serving from a web server. Otherwise, it is an absolute Windows or Macintosh file path.

If you specify an HTTP URL, the video file is a progressive download FLV or F4V file. If you specify a URL that is a Real-Time Messaging
Protocol (RTMP) URL, the video streams from a Flash Media Server (FMS). A URL to an XML file could also be a streaming video file from
FMS or from a FVSS.

Note: When you click OK on the Content Path dialog box, Flash Professional updates the value of the cuePoints parameter, too, because
you might have changed the contentPath parameter so that the cuePoints parameter no longer applies to the current content path. As a
result, you lose any disabled cue points, although not ActionScript cue points. For this reason, you may want to disable non-ActionScript cue
points through ActionScript, rather than through the Cue Points dialog box.

When you specify the contentPath or source parameter, Flash Professional attempts to verify that the video you specified is compatible with
Flash Player. If you see a warning dialog box, try re-encoding the video to FLV or F4V format with Adobe Media Encoder.

You can also specify the location of an XML file that describes how to play multiple video streams for multiple bandwidths. The XML file uses
Synchronized Multimedia Integration Language (SMIL) to describe the video files. For a description of the XML SMIL file, see “Using a SMIL
file” in the ActionScript 2.0 Components Language Reference.

Media components (Flash Player 6 and 7)

Note: The media components were introduced in Macromedia Flash MX Professional 2004 and are intended for use with Flash Player 6 or 7. If
you are developing video content to use with Flash Player 8, instead use the FLVPlayback component introduced in Macromedia Flash
Professional 8. The FLVPlayback component provides improved functionality, giving you more control over video playback in the Flash
Professional environment.

The media component suite consists of three components: MediaDisplay, MediaController, and MediaPlayback. With the MediaDisplay component,
to add media to your Flash Professional documents, drag the component to the Stage and configure it in the Component inspector. In addition to
setting the parameters in the Component inspector, you can add cue points to trigger other actions. The MediaDisplay component has no visual
representation during playback; only the video clip is visible.

The MediaController component provides user interface controls that let the user interact with streaming media. The Controller features Play,
Pause, and Rewind to Start buttons and a volume control. It also includes playbars that show how much of the media has loaded and how much
has played. A playhead slider can be dragged forward and backward on the playbar to navigate quickly to different parts of the video. Using
behaviors or ActionScript, you can easily link this component to the MediaDisplay component to show streaming video and provide user control.

366