open-webrtc-toolkit / owt-client-native

Open WebRTC Toolkit client SDK for native Windows/Linux/iOS applications.
https://01.org/open-webrtc-toolkit
Apache License 2.0
385 stars 180 forks source link

subscribe the forward stream failed #626

Open dragon8609 opened 1 year ago

dragon8609 commented 1 year ago

When the mobile app was entered the room.Then my C++ app enter the room and push the stream(mix). Now my mobile app push the stream so that the C++ app OnStreamAdded(std::shared_ptr stream) call. I subscribe the remote stream OnStreamAdded callback,but it failed,The exception is "Failed to set local description". When I set the log level to info level ,I see the follow message:

(conferencepeerconnectionchannel.cc:596): Subscribe a remote stream. It has audio? 0, has video? 0

If My C++ app enter room and push the stream first ,then the mobile app enter room and push steam without a break. And I can see the log message changed: (conferencepeerconnectionchannel.cc:596): Subscribe a remote stream. It has audio? 1, has video? 1 And I subscribe succeed!

What's problem with my C++ code? Thanks!

DiamoandDog commented 1 year ago

I've had the same problem with iOS subscription streaming, but it's not a must-have, and I think it's probably an internal bug

DiamoandDog commented 1 year ago

Have you solved the problem? Is there any way to solve it

dragon8609 commented 1 year ago

May be is a bug for server,The server modified some code my problem had gone!

The workmate tell me that the problem is the "SIGNALING_PROTOCOL_VERSION" is different from two owt-client,one is 1.2 and one may be 1.0. But the code he modified I can't submit here! Good luck.

Have you solved the problem? Is there any way to solve it