OpenTok now on PhoneGap

Today we’re taking real time video on mobile by storm with the launch of our PhoneGap and Titanium Plugins. Don’t want to code in a statically typed language (Objective-C)? We got your back.

For a long time we’ve provided a video chat API for web apps and we’ve seen interesting applications. Remote photo-booth, online collaboration, consultation apps, you name it!

A few months ago, we opened up a whole new realm of possibilities with an iOS SDK and even more interesting applications emerged. Unfortunately, iOS developers and web developers dance to different tunes and web developers watched in envy as iOS developers greedily hacked away on mobile applications with OpenTok API. Remote controlled robots, live event broadcasts, mobile consultations, etc.

Today, we bring PhoneGap Plugin to web developers. No need to draw on StoryBoards on XCode, use HTML/CSS! If you like Twitter Bootstrap, use it the same way as you would when you build web applications. Can’t code javascript without jQuery? Add the script tag for jQuery and GO! There are no barriers. Use the same web APIs that you love ( Pusher, Mashery, …, OpenTok) seamlessly on your mobile apps. It just works!

To make it dead simple for web developers, we made the PhoneGap javascript work almost identically to our web API. If you have ever tried our getting started Tutorial, then you are ready to build an OpenTok iOS application. Let’s get started!

Start with our PhoneGap github page. Go through the readme, it has installation instructions. It only took me 4 minutes, and I have video to prove it. Try it out, let us know what you think!

If you catch any bugs, tweet at me and I’ll squash it.

  • Vaibhav Parikh

    Aweosme .. keep up the Good work .. All the best .. :)

    • http://songz.me/ Song Zheng

      Thank you!

  • Danish Munir

    What is your guidance to developers who have been using you for web, but now are starting to port to iOS? Should we go the Titanium route or the PhoneGap route for using opentok?

    • http://songz.me/ Song Zheng

      I would use PhoneGap, because your code would be very similar and it’s very simple to get started!

  • Gabriel

    Is the Phone Gap available also in a Android development or does it deploy only on IOS

    • http://songz.me/ Song Zheng

      Hi, it’s currently only for iOS. Our Android SDK is still in Beta, which means it is not quite ready to have a phoneGap plugin. Check back in a few weeks!

      • Bhumika

        Hi… Android phonegap plugin available or not??

  • pat

    Does the plugin support the record and playback of archives?

    • http://aoberoi.me Ankur Oberoi

      Sorry pat, unfortunately Archives aren’t available for any of our iOS based SDKs.

  • Salesforce Developer

    can i have any luck with Android Phone Gap plugin.???

  • nikdubey

    I tried the latest openTok’s iOS-PhoneGap Plugin.
    It does not compiles. It gives an error which says “247 duplicate symbols for architecture armv7″.

    After spending few hours I realized that the root cause behind the issue is the linker flag “-all_load”.Which is added in project which is autogenerated by cordova’s create command.But if we remove this flag then the projects gets compiled successfuly but the cordova starts behaving abnormally.
    .Looks like Cordova Library requires your project to have a linker flag “-all_load”.

    The issue which I am facing is similar to issue mentioned on this link

    http://www.tokbox.com/forums/ios/webrtc-and-cordova-linker-problem-t15514.