Proof of concept: ROAP on top of JSEP - 184 lines and counting

Hi,

my weekend project is now visible to the world:
I implemented a layer of Javascript code that allows you to program 
against the ROAP interface while using a JSEP object underneath it.

I have not implemented all aspects, but it's enough to do some testing. 
For instance, close() is not implemented :-) - and I also left out 
retransmission and actual glare handling.

(Of course, since JSEP isn't implemented yet, I had to create a dummy 
JSEP to run my code against... this is also included.)

There are several aspects that show some degree of DOM/JS ignorance, for 
instance:

- I don't know how to dispatch a signal from Javascript. Instead, I use 
window.setTimeout() to achieve a similar-looking result: Getting 
something to happen after the current function finishes.

- I don't know the proper way to generate errors for throwing. So the 
code throws text strings when something bad happens.

Still, it's a fairly self-contained piece of code; I think it 
demonstrates the order of magnitude of the library that's needed to 
allow people to use a ROAP programming model on top of JSEP.

Comments (and patches) welcome!

The code is here:

http://code.google.com/p/webrtc-samples/source/browse/#svn%2Ftrunk%2Froap-jsep

Have fun!

                         Harald

Received on Monday, 5 March 2012 13:02:05 UTC