cordova-plugin-opentok icon indicating copy to clipboard operation
cordova-plugin-opentok copied to clipboard

Added support for the browser platform

Open CallanIwan opened this issue 10 years ago • 5 comments

See https://github.com/songz/cordova-plugin-opentok/issues/119

CallanIwan avatar May 26 '15 12:05 CallanIwan

thanks @CallanIwan, it seems like a better option would be to have a file which loads and evals the latest opentok.min.js from the server, rather than checking in one snapshot that will soon be out of date and need to be maintained. what do you think?

aoberoi avatar May 26 '15 18:05 aoberoi

Yeah that sounds like the better option. The export (module.exports = window.OT;) line has to be added to the opentok js library for the browser to work.

2015-05-26 20:33 GMT+02:00 Ankur Oberoi [email protected]:

thanks @CallanIwan https://github.com/CallanIwan, it seems like a better option would be to have a file which loads and evals the latest opentok.min.js from the server, rather than checking in one snapshot that will soon be out of date and need to be maintained. what do you think?

— Reply to this email directly or view it on GitHub https://github.com/songz/cordova-plugin-opentok/pull/176#issuecomment-105627212 .

CallanIwan avatar May 26 '15 18:05 CallanIwan

@aoberoi As you can see in the commit comments I added the requested changes and also made some minor changes to the download of IOS SDK. Unfortunately I could not use the minified version of the OpenTokJS Client. This minified version has also uglified functions and variables. I needed to add module.exports = window.OT; to the file in order to work within Cordova. If you know how to add this in the minified version I could download the minified, but from this point I don't see how.

CallanIwan avatar May 27 '15 09:05 CallanIwan

excellent work @CallanIwan, i'm going to review it tomorrow, but I just wanted to say thanks so much.

aoberoi avatar May 29 '15 01:05 aoberoi

When is tomorrow? :-)

derwaldgeist avatar Oct 19 '15 16:10 derwaldgeist