最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Does Phonegap support WebRTC? - Stack Overflow

programmeradmin3浏览0评论

I want to build an augmented reality app. I was thinking of using something like the Wikitude SDK here or using this javascript library js-objectdetect which I would prefer however, it relies on webRTC support which of course is fine using a modern browser but I'm not quite sure if PhoneGap also supports it. In addition, if anyone knows how I can superimpose my 3d models over an object, that'd be great. I don't know what file format my 3d models need to be in to be used with these augmented reality solutions.

I want to build an augmented reality app. I was thinking of using something like the Wikitude SDK here http://www.wikitude./developer or using this javascript library https://github./mtschirs/js-objectdetect js-objectdetect which I would prefer however, it relies on webRTC support which of course is fine using a modern browser but I'm not quite sure if PhoneGap also supports it. In addition, if anyone knows how I can superimpose my 3d models over an object, that'd be great. I don't know what file format my 3d models need to be in to be used with these augmented reality solutions.

Share Improve this question edited Nov 10, 2014 at 14:45 mpromonet 12k43 gold badges66 silver badges97 bronze badges asked Mar 12, 2013 at 2:26 user974725user974725 1532 silver badges11 bronze badges 2
  • 1 WebRTC support is determined at the browser level. As of today newer versions of Chrome fully it, not sure what else does. Also very unlikely that mobile browsers would be supporting it as of now. Note that phonegap by default uses the native browser for its webview, meaning you cannot force phonegap into using say, Chrome as its webview. – techfoobar Commented Mar 12, 2013 at 2:56
  • damn, exactly what I hoped I could do. – user974725 Commented Mar 12, 2013 at 2:59
Add a ment  | 

3 Answers 3

Reset to default 5

As techfoobar said, WebRTC support is determined at the browser level.
The WebRTC specification is far for finished. You can check the current support matrix of the draft specification. Recent versions of Firefox, Chrome and Opera supports the current implementation.

All Mobile browsers won't support it very soon. By now it works on Android with Chrome, but it's still missing on Windows IE.
The only thing you can hope for is a phonegap plugin which simulates the WebRTC interface.

Check out the OpenTok PhoneGap plugin. It doesn't do WebRTC but it does do video munication. Only works with iOS right now.

https://github./opentok/PhoneGap-Plugin

Here is the plete library for android (chromium) hybrid app https://crosswalk-project/

发布评论

评论列表(0)

  1. 暂无评论