GithubHelp home page GithubHelp logo

Comments (7)

savaliyap avatar savaliyap commented on May 20, 2024 1

Nevermind, it was a small issue with icecandidate. You can close this one now. Thanks for all the help

@saghul

from react-native-webrtc.

saghul avatar saghul commented on May 20, 2024

You need to add the track event before you call setRemoteDescription.

from react-native-webrtc.

savaliyap avatar savaliyap commented on May 20, 2024

You need to add the track event before you call setRemoteDescription.

In call answered event listners I had partial success(remote stream is still blank) with this, I don't know if it is correct approach

  const receivers: RTCRtpReceiver[] = peerConnection.current.getReceivers();
  console.log('\n\n\n\n\n', receivers, 'RECEIVERS');

  const stream = new MediaStream();
  receivers.forEach(receiver => {
    stream.addTrack(receiver.track);
  })
  setRemoteStream(stream)

from react-native-webrtc.

saghul avatar saghul commented on May 20, 2024

That is not correct. You need have 2 video track per stream since an RTcView is only able to render a single video track.

Handle the track event, and create a stream there, if you don't have one.

You will need to attach to the track event early, so you don't miss it.

from react-native-webrtc.

savaliyap avatar savaliyap commented on May 20, 2024

That is not correct. You need have 2 video track per stream since an RTcView is only able to render a single video track.

Handle the track event, and create a stream there, if you don't have one.

You will need to attach to the track event early, so you don't miss it.

That actually worked but the main issue still persists. remoteStream view is just plain blank

from react-native-webrtc.

saghul avatar saghul commented on May 20, 2024

You'll need to go through your code. Ink Lu pointed out the obvious mistakes, but there may be more.

from react-native-webrtc.

savaliyap avatar savaliyap commented on May 20, 2024

You'll need to go through your code. Ink Lu pointed out the obvious mistakes, but there may be more.

I don't see the comment on this issue, can you link it here please?

from react-native-webrtc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.