Skip to content
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

Restore Callbacks Support on registerGlobals getUserMedia|enumerateDevices RTCPeerConnection.prototype.createAnswer|createOffer|setRemoteDescription|setLocalDescription|addIceCandidate support for JsSIP, SIP.js and sipML5 #404

Merged
merged 2 commits into from
Oct 9, 2019

Conversation

hthetiot
Copy link
Contributor

@hthetiot hthetiot commented Oct 7, 2019

Tested on JsSIP and SIP.js with FreeSWITCH (Sorry sipML5 is too much for me)

Screen Shot 2019-10-07 at 11 58 13 PM

Testing

To test task/restore-callbacks-support branch

cordova plugin remove cordova-plugin-iosrtc --verbose
cordova plugin add https://github.com/cordova-rtc/cordova-plugin-iosrtc#task/restore-callbacks-support --verbose
cordova platform remove ios --no-save
cordova platform add ios --no-save

…obals method to restore getUserMedia|enumerateDevices RTCPeerConnection.prototype.createAnswer|createOffer|setRemoteDescription|setLocalDescription|addIceCandidate support for JsSIP, SIP.js and sipML5
@hthetiot hthetiot added this to the 5.0.5 milestone Oct 7, 2019
@hthetiot hthetiot self-assigned this Oct 7, 2019
@hthetiot hthetiot changed the title implement restoreCallbacksSupport into iosrtc.js called on registerGlobals method to restore getUserMedia|enumerateDevices RTCPeerConnection.prototype.createAnswer|createOffer|setRemoteDescription|setLocalDescription|addIceCandidate support for JsSIP, SIP.js and sipML5 implement restoreCallbacksSupport restore getUserMedia|enumerateDevices RTCPeerConnection.prototype.createAnswer|createOffer|setRemoteDescription|setLocalDescription|addIceCandidate support for JsSIP, SIP.js and sipML5 Oct 7, 2019
@hthetiot hthetiot changed the title implement restoreCallbacksSupport restore getUserMedia|enumerateDevices RTCPeerConnection.prototype.createAnswer|createOffer|setRemoteDescription|setLocalDescription|addIceCandidate support for JsSIP, SIP.js and sipML5 Restore Callbacks Support on registerGlobals getUserMedia|enumerateDevices RTCPeerConnection.prototype.createAnswer|createOffer|setRemoteDescription|setLocalDescription|addIceCandidate support for JsSIP, SIP.js and sipML5 Oct 8, 2019
@hthetiot hthetiot merged commit b3d8d0b into master Oct 9, 2019
@hthetiot hthetiot deleted the task/restore-callbacks-support branch October 22, 2019 13:30
@@ -2529,6 +2578,12 @@ function registerGlobals() {
navigator.webkitGetUserMedia = getUserMedia;
navigator.mediaDevices.getUserMedia = getUserMedia;
navigator.mediaDevices.enumerateDevices = enumerateDevices;

// Restore Callback support
if (!doNotRestoreCallbacksSupport) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hthetiot should this be above navigator.webkitGetUserMedia = getUserMedia;?
I'm facing an issue where it still throws an error while using getUserMedia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants