Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 576 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 576 Bytes

2DPaaS-InteractiveHuman-WebDemo

简介

流程

  1. 【Web】获取本地SDP(记为local_sdp)
  2. 【接口请求】session/start 选择协议webrtc,并携带local_sdp信息
    let data = {
        "virtualmanKey":`${virtualmanKey}`,
        "protocol":"webrtc",
        "localSDP": `${loca_sdp}`
    }
  3. 解析response中的playStreamAddr作为 remote_sdp
  4. 使用remote_sdp连接webrtc

require

npm

安装依赖:

npm install live-server@latest

启动网页:

live-server