Welcome, Guest
  • Author Topic: capturing livestream from serverside, with diffrent streamname  (Read 2993 times)

    smart.net

    • Server what's that
    • *
    • Posts: 40
      • View Profile
    Hi,

    1. I am using Flash communication server
    2. IN my flash application i call this function from my flash client :

    in main.asc :
    Code: [Select]
    Client.prototype.recordstream = function(streamName,newstreamName)
    {
    s = Stream.get(streamName);

    if (s){
          s.record();
    }
    };
    ]

    IT saves my stream v.fine.

    now the thing is i do not want to save the flv with the same name as stream name is .
    right now i send the streamname from my flashclient to that server function., and it just gets the stream, and issue record command.

    in this way i do not get seprate files for every brodacast session., i want seprate files for eachsession, ( for that i am supplying newstreamName also), i want to use that parameter as streamname.

    My limitation is i cannot change the streamname for everybroadcast. it has to be same due to flash client and other server functions logic.
    also, i do not want to append every broadcast in same flv file  ( want to avoid it if possible).

    kindly suggest.

    Thanks

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Just curious: why don't publish as "record" directly from the client (so you don't need to get the stream and save specifically on server side)
    It's easy to generate random names for the streams, each client could save somewhere (in a DB i.e) the username and the name of the stream he's using, so you can didentify in the future

    Jorge

    smart.net

    • Server what's that
    • *
    • Posts: 40
      • View Profile
    Hi,

    as per my experience ( in around 20 tests), i found that  if i publish using "record" parameter, then the recieving stream is delayed a little ( 2- 4 seconds)..
    which is unacceptable in my target clients ( asian region).

    One more thing from my experince, when we publish using the "record" function we cannot access the file at that time using file system object.

    however if we use "append" then the file is available to rename, copy etc.

    ( i may be wrong , but that was the result with my installation and setup).

    Thanks


    chak007

    • Server what's that
    • *
    • Posts: 2
      • View Profile
    check this

    main asc

    i save Stream to MyFlvName.flv

    Code: [Select]
    load( "components.asc" );

    channel = Stream.get("public/MyFlvName");

    application.onConnect = function(client, name){
    application.acceptConnection(client);

    channel.play("FCAVPresence.u0.u0presence");

    channel.record("record");

    };




    « Last Edit: 07/09/07, 09:40 by chak007 »