Skip to main content
Participant
December 2, 2007
Question

Help gettings started with Flash Media Server 2.0 and the Camera class

  • December 2, 2007
  • 1 reply
  • 358 views
Hello,

I just purchased flash media server 2.0 and flash CS3. Id like to build an app that allows a user to record a video using their webcam and upload it to the server, and in turn stream / display the video on the web server.

So far this is where I'm at. I installed FMS and created a FLA that opens the users web cam and displays the video. The code is pretty basic:

// Declare Video instance on the stage
var vid:Video;

// Create a reference to the user's camera
var userCam:Camera = Camera.get();

// Attach the camera output to the Video instance
vid.attachVideo(userCam);

From here, how do I save the video as a FLV and upload it to the server? I am used to using FFMPEG - will I need this or should I use the new Flash Encoder?

I am running FMS on IIS 7.0 on the same box as my ASP.NET and IIS web server. Will I need to do any tricky configuration with IIS to allow them to run in parallel?

Also, when i open the "FMS2_Console" and try to connect I get an error. The login screen has a box for the "Server Address" and username/password. In the server field I'm typing "Localhost". It won't let me connect, even though I have the right username and pwd. Is somehting wrong?

Thanks.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Inspiring
    December 3, 2007
    I wrote a series on the Camera class for CommunityMX.com:

    http://www.communitymx.com/abstract.cfm?cid=2816A

    You can find a list of my articles here:

    http://www.flashsupport.com/cmx

    The first article in the Camera class series is free--you can sign up for a free trial on CommunityMX.com if you want to get the other tutorials in the series.

    HTH.