Skip to main content
Inspiring
March 3, 2010
Question

Access Server Variables In C++ Plug-in

  • March 3, 2010
  • 1 reply
  • 954 views

Is there any way to access a Flash Media Server server-side script through a C++ plugin? I know you can call server-side functions, but I want to use the plugin to do image processing, so I need to get bitmap data from the client to the plugin.

I've been poring over the documentation and the forums and there doesn't seem to be any way for the plugin to communcate with the server other than to read Event properties. If this is the only way for the plugin to recieve data from the server, is there any way to override an event property to send custom data?

    This topic has been closed for replies.

    1 reply

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    March 3, 2010

    There are a few ways to get the plugin data, but none of them as easy as you're looking for.  It's a known pain point that information is easily passed from the plugin to script, but not the other way.  The answer depends on what your goal is.  Let me know a little bit about what you're trying to accomplish and we can try to come up with a way to do this.

    Asa

    gmcgee77Author
    Inspiring
    March 3, 2010

    I basically need to send bitmap data from the client to the plugin for image processing- I suppose the best way to do this is as a byte array. This would be sent to FMS, from the FMS to the plugin for processing, then the plugin should return data back to the server, and then given to the client.

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    March 4, 2010

    I don't think writing to disk will be fast enough- it will need to do this operation several times per second for several clients at once.

    The utility of these plugins is extremely limited if they can't read anything but server statistics. Any authorization operations could be more easily handled by calling a server page from the client (which is what I'm currently doing), or even the server, especially if a programmer doesn't know C++.

    If the server can send event data to the plugin, why can't it send anything else?

    Thanks anyway, I guess I'll have to find another solution. It would be helpful if Adobe worked to make the plugins more robust in the future to take advantage of the power of C++. These limits are very disappointing.


    Understood - sorry that we don't have the functionality you need right now.  I'll make sure that this comes up as feedback into our next rounds of enhancements, but totally understand that won't help today.