Results 1 to 6 of 6

Thread: video recorder

  1. #1
    Join Date
    Oct 2012
    Posts
    3

    Default video recorder

    Hi every body,

    Sorry for my english, i'm french

    i would like to install a video recorder on my web site.
    So i installed java and wowza on a redhat server. All my tests are OK for the moment.

    but i would to do something, and i don't know the best way to do it :

    If the ID of the member who do the video is 115, il would like that the name of the file is : video_115.flv, and copy / paste this video in the folder usr/local/wowza/content/videoRecorder/500
    if the ID of the member is 800 : usr/local/wowza/content/videoRecorder/1000

    to determine the name of the folder : floor(ID of the member / 500) * 500
    i make this calcul to keep my server clean.

    But i need 2 things :

    how can i get the ID of my member ?
    how can i do a "mkdir" if the folder don't exist and modify their chmod ?

    Thank for alle

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    If the userID is contained in a cookie of a Flash client's HTTP container, then retrieve it with AS3 ExternInterface api so you can append it to the rtmp connection string.
    rtmp://[wowza-address]:1935/[app-name]?userID=1234
    You can retrieve that in the onConnect handler, create the folder you need with the Java file.io api, store info in the client object using WMSProperties so that later you can use the IMediaWriterActionNotify api to move the recording. Some examples that will help piece that together:

    http://www.wowza.com/forums/content....nnect-RTMP-URL

    String userID="1234";
    client.getProperties().setProperty("userID", userID);
    // later, elsewhere		
    String userID = client.getProperties().getPropertyStr("userID");
    You will need the IMediaWriterActionNotify api to complete this:
    http://www.wowza.com/forums/content....f-live-streams

    Richard
    Last edited by rrlanham; 10-03-2012 at 07:10 AM.

  3. #3
    Join Date
    Oct 2012
    Posts
    3

    Default

    thanks Richard for this answer,
    i'm gonna work right now to do this video recorder.

    i'll give you the result

    Have a good day

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You're welcome. Let us know how it turns out.

    Richard

  5. #5
    Join Date
    Oct 2012
    Posts
    3

    Default

    Here i come again,

    It's easier thant i thought.

    in my flash i've got that code

    var movieName:String = "videorecording";
    But if i compose the string like this :

    var movieName:String = "video/500/115";
    my folder are create and the name of my video is : 115.flv.

    I'm gonna test that solution in my production server.

    See you

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    There you go.

Posting Permissions

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