Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author: Nick Kouvaris
»  Title: Znax
»  Description: Znax is a board game. Click 4 tiles of the same color and form squares as big as you can. You will erase all the tiles inside the square and collect points. Get maximum score if you make a square with game edges.
»  More by: Nick Kouvaris


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4941 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  Author Agence WOP Digital Agency
»  Title: Electricdrum
»  Description: French WOP Agency, 3D websites, Flash (Papervision, Away 3D), event or institutional projects. The agency operates on all digital projects: consulting, design, graphic design, development, online communication. The WOP agency follows you on the implementation of original, creative and optimized digital projects.


Random Links | Add your own Flash Related Links
Flash Tutorials 1481 Tutorials 7 New Tutorials Added!
What's New | Top100

» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» How To Make A Fathers Day Slideshow
» How To Make A Transparent Background of Your Flash File
» Create Flash Banner With Text Disco Light Effect Today we will introduce you a Text Disco Light eff
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Tips_And_Techniques

Categories Make flash video player for broadcasting live streaming video / TV on website
Author: stephen | Website: http://www.playerdiy.com/ |

 
Page 1
1

Below is a step by step tutorial about how to do this in Adobe Flash CS4.

Step 1. Launch Adobe Flash CS4 Professional on your computer. Create a new ActionScript 3.0 document which is 640*480 pixels.

Step 2. Drag and drop the FLVPlayback component to the Stage and set its dimensions to 640 × 480.
The FLVPlayback component and the FLV Playback Custom UI controls appear in the Components panel, as shown in the following figure (Figure 1):

Figure 1

Step 3. Select the FLVPlayback component on the Stage and open the Properties panel in Flash CS4 (or click the Parameters tab in Flash CS3).
Double-click the source parameter and input the URL of the live stream rtmp://localhost/live/livestream. Click OK to finish this setting. Now you have told Flash where to get the live stream source data, but you haven't told Flash to play the live stream (see Step 6).

Step 4. Select the FLVPlayback component on the Stage. In the Property inspector, name the instance myVideo.

Step 5. Add a new layer to the live streaming video and name it actions (see Figure 2).

Figure 2

Step 6. Select the first frame of the actions layer and press F9 to open the Actions panel.
In the Script pane enter:
myVideo.isLive = true;
The isLive property of the FLVPlayback component can be only two values: true or false. This property works only if the video or TV feed is streaming from Flash Media Server. If you were not using Flash Media Server—that is, progressively downloading the video from an HTTP address—and you set isLive to true, then Flash would simply ignore the ActionScript and nothing would happen.

Step 7. Close the Actions panel, save all the settings and click File> Publish Settings. Select Flash (SWF) and HTML (.html) in the Type list when the Publish Settings dialog box opens. Click Publish. When it finishes, you could close the dialog box, save the Flash file and quit Flash.

Now you know that it is not difficult to make such a web flash video player to play live streaming video or TV on the Internet. Moreover, not only Flash CS4, but also I know another tool can do this even with no coding needed, it is called Moyea Web Player - http://www.playerdiy.com/, which is free. It provides a free RTMP Stream Plugin to receive and play live streaming video in a custom web flash video player. (see Figure 3)


Figure 3

More information about this RTMP Stream Plugin click here - http://www.playerdiy.com/configuration/addons/rtmp.html

And check how to make a custom web flash video player to play live streaming with this RTMP Stream Plugin - http://flash-video-player.blogspot.com/2009/06/play-live-stream-videos-in-flash-video.html

1

» Level Intermediate

Added: : 2009-06-30
Rating: 10.00 Votes: 3
Hits: 1745
» Author
Stephen is an expert in web multimedia development and concentrated to give you the best solution of flash video player for web.
» Download
Download the files used in this tutorial.
Download (0 kb)
Get conversion and unzipping tools for PC and Mac here!

» Forums
More help? Search our boards for quick answers!

Please rate this tutorial, 10 is the top rating, you can also click the comments link to read/write a review.
10 9 8 7 6 5 4 3 2 1
Read or Post Comments