-
-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimplePeer support #510
Comments
Hello @SteffenFreeway Can you provide a sample with SimplePeer 9.7.2, it's most likely they call getStats with a callback fonction inside the library. You can also confirm they use callback by using, to see if that solve the issue.
|
We may want to add getStats to
|
They use callback here for getStats:
They also use a dirty trick for react webrtc case using |
@SteffenFreeway Try this branch with a fix for you: |
I'm unfortunately not at the office atm, but will try it out as soon as I'm back. Thanks so much for looking into this so quickly :-) |
Will be pushed to next release unless confirmed in the next 12 hours @SteffenFreeway |
I'll be testing it within 2 hours :-) |
I don't get the getStats error anymore, however I still don't remote video. Here's the entire log output: https://pastebin.com/8m6uXBTj And the current error seems to be: Unhandled Promise rejection: res.forEach is not a function I can't really see whether it's in simplepeer or iosrtc, so I apologize if it's not in your code. |
Hello @SteffenFreeway
Can you try this instead:
I may add iterator interface for RTCStatsResponse later. |
Thanks once again @hthetiot for looking into this. |
Thank you @SteffenFreeway for confirmation, I will update getStats to make it works. |
@SteffenFreeway This should satify any possible use even by SimplePeer now
or
|
Thank you for your patience @SteffenFreeway, test and let me know if all good I will merge and will be released on 6.0.12 |
I'll give it a test spin tomorrow when I'm back at the office :-) |
@SteffenFreeway did you test successfully? |
@hthetiot I'm terribly sorry, but I never got to the office yesterday. I will be going there today for sure though, in about 7 hours. And I'll be testing the RC first thing when I get there. |
I've tested it now, and unfortunately I still receive no remote video. As for my issue I've uploaded the latest error log here: https://pastebin.com/0D3qyUJ5 The errors that I've noticed are: And Failed to make complete framebuffer Does this mean anything to you? |
@SteffenFreeway Thank you for your feedback. Can you provide the way you set video.srcObject ? |
@hthetiot Here's the part of the code that handles the remote video (it's TypeScript btw. and the class contains a lot more code than just this, I just stripped it out for brevity):
I don't see the log entry from the event handler though, so it could be simplepeer never receives a stream. I'll be looking into it some more tomorrow when I'm at the office again, and see if I can find some details about when/where it fails. |
I finally have had some luck with getting remote video - currently I can only get video on my iOS app if it's the initiator of the connection. However I don't think this is a bug in iosrtc, but rather iOS just being picky, so I'll attempt to work around that myself. Thanks a bunch for the assistance with Simplepeer support - I'll close the issue as it appears to be working correctly now :-) |
Thank you @SteffenFreeway |
Expected behavior
I expect to receive and be able to play a remote stream, when the other party sends me one.
Observed behavior
Rather than receiving and playing the stream, this error is logged (as an error):
Callbacks are not supported by "RTCPeerConnection.prototype.getStats" anymore, use Promise instead.
I have zero callback functions in my code, which leads me to believe this is an issue within the iosrtc JS.
As far as I can tell it happens right after PluginRTCDataChannel#setListener() is called. (At least that's how the log goes in xcode)
Steps to reproduce the problem
It always happens for me when I try to finish a connection where both parties send video, regardless of whether the IOS app is the initiator or not. (I'm using SimplePeer 9.7.2 btw.)
Platform information
The text was updated successfully, but these errors were encountered: