# oh_webRTC **Repository Path**: xq_qyh/oh_web-rtc ## Basic Information - **Project Name**: oh_webRTC - **Description**: openharmony webRTC - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 30 - **Created**: 2025-02-07 - **Last Updated**: 2025-02-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OH_WEB-rtc ## 简介 WebRTC (Web Real-Time Communications) 是一项实时通讯技术,它允许网络应用或者站点,在不借助中间媒介的情况下,建立浏览器之间点对点(Peer-to-Peer)的连接,实现视频流和(或)音频流等任意数据的传输。
本demo中使用到的webrtc代码仓:[ohos_webrtc](https://gitee.com/openharmony-sig/ohos_webrtc)。 ## peerconnection client demo介绍 本用例是通过webrtc的peer connection client来验证OH video视频能力的。 ### 测试平台 Ubuntu22.04 ### 测试资源 搭建测试环境的测试资源,均在[testResource](./testResource/)目录 ### 验证方法 1. 将webrtc原生库linux端的peerconnection测试用例编译出来(其包含peerconnection_server,peerconnection_client),并在linux环境上分别运行此应用。 ![linux server & client](./pic/linux_server.png) 2. Linux设备上的client链接服务器。 ![linux client connect server](./pic/linux_connect.png) 3. 在OH设备上运行本测试用例,并点击中间连接服务器按钮 ![oh connect server](./pic/oh_connect_server.png) 4. 服务器连接成功后点击上面连接其他客户端按钮,此时在linux环境中的client端能看到OH设备上传输的视频数据。 ![oh connect peer](./pic/oh_connect_peer.png)