react-native-webrtc: Error setting property 'streamURL' of RTCVideoView

I just go this set up and started testing it but I am getting this msg any ideas?

[warn][tid:main][RCTUIManager.m:956] Error setting property 'streamURL' of RTCVideoView with tag #65: 
Exception thrown while executing UI block: -[RTCVideoTrack copyWithZone:]: unrecognized selector sent to instance 0x14e051050

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 37 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Hope this helps @jcgertig

// Import proper components
import WebRTC, {RTCView, RTCMediaStream} from 'react-native-webrtc';

// A method for grabbing the stream 
getLocalStream() {
    let promise = new Promise((resolve, reject) => {
      navigator.getUserMedia({audio: true, video: true, videoType: 'front'}, (stream) => {
        resolve(stream);
      }, (err) => {
        reject(err);
      });
    });
    return promise;
}

componetDidMount() {
  this.getLocalStream().then((stream) => {
    // do something with stream
  });
}

I dispatch my stream into a store via an action once the promise is resolved. Also I don’t render the RTCView unless this.state.localStream != null