- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
free birt barcode plugin Using the FLVPlayback component in Font
Using the FLVPlayback component Quick Response Code Encoder In None Using Barcode generator for Font Control to generate, create QR Code image in Font applications. www.OnBarcode.comCode 128 Creation In None Using Barcode creation for Font Control to generate, create Code 128 Code Set C image in Font applications. www.OnBarcode.comIn the previous exercise, you used the wizard to connect an FLV to the FLVPlayback component. In this exercise, you ll be doing the process manually. Once you are comfortable with it, you will discover this method to be a lot quicker than the previous one. Follow these steps: Encode UCC.EAN - 128 In None Using Barcode maker for Font Control to generate, create EAN128 image in Font applications. www.OnBarcode.comBarcode Drawer In None Using Barcode creator for Font Control to generate, create Barcode image in Font applications. www.OnBarcode.com1. Create a new Flash document, and save it to your 10 Exercise folder. Remember that
Print ANSI/AIM Code 39 In None Using Barcode creation for Font Control to generate, create Code 3 of 9 image in Font applications. www.OnBarcode.comPrint Barcode In None Using Barcode creation for Font Control to generate, create Barcode image in Font applications. www.OnBarcode.comthe FLA needs to be in the same folder as the FLV.
Generating EAN / UCC - 13 In None Using Barcode creation for Font Control to generate, create EAN-13 image in Font applications. www.OnBarcode.comGenerate ISSN - 13 In None Using Barcode creator for Font Control to generate, create International Standard Serial Number image in Font applications. www.OnBarcode.com2. In the Components panel (Window Components), click the Video category. Drag a copy of
Quick Response Code Scanner In VB.NET Using Barcode reader for VS .NET Control to read, scan read, scan image in .NET applications. www.OnBarcode.comDrawing QR-Code In Visual Studio .NET Using Barcode drawer for Reporting Service Control to generate, create Quick Response Code image in Reporting Service applications. www.OnBarcode.comthe FLVPlayback component onto the stage, as shown in Figure 10-19. Barcode Decoder In None Using Barcode recognizer for Software Control to read, scan read, scan image in Software applications. www.OnBarcode.comEAN / UCC - 13 Encoder In Visual C#.NET Using Barcode maker for Visual Studio .NET Control to generate, create EAN-13 Supplement 5 image in Visual Studio .NET applications. www.OnBarcode.comFigure 10-19. The FLVPlayback component is found in the Video section of the Components panel.
EAN13 Reader In Visual C# Using Barcode decoder for .NET Control to read, scan read, scan image in .NET framework applications. www.OnBarcode.comGenerating Barcode In VS .NET Using Barcode printer for VS .NET Control to generate, create Barcode image in .NET framework applications. www.OnBarcode.comVIDEO
Barcode Generator In None Using Barcode encoder for Online Control to generate, create Barcode image in Online applications. www.OnBarcode.comRecognize Barcode In Visual Basic .NET Using Barcode recognizer for .NET Control to read, scan read, scan image in VS .NET applications. www.OnBarcode.comYou will notice that the component has the same skin color from the previous exercise. This is normal. Also, if you open the Library, you will see a copy of the component has been added to the Library. This is a handy feature, because you can use the Library, rather than the Components panel, to add subsequent copies of the FLVPlayback component to the movie. Linear Drawer In .NET Framework Using Barcode creation for ASP.NET Control to generate, create Linear image in ASP.NET applications. www.OnBarcode.comUCC-128 Maker In Objective-C Using Barcode encoder for iPad Control to generate, create USS-128 image in iPad applications. www.OnBarcode.com3. Click the component on the stage, and open the Properties panel. The parameters, as shown
Recognizing Code 128B In C# Using Barcode reader for .NET framework Control to read, scan read, scan image in Visual Studio .NET applications. www.OnBarcode.comPDF417 Generation In None Using Barcode encoder for Excel Control to generate, create PDF 417 image in Excel applications. www.OnBarcode.comin Figure 10-20, for the component are set here. The parameters, listed here, allow you to determine how the component will function: align: The choices in this drop-down list have nothing to do with the physical placement of the component on the Flash stage. The choices you make here will determine the position of the FLV in the playback area of the component if the component is resized. autoPlay: When the check box is selected, the default, the video plays automatically. Deselect it, and the user will need to click the Play button in the component to start the video. In either case, the FLV file itself starts downloading to the user s computer, so keep this in mind if you put several FLV-enhanced SWFs in a single HTML document. cuePoints: If cue points are embedded in the FLV, they will appear in this area. preview: If you select this and an FLV is connected to the component, you can see the video without needing to test the movie. This feature, you discovered, is a bit redundant. It is ideal for capturing a frame of the video. scaleMode: Leave this at the default value maintainAspectRatio if video is to be scaled. skin: Select this, and the Select Skin dialog box will appear. skinAutoHide: Adding a check to this means the user will need to place the mouse over the video, at run time, for the skin to appear. skinBackgroundAlpha: Your choice is any two-place decimal number between 0 to 1. 0 means the background is totally transparent, and 1 means there is no transparency. skinBackgroundColor: Select this, and the Flash color chip appears. source: Double-click this area, and the Content Path dialog box opens. From here, you can either set a relative path to the FLV or enter an HTTP or RTMP address path to the FLV. volume: The number you enter any two-place decimal number between 0 and 1 will be the starting volume for the video. Figure 10-20. The FLVPlayback component now relies on the Properties panel to determine its look and functionality. 4. With the component selected on the stage, set autoPlay to false by deselecting it, and
change the skinBackgroundColor to #999999 (medium gray). 5. Double-click the source parameter to open the Content Path dialog box, as shown in Figure
10-21. Figure 10-21. Setting the content path to the FLV to be played in the component
VIDEO
6. In the Content Path dialog box, click the Navigate button the file folder icon to open the
Browse for source file dialog box. Navigate to the 10 Exercise folder, select the ThroughADoor.flv file, and then click the Open button. 7. The relative path to the FLV will appear in the Content Path dialog box. Select the Match
source dimensions check box. This will size the component to the exact dimensions of the FLV file. Then click OK. 8. Save the movie. 9. Test the movie in Flash Player. Alternatively, click the Play button on the skin to start playing the video. When you have finished, close the SWF to return to the Flash stage.
Playing video using ActionScript
In the previous two exercises, you have seen different ways of getting an FLV file to play through the FLVPlayback component. In this exercise, you won t be using the component; instead, you ll let ActionScript handle the duties. This is also the point where you are going to get the opportunity to play with some of the new video stuff. The video you will be using is an MP4 file that was ripped from a DVD. The ability to use HD-quality video was added to Flash Player 9 in late 2007. Playing video using ActionScript is a lot like connecting your new television to the cable in an empty room. There are essentially three steps involved: connect, stream, and play. When you walk into the room where you are about to hook up the television to the cable, the television is sitting on a shelf, and there is a spool of coaxial cable lying on the floor. When you screw the cable into the wall outlet, you are establishing a connection between the cable company and your home. When you screw the other end of the cable into the television, the television is now connected to the cable company. When you turn on the television, the show that is flowing from the cable company to your television starts to play. Let s connect our television to an FLV:
|
|