Create RTMP dynamically

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

  1. #1

    Default Create RTMP dynamically

    Hi, how can i create RTMP applications with php?
    I need several applications dynamically, that are created when two users
    connect to a private chat, that is nothing more than a simple chat. The swf is
    the same, the applications are many. And when they disconnect the chat, the
    applications will be deleted automatically.
    ;)

    NosPheratus Guest

  2. Similar Questions and Discussions

    1. Create link dynamically
      Hi Gurus. I want to look in PDF files to find regular expressions and dynamically create link on each match. I think Javascript can not do...
    2. Is it possible to dynamically create xml nodes?
      Hi, Is it possible to dynamically create child nodes of an xml file with flash?? Im what i want to do is save a users name etc in an xml file...
    3. Dynamically create AVPresence
      Hey gang, I am trying to dynamically create AVPresence instances as people log into the server on each client. Basically trying to re-implement...
    4. Dynamically create datasource
      Hi http://groups.yahoo.com/group/coldfusion-howto/message/3086
    5. Create a PHP Page Dynamically
      Is it possible to create a php page dynaimically? For example, when a user is added I'd like to create a page in a directory in their name so users...
  3. #2

    Default Re: Create RTMP dynamically

    You don't need a php process to do that... FMS does it automatically.

    Let's say you have an application named "chat". To use the default instance of
    the application, your rtmp string would look like:

    rtmp://myserver.com/chat

    If you want a new instance of your app, just append an instance name to the
    rtmp string like so:

    rtmp://myserver.com/chat/room01

    The server will do the rest. If you don't record any video or have any
    persistent shared objects, the instance will be removed once it has been idle
    for a little while.

    JayCharles Guest

  4. #3

    Default Re: Create RTMP dynamically

    hey Jay, i'm connecting the app with a invisible simpleconnect, how can i tell
    him that it will connect to rtmp://server/app/room?
    is there anyway to do that, or connect to FMS without the simplleconnect?
    I have this code, but i don't know if on serverside it works:
    load("components.asc");
    nc.connect.application.onConnect = function (newUser, newuserName){
    gFrameworkFC.getClientGlobals(newUser).userName = newuserName;
    application.acceptConnectio (newUser);
    }


    If i can do a connection with this, i can tell the SWF what vars he is going
    to put on the rtmp address.
    else, with the simpleconnect, i don't know.

    Best Regards

    Paulo Garcia

    NosPheratus Guest

  5. #4

    Default Re: Create RTMP dynamically

    I don't use the prebuilt components, but I imagine there's a variable in there
    named "username" or "userName" in the simpleconnect. If you assign a value to
    that variable before the conect method is invoked on the simpleconnect, it
    should work for you that way. Maybe something like:

    mySimpleConnect.userName = "somename";

    Again... I don't use the components, so I'm just guessing there.

    In your server side .as, there is a syntax problem. Chage this line:

    nc.connect.application.onConnect = function (newUser, newuserName){

    to this:

    application.onConnect = function (newUser, newuserName){

    JayCharles Guest

  6. #5

    Default Re: Create RTMP dynamically

    hello Jay, i have this code here
    this.som=new Sound();
    this.som.attachSound("beep");
    this.som.setVolume(40);
    this.som.start(0);
    this.som.onSoundComplete=function(){
    this.som.stop();
    }
    trace("som recebido");

    and i want to hear the sound only when i recieve the message of the other
    user, where can i post this code on the chat component? i'm using Influxis
    components.

    I did the sound for the user, that enter to the chat, and the sound to the
    user that leave the chat, just need to put a sound when the remote user types a
    message.

    Best Regards
    Paulo Garcia

    NosPheratus 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