3

[carc] CAReportingClient.mm:320:-[CAReportingClient sendMessage:category:type:reporters:]_block_invoke: The operation couldn’t be completed. No valid RTCReporting and the session was started

jaydev
  • 1,629
  • 5
  • 17
  • 31

1 Answers1

1

i have the same problem with using google stun:stun:stun.l.google.com:19302

i think the problem is caused by the stun/turn server.

i solve and test it successfully with applying a free turn server in http://numb.viagenie.ca/cgi-bin/numbacct

and in swift i just add the

RTCIceServer(urlStrings: ["turn:numb.viagenie.ca:3478"], username: "YourUserName", credential: "yourPassword")

into iceServers list of webrtc,

this works for me, at least prove my swift side is correct(i am iOS developer), all the rest is the turn/stun server side.

RobC
  • 22,977
  • 20
  • 73
  • 80
kleinerQ
  • 11
  • 4
  • Hello, I am currently working with webrtc, after I receive the Stream I see [Add stream Remote: RTCMediaStream: default A = 1 V = 1] but it doesn't work for me when i show up, do you have any solution for me, thank you very much – Hiền Đỗ Jan 08 '20 at 11:29
  • for remote video i didnt get the video from [Add stream Remote: RTCMediaStream:], i obtain the video as inititial the local peer like: `let videoTrack = self.createVideoTrack() self.localVideoTrack = videoTrack self.localPeer?.add(videoTrack, streamIds: [streamId]) self.remoteVideoTrack = self.localPeer?.transceivers.first { $0.mediaType == .video }?.receiver.track as? RTCVideoTrack` – kleinerQ Jan 17 '20 at 01:40