Skip to main content
May 7, 2012
Question

Pass data from client to server using FMS

  • May 7, 2012
  • 1 reply
  • 459 views

Hi to all,

I'd kindly ask your help.

I'm developing an application that record audio and video from client to server, this application is based on Flash Media Server 4.5 and a Flash Application that run on Web browser.

I've developed the main application framework, including the possibility to record video and publish it to server using:

ns.publish(streamName, "record");

For every recording event, I'd like to store into a database locate on server some information like:

recording time

username

streamname

note

rec_ID

I've all this information on my class that has been instantiated on Flash application that runs on client side.

I'd like to create an application that runs on server on can intercept a custom event raised from client and handled by server, in order to perform database inserting operation.

I'm new on this field, i've read the documentation:

Server-Side ActionScript Language Reference

but I've not found much information.

I'd like to ask if you can suggest me a good technique for solve this problem.

thank you very much for your information.

Maurizio

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    May 8, 2012

    What you can do is call your defined server-side function from your client using NetConnection call and pass the needed data. On server-side you can use AMFPHP to communicate to database as stated in this link :http://www.sephiroth.it/tutorials/flashPHP/flashcomm_AMFPHP/

    I hope you find this reply helpful and relevant. Do let us know if you have any further query