all groups > macromedia flash flashcom > may 2007 >
You're in the

macromedia flash flashcom

group:

Recording live broadcast


Recording live broadcast wanna_know
5/18/2007 10:04:11 PM
macromedia flash flashcom:
My company uses broadcasts which include both streams (coming from different
users and sometimes displayed together), animations amd images mixed together
on the flash player.
You can think of it as kind of flash presentation mixed with web meeting.

We would like to record the broadcast into a single video file (flv,
quicktime, etc.) and streaming this file on demand from our FMS.
I am looking for a way to record what the broadcastig viewer sees when he
looks at the boradcast.
Re: Recording live broadcast JayCharles
5/19/2007 2:54:03 PM
You can't do any sort of screen capture or anything like that. What you CAN do
is use netstream.send to trigger events in the client.

Let's say, for example, you have a function in your actionscript named
playAnimation(), and a stream named someStream. To trigger that function, your
code might look something like this:

Client side:
function playAnimation(){
// do something here
}
my_netconnection.triggerAnimation = function(){
playAnimation();
}

On the server side:
application.tellClientToRunAnimation = function(){
someStream.send('triggerAnimation");
}

Now, when the server side function is called, a message goes out across the
stream, and tells the client to run the function.

Now, here's where it gets really cool. IF you're recording the stream, the
netstream.send call gets saved in the flv file. So, when you play it back, the
triggerAnimation call gets fired off again on playback, at the same point in
time at which you sent it duing the live broadcast.

Of course, using this method only works if you play back the flv in an swf
that's set up with the proper functions. If the .swf deson't have the functions
you're calling with the netstream.send event, nothing will happen.

Hope it helps.
AddThis Social Bookmark Button