simplewebrtc / SimpleWebRTC

Simplest WebRTC ever

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

videoAdded event not display remoteVideo react.js

seoksanghwan opened this issue · comments

videoAdded event not display remote video react.js

{ 
          peers.map( data => (
            <div className="vidContainer" key={data.id} id= 
 {`container_${this.webrtc.getDomId(data)}`}>
              <video id={this.webrtc.getDomId(data)} ref={(v) => this.remoteVideos[data.id] = v} playsInline autoPlay/>
              <div className="nick">
                <p>{data.nick.split(',')[0]}</p>
              </div>
            </div>
          ))
        }

You can view the peer information, but remote video won't play.