-
Notifications
You must be signed in to change notification settings - Fork 537
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
Implement PeerHandler.stop() #38
Comments
The ground work for this should be done with https://github.com/sdroege/openwebrtc/tree/pipeline-refactoring Not sure if something else is still missing other than implementing PeerHandler.stop() in the JS layer. |
There we need to set_*source NULL on the media sessions and renderers and then unref the renderers and transport agent. I think that should be all. |
The problem is that JS (and other GC'd languages) don't give you a way to "unref" something. Which might be an argument for adding some kind of "stop" function to the renderers and transport agents to let them release all their resources immediately. Could be called "dispose" like in Java, C# and others, I don't know what JS people usually do there. And after calling that, every other action on the object is invalid. |
Relevant JS methods: Note that the objects are still around (and the app is able to read out statistics for example) after stopping/closing, but they can't be used for anything meaningful. |
This is being worked on here: https://github.com/pererikb/openwebrtc/commits/js_shutdown |
@pererikb , is that ready to be merged? |
Yes |
fix broken links to internal anchors
The following is logged e.g. on page reloads: PeerHandler.stop() called (not implemented)
The text was updated successfully, but these errors were encountered: