Online computer courses, code, programming tutorial and sidebar information for monitoring Canadian S&P/TSX index. Build friendship and networking. Welcome to visit my blogs often!!! I also have two other sites: YouTube Channel and Google site.
Adsense
Popular Posts
- PHPWind-- A PHP forum script applcaition in China
- How to blend adsense inside your post?
- Formatting my post
- Notepad++ - Add C++ compiler
- Install PHPMailer 5.2.4 and use smtp gmail
- Set up a child account and set screen time limit in Windows 8
- Wayback Machine - see archived versions of web pages across time
- phpexcel toggle expand and hide column in EXCEL and summary
- Install PHP ibm_db2 extension in Linux (redHat)
- PHP: add a download as pdf file button in report page
Wednesday, January 5, 2011
Flash Media Interactive Server 4
Flash Media Interactive Server 4 can be downloaded from
http://www.adobe.com/products/flashmediaserver/
Flash Media Interactive Server 4 is for medium and large business and social media companies
requiring multi-users experience, while Flash Media Streaming server 4 for basic streaming and blogger.
For trial version, you can only get Adobe Flash Media Development Server 4 for a limitation of 10 RTMP connection.
Video: Webcam Basics in ActionScript 3
Subscribe to:
Post Comments (Atom)
Beginner's guide to streaming video with Flash Media Server 3.5:
ReplyDeletehttp://www.adobe.com/devnet/flashmediaserver/articles/beginner_vod_fm3.html
Flash media server:
ReplyDelete1) instead of put videos in your web server, you put videos in the Application folder of Flash Media Server. The folder where the media files are located is called the "instance." It looks somewhat like this: rtmp://server/Application/Instance.
2) You need to understand some server-side ActionScript.
Examples:
1) Copy FLV files to C:\Program Files\Adobe\Flash Media Server 4\applications\media
2) Inside the Flash CS5 select File > New > ActionScript 3.0, drag a copy of the FLVPlayback component from the Components panel to the Stage.
2. Save the Flash file to a folder of your choosing.
3. Click once on the component on the Stage, and open the Component inspector
4. Double-click the source parameter. When the Content Path dialog box appears, enter rtmp://server/Application/Instance. .
Using NetConnection class to connect to an application instance on the server.
ReplyDeletevar nc:NetConnection = new NetConnection();
nc.connect("rtmp://localhost/MyServer");
(fold in the server is:
C:\Program Files\Adobe\Flash Media Server 4\applications\MyServer\media)
Example of ActionScript for HelloServer in client side from Adobe:
package {
import flash.display.MovieClip;
import flash.net.NetConnection;
import flash.events.NetStatusEvent;
import flash.events.MouseEvent;
public class HelloServer extends MovieClip {
private var nc:NetConnection;
}
public function HelloServer() {
// register listeners for mouse clicks on the two buttons
connectBtn.addEventListener(MouseEvent.CLICK, connectHandler);
closeBtn.addEventListener(MouseEvent.CLICK, closeHandler);
}
public function connectHandler(event:MouseEvent):void {
trace("Okay, let's connect now");
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.connect("rtmp://localhost/HelloServer");
}
public function closeHandler(event:MouseEvent):void {
trace("Now we're disconnecting");
nc.close();
}
public function netStatusHandler(event:NetStatusEvent):void {
trace("connected is: " + nc.connected);
trace("event.info.level: " + event.info.level);
trace("event.info.code: " + event.info.code);
switch (event.info.code)
{
case "NetConnection.Connect.Success":
trace("Congratulations! you're connected" + "\n");
break;
case "NetConnection.Connect.Rejected":
trace ("Oops! the connection was rejected" + "\n");
break;
case "NetConnection.Connect.Closed":
trace("Thanks! the connection has been closed" + "\n");
break;
}
}
}
When you run the application, you can see the message displayed.