Vikram Ranabhatt
Vikram Ranabhatt

Reputation: 7620

Interfacing existing C++ code with flex

I have existing video streaming application which is based client server technlogy. Existing system is as follows There is data center, client application and gateway. camera is connected with gateway and gateway is connected with data center.client request video to data center and datacenter get it from gateway.

Now we want to use p2p technology here and want to have direct communication between gateway and client.we want to use RTMFP .for client we can use flex, but the existing gtateway code and business logic is written on c++.

Is there any way around to call c++ code from flex.

Thanks

Upvotes: 2

Views: 1339

Answers (1)

Neeraj
Neeraj

Reputation: 8532

Hey, Yes this is pretty much possible with flex 4,(ie. only if you are using a desktop application).From a web based swf, running in a browser you cannot start running a C++ code.

I am assuming that you are developing a desktop app.To call a c++ code , you would need to do the things mentioned in the following example link.It is pretty straightforward.

http://www.adobe.com/devnet/air/flex/quickstart/articles/interacting_with_native_process.html

Or, incase you have access to the C++ code, then you can use a few already built classes which allow C++/Flex interaction. http://anirudhs.chaosnet.org/blog/2008.03.13.html

Upvotes: 1

Related Questions