Fork of erizet's code but modified to be used in Eclipse