-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
Types RTCRtpReceiver
and RTCRtpSender
is not Send
#422
Comments
Maybe we should change pub async fn stop(&self) -> Result<()> {
if self.stopped.load(Ordering::SeqCst) {
return Ok(());
}
self.stopped.store(true, Ordering::SeqCst);
{
- let sender = self.sender.lock();
+ let sender = self.sender.lock().clone();
sender.stop().await?;
}
{
- let r = self.receiver.lock();
+ let r = self.receiver.lock().clone();
r.stop().await?;
}
self.set_direction_internal(RTCRtpTransceiverDirection::Inactive);
Ok(())
} So it wont |
Merged
Thanks a lot! That's what I need |
#429 is merged |
#429 is merged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At attempt to close peer_connection gives such errors:
Without this line https://github.com/kolserdav/werift-sfu-react/blob/9a19fd37f1ef9aba0acf2ba119bcbf8b7ec93b47/packages/server-rs/src/rtc/mod.rs#L146 , the project is built, but when reconnecting, it shows such warnings:
and after some time new connection it breaks, although the primary connection works fine. I think that I need to close the connection manually when I close the web socket connection, but this does not work because: Types
RTCRtpReceiver
andRTCRtpSender
is notSend
.To reproduce:
Clone project:
Checkout to actual commit:
Run:
cd werift-sfu-react cargo run
I will be grateful for any help.
The text was updated successfully, but these errors were encountered: