天天看點

openwebrtc(1) 服務端和android用戶端demo安裝

openwebrtc 是基于 gstreamer 實作的開源的、跨平台的 webrtc 用戶端架構,支援 h.264 和 vp8。利用 openwebrtc,webrtc就不再僅僅是純粹浏覽器技術了,你可以在nativeapp中使用webrtc,并且還可以與浏覽器webrtc互聯互通。

openwebrtc(1) 服務端和android用戶端demo安裝

demo使用nodejs做伺服器。centos安裝:

下載下傳example代碼:

安裝文檔參考:

<a href="https://github.com/ericssonresearch/openwebrtc-examples/tree/master/web">https://github.com/ericssonresearch/openwebrtc-examples/tree/master/web</a>

之後就可以在web進行視訊了,使用支出webrtc的浏覽器。首先建立房間,然後讓另一個用戶端,join再call就可以了。

openwebrtc(1) 服務端和android用戶端demo安裝

下載下傳最新的android studio,配置好。編譯android項目。

<a href="https://github.com/ericssonresearch/openwebrtc-examples/tree/master/android/nativecall">https://github.com/ericssonresearch/openwebrtc-examples/tree/master/android/nativecall</a>

項目nativecall 是用戶端sdkdemo。比較粗糙。

需要注意的是,編譯會出警告。增加配置:abortonerror : false

其中buildtoolsversion 根據自己的版本修改。

修改config配置,進入app再修改也行。假設服務安裝在192.168.1.60。

android用戶端,可以和web端進行視訊,但是好像木有聲音,需要再研究下。

使用openwebrtc可以很簡單的搭建web視訊聊天。但是需要優化的地方還很多。繼續研究。