Skip to main content
Participant
June 5, 2008
Question

Creating a Videoke

  • June 5, 2008
  • 1 reply
  • 364 views
Hello Everyone!

I have created a video and sound recorder in flash. I want to add a new feature wherein when the record button is clicked, a background music will play. I was successful in playing the background music but I can't seem to attach it on my netstream or I can't seem to combine the background music together with the recorded video and sound captured by the microphone. Can anybody help me? Have a nice day everyone!
    This topic has been closed for replies.

    1 reply

    June 5, 2008
    Thats because Flash player take audio input only through mic.

    However, server side action script can be used for a workaround to achieve similar results. It would include storing the sound you want to play on the FMS application; then publishing the file completely from server-side as stream name (say "my_mic_stream") first after it pass on the control to the client flash player for publishing with the same stream name onto FMS.

    For more, you may refer to server side API documentation of stream class.
    zbsjrAuthor
    Participant
    June 6, 2008
    Thank you for the reply. Do you mean that I should put my background music into an empty movie clip and same with the sound captured by the microphone then after that combine it? Can you please tell me how I could do that.

    my code in recording is like this:

    function recordBtnClick():Void{
    bg_music.loadSound(music, true);
    ns.attachVideo(cam);
    ns.attachAudio(mic);

    videoContainer_record.attachVideo(cam);

    lastVideoName = "Record" + random(getTimer());
    ns.publish(lastVideoName, "record");
    }

    Could you please tell the could in which I could combine all of this together with my background music?

    I have tried simply by attaching bg_music to my netstream like this: netstream.attachAudio(bg_music); but it didn't work. =) I guees it is not that easy.

    Thank you for replying fmslove...