Skip to main content
Participating Frequently
September 22, 2006
Question

published .flv is empty

  • September 22, 2006
  • 1 reply
  • 284 views

Hi i have FMS all set up now using the default instances etc

i connect with "rtmpt://localhost:1935/flv_archive"" which using the onStatus callback says I have connected successfully.

I then *RECORD* with.


filename = "test_" + new Date().getTime();
trace("recording " + filename);

record_ns = new NetStream(my_nc);
record_ns.onStatus = function(infoObject:Object)
{
trace("NetStream.onStatus [RECORD] called: ("+getTimer()+" ms)");
for (var prop in infoObject) {
trace("\t"+prop+":\t"+infoObject[prop]);
}
trace("...");
};

active_mic = Microphone.get();
record_ns.attachAudio(active_mic);
record_ns.publish(filename, "record");

and *STOP* with

record_ns.close();
record_ns.attachAudio(null);

and *PLAY* with

play_ns = new NetStream(my_nc);
play_ns.onStatus = function(infoObject:Object)
{
....... same as above
};

Live_video.attachVideo(play_ns); // Live_video is an embedded video, works for other non recorded flv's
play_ns.play(filename);

the problem is Ihave a directory of test_xxxxxxxxx.flv files All 222 Bytes!

It isnt recording anything yet is creating the files every time

What is going on? Does anybody know?

Thanks
    This topic has been closed for replies.

    1 reply

    Participating Frequently
    September 22, 2006
    got it, stupid microphone was broken!