We have tried to get opentok-layout compatible with Apache Cordova and the use of https://github.com/songz/cordova-plugin-opentok. We successfully made some changes to get this implemented.

What we did:
- OT.$ variable doesn't exist when using Cordova. We wrapped an if statement around all the places where OT.$ variable is used and replaced it with OT.OTHelper.
- Cordova plug-in is not getting updated (with the OT.updateViews function). So we added an updateViews function to the function positionElement.