android rtc框架,AndroidRTC

AndroidRTC

An example of native WebRTC on Android using PubNub's PnWebRTC API for signaling.

Big News: PubNub Releases Android WebRTC Signaling API!

081be29108915cb0facda03c2a8a5129.png

This means that you can now create video chatting applications natively on Android in a breeze. Best of all, it is fully compatible with the PubNub Javascript WebRTC SDK! That's right, you are minutes away from creating your very own cross platform video-chatting application.

The AndroidRTC Example App

This app shows how to accomplish signling on a standby channel to coordinate users, then hop into a video chat and use the PnWebRTC API for signaling. You can even make a call to the AndroidRTC App from the web interface.

610a67c23f3570c3214e25ab66088bd8.png

Users in this app layout must be subscribed to username-stdby, a standby channel. The Android side checks if a user is online by checking presence on the standby channel.

In this app, a call can be placed by sending a JSON packet to the user's standby channel:

{"call_user":"UserName","call_time":currentTimeMillis}

Upon accepting the call, the answerer creates the SDP Offer, and video chat begins.

450c240bc22486bf2c10c1a6d3e5fb43.png

Incoming Calls

AndroidRTC provides a good example of how to handle incoming calls.

fa8051a9b577e7cbfbae7ed20b35dd77.png

User Messages

This app also shows how to send custom user messages. These messages could be chat, game scores, and much more.

02a75284e02e8b3204ec5a95ff2cea4f.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值