1. get the uid from php at page generation and pass it to flash with
recorder.swf?uid=xxx. There's a uid generator function on php.net that is
good for filenames also.
2. start recording using red5 and use the uid for the recorded file name.
3. get record end and success eventts from red5 and at that point call php
to enter new the filename and other details you grab from the client to
the DB.

cosmin

> Hi there, there is two ways to do this.
>
> - Get the publish name when a record has stopped in the red5
> application, and then store it into the database. If done remotely, I
> would prob enable ssl on the db connection.
> - Call a method on the flash widget which will then call a javascript
> ajax method, I would probably recommend HTML_AJax for that as I work
> extensively with pear packages and is the only standard PHP class
> framework I would recommend ...
>
> Mel Brands wrote:
>> Hi all,
>>
>> I'm implementing  a site where people can leave voice messages.
>> Basically, it's an  " audio graffiti" site. When a person signs up,
>> they are allowed to leave messages. Here's how I think it should work,
>> on a macro scale. Please let me know if I'm doing it wrong!
>>
>> My PHP app will output  a page with a flash recording widget. I will
>> pass several parameters to this widget: user ID of the user, page ID
>> and a message ID. If the user records anything, I will then issue a
>> POST thorough the Flash widget to the PHP script and it will inform it
>> that something was recorded and it will give me a filename (something
>> like "userID_pageID_messageID.flv"). I will then know that something
>> was recorded and will add this flv file to the database and will be
>> associated with the page in question. Next time we output the page,
>> the audio that was recorded will be displayed and you will be able to
>> play it.
>>
>> I have a few questons though...
>>
>> 1) Is this the best way to do this?
>> 2) How do I generate a unique "message ID"? Just a random number will
>> do or should I do something more complicated?
>>
>> Thank you and feel free to comment on this :)
>>
>> Mel
>>
>> _______________________________________________
>> Red5 mailing list
>> [email protected]
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to