Skip to main content
Participant
November 23, 2006
Question

resize live streams dynamically

  • November 23, 2006
  • 2 replies
  • 403 views
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??
    This topic has been closed for replies.

    2 replies

    V_watchAuthor
    Participant
    November 27, 2006
    thank you for your effort!
    I'll try this one asap - and tell you whether it works :)
    V_watchAuthor
    Participant
    November 26, 2006
    i'm really thankful for every hint i get! ;)
    Participant
    November 27, 2006
    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.