Vikas Prasad
Vikas Prasad

Reputation: 3433

mqtt protocol vs webRTC

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?

Upvotes: 1

Views: 4524

Answers (1)

rob9nicholson
rob9nicholson

Reputation: 193

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.

Upvotes: 3

Related Questions