1. 程式人生 > >關於直播的技術整理2

關於直播的技術整理2

jwplayer class markdown 效果 imp rtsp flow ebr 沒有

為了減小延時

webrtc+rtsp?

之前用的是srs+http-flv/rtmp+flv.js/jwplayer,延時大概2~3秒
為了進一步減小延時,客戶端選擇直接用webrtc,那麽服務器呢?
因為現在網絡攝像頭大都是rtsp協議,那麽有沒有webrtc+rtsp做直播的呢?(同道中人:https://stackoverflow.com/questions/23461914/use-an-ip-camera-with-webrtc)
google了好久,終於找到了一個叫Kurento的東西。

Kurento

http://www.kurento.org/
http://doc-kurento.readthedocs.io/en/stable/what_is_kurento.html

Kurento is a WebRTC media server and a set of client APIs simplifying the development of advanced video applications for web and smartphone platforms. Kurento features include group communications, transcoding, recording, mixing, broadcasting and routing of audiovisual flows.
技術分享圖片

技術分享圖片

一個demon

https://github.com/lulop-k/kurento-rtsp2webrtc
這個demon依賴Kurento

搭好環境後測試(網頁直接播放網絡攝像頭視頻),效果不理想,延時還是2秒左右。
但是這個的優化可能性比之前的要大,還要研究下。

關於直播的技術整理2