Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
1146 Discussions

RTCPeerClient unpublish Error Code=2000

Mohamad_I_
Beginner
380 Views

Hi there, 

 

The error below appears when we hangup from any other partner(Chrome, Firefox, Android) and try to unpublish peerClient:

 

Domain=com.intel.webrtc Code=2000 "(null)"

 

whereas the hangup from iOS works properly!!

 

I'm using iPad mini 2,

iOS: 10.2.1

WebRTC: 3.2

 

The code where the error has been thrown.

 

[_peerClient unpublish:localStream to:remoteUserID onSuccess:^{
				NSLog(@"WebRTC Success: OnStopped: Unpublished Stream successfully.");
			} onFailure:^(NSError *error) {
				NSLog(@"WebRTC Error: OnStopped: %@", error);
			}];

 

 

Thanks in advance.

0 Kudos
1 Reply
Jianjun_Z_Intel
Employee
380 Views

Hi Mohamad,

Unpublish a stream after its associated session is ended may trigger failure callback because the stream is unpublished during hangup.

0 Kudos
Reply