Lives On Board

/ My MetaSphere /

Wed Dec 3, 2003

Flash MX Hosting
Web Hosting
Web Tools
Help FAQ
Marketing
Portfolio
Contact
Site Chat
Web Search
Asheville NC
NEW!!Boards
Network Log
Got Flash?
Web Links

Need Help?
We are online if image is green.
We are online if this image is green. Click here to chat live with metasphere.net.

El Dios de Cobra. In Memory of the passing of one of America's greatest photographers, Jorge Otero. Jaophoto.com

Flash Hosting with MetaSphere

Today in History:
1818: Illinois entered the Union as the 21st state.

Metasphere.net
Asheville, NC
Help/FAQ Index / Search
Help/FAQ
Previous Page in Help/FAQ Tour Next Page in Help/FAQ Tour
Return to Main Page in Help/FAQ

Web Camera connection via RTMP

First off, the simple camera connection statement. This works locally without FCS. It is built into Flash MX. Place this action script in frame one and open the library palette. In the library, create a new video symbol. drag the symbol onto the main stage (this empty symbol with have an x and a box). Name the instance of this empty video symbol "MyVideo" in your properties panel. Run your movie and watch your web camera.


locCam = Camera.get();
MyVideo.attachVideo(locCam);

Here's the first example running. If you have a web camera installed you will see the web camera's video below.

Here's an example of connecting and publishing your web camera via RTMP in Flash Communications Server. Since this example uses absolute paths, You can run this swf from any webpage. The end result is an flv file connected to the server. Readers are expected to have an FCS acount with metasphere.net. Those without should ignore the ip address specified.


/// this is the connection script.
///You can run this script as a seperate flash file
///connection = new NetConnection();
connection.connect("rtmp://66.216.97.115/UserName/mySpeech");
subscribeStream = new NetStream(connection);
subscribeStream.play("allAboutMe");
myVid.attachVideo(subscribeStream);
// myVid is a Video object on the Stage




Refresh / Add Page to favorites/bookmarks.