Recording a Flash Video from Webcam

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default Recording a Flash Video from Webcam

    Hello All,

    I am currently working on a project which requires to record a video stream
    from a WebCam. The work is pretty similar to [url]www.flixn.com[/url]. I am able to
    capture the video from the Webcam but is unable to record it . Can anyone help
    me to get this done.

    Thanks in advance.

    Regards,
    simanta-int

    simanta-int Guest

  2. Similar Questions and Discussions

    1. Recording Flash Video Chats
      I are trying to archive our live chats. Recording them has not been a problem, but I don't like where they are saved. I want to save them in a...
    2. Help recording a webcam
      Hi, I am planning on creating an application that will need webcam activity recorded and then uploaded to a database, I know that flash media...
    3. Webcam video recording bandwidth
      hi all, When capturing a webcam feed using FMS - is there any loss of information during the upload process? If my client has a limited uplink...
    4. Is Flash Player Video and Audio capture from a webcam possible?
      I have the exact same question. Is it possible to capture video and audio without communicatons server?
    5. Is Flash Player Video and Audio capture from a webcam possible?
      I have the exact same question. Is it possible to capture video and audio without communicatons server?
  3. #2

    Default Re: Recording a Flash Video from Webcam

    Not really enough to go on there. Can you post the code you're having trouble with or explain the problem in a little more detail?
    JayCharles Guest

  4. #3

    Default Re: Recording a Flash Video from Webcam

    hi, if you try :

    var nc:NetConnection();
    nc.connect("rtmp://myserver/myapp/");
    var ns:NetStream= new NetStream(nc);
    var c:Camera= Camera.get();
    ns.attachVideo(c);
    ns.publish("myvideo","record");

    doesn't work?

    Gauthier_dgp Guest

  5. #4

    Default Re: Recording a Flash Video from Webcam

    Basically,my purpose is to record the video from the webcam by clicking on the
    "Record" button and stop recording the video when I clicks on "Stop" button.
    Then on clicking the "preview" button it will play the recorded video.

    Can I achieve the above job without using rtmp? I am new to FMS and I am not
    getting any clue to solve this problem. Please, help me where I am making the
    mistake in my below code.

    // Capturing the Web Camera & Video
    var my_cam:Camera = Camera.get();
    myVideo.attachVideo(my_cam);

    //Streaming and Recording the video
    var rtmpNow:String = "rtmp:/localhost";
    var nc:NetConnection = new NetConnection();
    var ns:NetStream = new NetStream(nc);
    nc.onStatus = function(info) {
    if (info.code == "NetConnection.Connect.Success") {
    status_txt = "Connected";
    } else {
    status_txt = "No Connection";
    }
    };
    nc.connect(rtmpNow);


    function record() {
    if (record_btn.label == "Record") {
    record_btn.label = "Recording";
    ns.attachVideo(my_cam);
    ns.publish("simanta", "record");
    trace("record video");
    } else {
    ns.close();
    record_btn.label = "Record";
    }
    }

    function stoprecord() {
    if (stop_btn.label == "Stop") {
    stop_btn.label = "Stop";
    record_btn.label = "Record";
    ns.attachVideo(my_cam);
    ns.publish(false);
    trace("stop recording");
    } else {
    ns.close();
    record_btn.label = "Recording";
    }
    }

    record_btn.onRelease = function() {
    record();
    trace("gsjfjhf");
    };

    stop_btn.onRelease = function() {
    stoprecord();
    trace("qwqwqw");
    };

    simanta-int Guest

  6. #5

    Default Re: Recording a Flash Video from Webcam

    hi

    var rtmpNow:String = "rtmp:/localhost";

    you must create a directory in the flash media server applications directory .

    ex: applications/videoTest/

    after clientside
    var rtmpNow:String = "rtmp:/localhost/videoTest/";

    Gauthier_dgp Guest

  7. #6

    Default Re: Recording a Flash Video from Webcam

    Quote Originally Posted by simanta-int View Post
    Basically,my purpose is to record the video from the webcam by clicking on the
    "Record" button and stop recording the video when I clicks on "Stop" button.
    Then on clicking the "preview" button it will play the recorded video.
    Hi there Simanta-Int,

    I'm currently working on a University assignment where part of what i have to do is what your looking for...as you said you were lost, so am i. Is there any chance we could share code. Its non-profit what i am doing, and i will reference your work.

    Thank you,
    Jack
    jack_stanna is offline Junior Member
    Join Date
    Aug 2011
    Location
    Brisbane
    Posts
    1

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139