microsoft / MixedReality-WebRTC

MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
https://microsoft.github.io/MixedReality-WebRTC/
MIT License
913 stars 283 forks source link

Remote video player does not show up #756

Open kinaco17 opened 3 years ago

kinaco17 commented 3 years ago

Hello,

The remote video player does not show up. Tutorials on https://microsoft.github.io/MixedReality-WebRTC/manual/unity/helloworld-unity-connection.html and https://forum.unity.com/threads/mic...mponent-doesnt-have-a-source-property.994370/ I'm referring to the question. (The webrtc connection seems to be fine, and the offer and answer messages seem to be fine.)

I think it has something to do with the "Starting the WebRTC connection" part of the tutorial, but I don't know what I am supposed to do here.

The remote camera is configured as follows. image

I am using Unity 2019.4.24.

Any help would be greatly appreciated.

SilverLive commented 3 years ago

Hi, what do you mean with "The renderer doesn´t show up"? If it just doesn´t show any video, you might be right with your suggestion, that the reason lies in the "set up a connection" chapter. I also needed some time to understand what I have to do there. For me it worked with the following approach:

  1. Write the correct local- and RemotePeerId into your NodeDSS Signalers component.
  2. After that, add a NodeDssSignalerUI-component to your Signaler Gameobject, create the deviceNameLable as well as the RemotePeerID input field.
  3. Assign them to your NodeDssSignalerUI
  4. Create a button within your hierarchy and assign the NodeDssSignalerUI-Component to its OnClick-Event, pointing to the NodeDssSignalerUIs Method "StartConnection".
  5. After that, start the dss-Server and both instances of your Project and press the created button on your Host-PC (press it a view times, just to be sure :) ), the connection should be set up and you will see your Webcams picture on the remote-Renderer.