bigbluebutton-Github/labs/api/recordings
2014-05-12 17:31:35 +00:00
..
lib - trying out json2xml conversion 2014-05-03 10:38:20 -07:00
log - setup logging and config 2014-05-02 13:50:46 +00:00
test Merge branch 'merge-polling-with-master' of https://github.com/bigbluebutton/bigbluebutton into merge-polling-with-master 2014-05-12 17:31:35 +00:00
.gitignore - setup logging and config 2014-05-02 13:50:46 +00:00
Cakefile - initial recording api 2014-05-01 15:30:09 +00:00
config.coffee - put record watcher into module 2014-05-02 14:44:13 +00:00
index.coffee implementing GET /recording?meetingid= 2014-05-02 19:01:11 +00:00
package.json - trying out json2xml conversion 2014-05-03 10:38:20 -07:00
README.md added instructions for running a test file 2014-05-05 18:01:39 +00:00
testjson2xml.coffee - trying out json2xml conversion 2014-05-03 10:38:20 -07:00

recordingsWatcher

This app is used to watch the file tree for recording files changes in the directories /var/bigbluebutton/published and /var/bigbluebutton/unpublished

For each recording modified, we push into Redis: key = bbb:recordings: value = a set of JSON strings {"format": "", "timestamp": ""}

For example:

bbb:recordings:fbdbde6fd7b6499723a101c4c962f03843b4879c [{"format": "presentation", "timestamp": "1396623833035"}, {"format": "capture", "timestamp": "1396623833045"}]

Instructions:

from Terminal: $ coffee index.coffee

in another Terminal: $ curl localhost:4000/recordings?meetingid=fbdbde6fd7b6499723a101c4c962f03843b48 returns an array of stringified json recordings (see above for the structure of the JSON)

if there are no recordings for the given meetingID, the message "No recordings for meetingid=some_random_string" appears

Running Tests

while the application is running // $ coffee index.coffee open another console and enter: $ cake test

or $ ./node_modules/.bin/mocha --require coffee-script/register --compilers coffee:coffee-script/register --require should --colors --ignore-leaks --timeout 15000 --reporter spec test/routetests.coffee (where test/routetests.coffee is the collecion of tests you want to execute)