1

What is mqtt and webRTC?

Where can I use them if I am developing a NATIVE mobile web application which supports voice and video chat?

Vikas Prasad
  • 3,163
  • 5
  • 28
  • 39
  • possible duplicate of [Suitable protocol for Instant Messaging](http://stackoverflow.com/questions/19464820/suitable-protocol-for-instant-messaging) – Flow Oct 22 '13 at 16:52
  • Please don't ask the same question multiple times. Questions of recommendation or "vs" nature are usually off-topic on stackoverflow. – Flow Oct 22 '13 at 16:53
  • @Flow Thanks for the comment. Just edited the question. – Vikas Prasad Oct 13 '16 at 11:19

1 Answers1

3

You are comparing two different things.

MQTT is a messaging protocol for publish/subscribe that you could use to implement the communication between your native application and the back-end servers.

WebRTC is a standard that modern web browsers are beginning to support to allow a pure web application (HTML5/JavaScript/CSS3) to implement voice and video interaction without requiring any browser plugins (typically today such implementations require the use of Flash). Its worth pointing out that support in native browsers for webRTC is only now emerging (and still not supported on iOS). If you were developing a mobile web application you might choose to use webRTC to support voice and video in a platform independent way and then use MQTT over web sockets to implement the communications to the server.

Since you are developing a NATIVE mobile application, webRTC is not really relevant. As a native application you are not constrained by browser support.

rob9nicholson
  • 191
  • 1
  • 7
  • Well, Many thanks!!! You cleared many things. There is still one question that might be silly: So as our application is native webRTC is cancelled out. Now MQTT is left. So can an app like above be developed using MQTT ONLY? Or do we have to include a protocol like XMPP? Asking this because you wrote "MQTT is a messaging protocol for publish/subscribe that you could use to implement the communication between your native application and the back-end servers." – Vikas Prasad Oct 29 '13 at 15:38
  • 1
    Yes, you could choose either mqtt or XMPP as the communication protocol as I said over on your other post: (http://stackoverflow.com/questions/19464820/suitable-protocol-for-instant-messaging). If you found my answer helpful, please consider accepting it so I get the reputation. Thanks. – rob9nicholson Oct 29 '13 at 17:50