Permalink
Browse files

CumulusServer documentation more complete and minor changes

  • Loading branch information...
1 parent f28c583 commit b04768b5d8258c1dfae2c4aeb2e8fe04e7349604 @cumulusdev cumulusdev committed Jan 17, 2012
Showing with 26 additions and 9 deletions.
  1. +17 −1 CumulusServer/sources/LUAListener.cpp
  2. +9 −8 README.md
@@ -18,6 +18,7 @@
#include "LUAListener.h"
#include "Listener.h"
#include "LUAQualityOfService.h"
+#include "LUAPublication.h"
using namespace Cumulus;
@@ -33,13 +34,28 @@ int LUAListener::Get(lua_State *pState) {
SCRIPT_WRITE_OBJECT(QualityOfService,LUAQualityOfService,listener.audioQOS())
} else if(name=="videoQOS") {
SCRIPT_WRITE_OBJECT(QualityOfService,LUAQualityOfService,listener.videoQOS())
+ } else if(name=="publication") {
+ SCRIPT_WRITE_PERSISTENT_OBJECT(Publication,LUAPublication,listener.publication);
+ } else if(name=="audioSampleAccess") {
+ SCRIPT_WRITE_BOOL(listener.audioSampleAccess);
+ } else if(name=="videoSampleAccess") {
+ SCRIPT_WRITE_BOOL(listener.videoSampleAccess);
}
SCRIPT_CALLBACK_RETURN
}
int LUAListener::Set(lua_State *pState) {
SCRIPT_CALLBACK(Listener,LUAListener,listener)
SCRIPT_READ_STRING(name,"")
- lua_rawset(pState,1); // consumes key and value
+ if(name=="audioSampleAccess") {
+ bool value = lua_toboolean(pState,-1)==0 ? false : true;
+ if(value!=listener.audioSampleAccess)
+ listener.sampleAccess(value,listener.videoSampleAccess);
+ } else if(name=="videoSampleAccess") {
+ bool value = lua_toboolean(pState,-1)==0 ? false : true;
+ if(value!=listener.videoSampleAccess)
+ listener.sampleAccess(listener.audioSampleAccess,value);
+ } else
+ lua_rawset(pState,1); // consumes key and value
SCRIPT_CALLBACK_RETURN
}
View
@@ -1,26 +1,27 @@
-CumulusServer is a complet and cross-platform RTMFP server extensible by scripting way under open source [GPL license].
+CumulusServer is a complete open source and cross-platform RTMFP server extensible by way of scripting.
-CumulusServer has been developed in keeping in mind the 5 following notions: *speed*, *power*, *light weight*, *cross-platform*, and *elegant code*.
+CumulusServer has been developed under [GPL license] in keeping in mind the 5 following notions: *speed*, *power*, *light weight*, *cross-platform*, and *elegant code*.
CumulusServer motto if exists could be:
> For every complicated problem exists an elegant solution.
-Even if there is not yet versionning release, code pushed on github is done only when CumulusServer has been tested and approved.
+Even though there is no versioning released yet, code pushed on github is done only when CumulusServer has been tested and approved.
-Actually, main stable features are:
+Actually, the main stable features are:
- P2P rendez-vous service
- Live streaming
- RPC, pull, push exchanges, indeed all AMF possible exchanges between client and server
- Scripting engine to create your own application server or extends Cumulus features
-All the documentation to install and to use CumulusServer is available through **[Wiki]**.
+All the documentation to get, install and use CumulusServer is available through the **[Wiki]**.
-You can **help us** to enhance Cumulus in contacting me to cumulus.dev@gmail.com, else you can always make a **donation** ([us]|[eu]) for that we spent more time on it,
-indeed it's not technical skills which limit us but lack of time.
+The community can talk about Cumulus on [openrtmfp-cumulus](http://groups.google.com/group/openrtmfp-cumulus) forum or report a bug on [issues](https://github.com/OpenRTMFP/Cumulus/issues) page.
+
+You can **help us** enhance Cumulus by contacting me at cumulus.dev@gmail.com, or you can always make a **donation** ([us]|[eu]) so that we can spend more time on it. It's not technical skills which limit us but lack of time.
[Wiki]: https://github.com/OpenRTMFP/Cumulus/wiki/_pages "Cumulus Wiki"
[GPL license]: http://www.gnu.org/licenses/ "www.gnu.org/licenses"
[us]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=M24B32EH2GV3A "Donation US"
-[eu]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QPWT9V67YWSGG "Donation EU"
+[eu]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QPWT9V67YWSGG "Donation EU"

0 comments on commit b04768b

Please sign in to comment.