all groups > macromedia flash flashcom > september 2006 >
You're in the

macromedia flash flashcom

group:

published .flv is empty


published .flv is empty alanskinner
9/22/2006 3:11:04 PM
macromedia flash flashcom:
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:disgust;
Re: published .flv is empty alanskinner
9/22/2006 3:37:58 PM
AddThis Social Bookmark Button