Cannot stop a call and start a new call #375
Comments
@astaikos316 no updates for the moment, but this is on the backlog for 2.0 so we should have a look at this soon. |
@astaikos316 in reply to #343 (comment): this should be done now, the relevant code has been refactored (you now start/stop a connection by enabling/disabling the |
@fibann I have updated to the recent 2.0 preview release and trying this out. I am having an issue between a Hololens 2 and a PC build. When I start a call from the PC to Hololens, everything works well. However when I start a calls from the Hololens 2, I get an "cannot apply remote description object not initialized" error on the Hololens and then subsequent calls fail and the Hololens 2 app crashes. I am getting the log message from an In-Game Debug Console window on the Hololens so I cannot get much detail about what "object" is not initializing. Any ideas of where I should look? |
@astaikos316 could you open a new issue filling in platform details, SDP messages, etc.? |
@astaikos316 could you open a new issue filling in platform details, SDP messages, etc.? Things that would be useful:
FWIW I did a quick test with the VideoChatDemo Unity sample and TestAppUWP and everything worked fine. |
Describe the bug
Have built an application in unity using the master branch where i start a call between 2 peers and everything works fine. I then end the call and try to start a new call and I get the following error when trying to start the new call and no video or audio starts to pass but connection is established:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <437ba245d8404784b9fbab9b439ac908>:0)
Microsoft.MixedReality.WebRTC.Unity.PeerConnection.StartConnection () (at Assets/Microsoft.MixedReality.WebRTC.Unity/Scripts/PeerConnection.cs:912)
In my project I call PeerConnection.StartConnection() to start the call and PeerConnection.Uninitialize() and PeerConnection.Close() to stop the connection.
To Reproduce
Start a Peer to Peer call. End a Peer to Peer call and then try to start a new peer to peer call.
Expected behavior
Should be able to start and stop calls without having to fully quit application
Environment
The text was updated successfully, but these errors were encountered: