Chaining live video stream

Ask a Question related to Macromedia Flash Flashcom, Design and Development.

  1. #1

    Default Chaining live video stream

    :beer;

    Hello :

    I have a problem of server side "Stream class" and rebublish live video
    stream.
    In brief, I assume the live video stream can be chained between 2 or more
    Flash media server, the server side code is (from FMS online documents) :

    application.onAppStart = function(){
    trace("::: Application has started :::");
    }
    application.onConnect = function(client){
    application.acceptConnection(client);
    }
    application.myRemoteConn = new NetConnection();
    application.myRemoteConn.onStatus = function(info){
    trace("Connection to remote server status " + info.code + "\n");
    };
    application.myRemoteConn.connect ("rtmp://192.128.1.264/FMS_test");
    application.myStream = Stream.get("showvideo");
    if (application.myStream){
    application.myStream.play("showvideo1", 0, -1, false,
    application.myRemoteConn );
    }

    This server-side code is placed on a computer which ip address is
    192.128.1.163 , and I want to take 192.128.1.264 as "main flash media server"
    , so I assumed the former computer(192.128.1.163) can "get" the live video
    stream published from the later computer ( 192.128.1.264), and play the stream
    with a different name "showvideo1", then I placed some code on a flash movie :

    client_nc = new NetConnection();
    client_nc.connect("rtmp://192.128.1.163/FMS_test");
    client_ns = new NetStream(client_nc);
    client_video.attachVideo(client_ns);
    client_ns.play("showvideo1");

    In theory, if the former computer(192.128.1.163) can "republish" the live
    video stream from 192.128.1.264, I should see the live video on this flash
    movie, but I didn't see anything, could anyone tell me what's wrong with my
    code, or I had misunderstood the concept ?


    CHUNG_1977 Guest

  2. Similar Questions and Discussions

    1. How do create a live video stream?
      ok I'm pretty new to the streaming thing. I've asked on other forums and have been told flash is the way to go. What I want to do is upload videos...
    2. Live video stream freezes
      well,. we encountered the problem on a linux server, actually on more linux servers. (RedHat 8, Red Har 3.0 Enterprise and Red Hat 7.3, witch...
    3. Live video stream freezes
      We have the currrent version of flash comm installed and we are planning a live video stream using the canon XL1. There seems to be some issue...
    4. Live video stream freezes
      Originally posted by: mable4sven Hello all, I want to make video streaming application for my friend. His two offices are far apart(11000 kms...
    5. video capture card for Flash live video stream
      Hi! I just brought a new video capture card - Osprey-210, When I try to stream the live video, I can see the card in flash player's setting box,...
  3. #2

    Default Re: Chaining live video stream

    Did you manage to solve your problem? I'm interested how to chain serveral flash media servers, too.
    _xerx_ Guest

  4. #3

    Default Re: Chaining live video stream

    Well, you are doing everything right, except for a couple of things

    application.myStream cannot get "showvideo" from the external server, this is
    a local stream. You should assign an internal name for that stream (to which
    clients will subscribe) using the get() method, then tell this stream to play
    the external stream using the play() method. Its a little confusing what
    "showvideo" and "showvideo1" represent so I will assume:

    showvideo1 = stream playing on external FMS (192.128.1.264);
    showvideo = local stream to which clients subscribe

    so:

    //create a local stream an assign name "showvideo"
    application.myStream = Stream.get("showvideo");

    //play external stream
    application.myStream.play("showvideo1", 0, -1, false, application.myRemoteConn
    );

    -----Client side --------

    //subscribe to the stream "showvideo"
    client_ns.play("showvideo");


    GenaroRG Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139