Lua is already integrated as a scripting language inside crtmpserver. The interface is not as complete as I wanted it to be, but has the basics and can be useful. If more functionality is needed, it can be easily added by looking at the existing one as an example. It works quite nice.
The main reason for not using lua the other way around (host C inside lua) is that crtmpserver is a C++ application and has a lot of C++ specific things, especially classes (objects). So, for it to work nice, one should wrap all classes and make them available to lua. While this is perfectly doable, I prefer doing the other way around because not all languages supports this. That's the reason for hosting a "virtual machine" inside crtmpserver. This "virtual machine" has all the bits and pieces necessary for hosting an external language inside c++ runtime.
Cheers,
Andrei
> You received this message because you are subscribed to "C++ RTMP Server" mailing list.
> To post to this group, send email to c-rtmp...@googlegroups.com
> To unsubscribe from this group, send email to
> c-rtmp-serve...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/c-rtmp-server?hl=en
------
Eugen-Andrei Gavriloaie
Web: http://www.rtmpd.com