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

macromedia flash flashcom

group:

resize live streams dynamically


resize live streams dynamically V.watch
11/23/2006 4:27:30 PM
macromedia flash flashcom:
Hello!

I currently work on a supervision- and video-conference software with
live-video based on flash player 8/9 and FMS2.
For this purpose i planned to realize an overview and a fullscreen-view.

Now I got this problem:
I want to stream a full-size video to the FMS and then publish this stream in
two different sizes (a little one for the overview and the big one for
fullscreen-viewing)
Is it possible to resize a live-stream directly on the server at runtime??
Re: resize live streams dynamically V.watch
11/26/2006 9:31:29 PM
Re: resize live streams dynamically praetorivs
11/27/2006 8:06:36 PM
You could try something like this, where you take an existing stream (live or
recorded), in this case "name", and re-publish it as a live stream,
"stream_name". You may be able to tweak certain aspects of it.

application.playStream = function(name) {
var stream_name = (new Date()).getTime();

application.stream = Stream.get(stream_name.toString());
application.stream.record(false);
application.stream.play(name);

application.stream.onStatus = function(info) {
trace("Stream status received >> " + info.code);

if (info.code == "NetStream.Play.Start") {
// custom method.
application.dispatchMessage("video.play", { sname: this.name });
}
}

return stream_name;
}

Of note, however, is that your client will need to use something like

stream.play(stream_id.toString(), -1, -1);

to block until a stream is available, or receive a message from the server, as
in application.dispatchMessage("video.play", { sname: this.name }), or you will
get a stream not found error.

Hope it helps...

p.


Re: resize live streams dynamically V.watch
11/27/2006 10:55:11 PM
thank you for your effort!
AddThis Social Bookmark Button