According to the changelog-6.0.12:
Add Throw Error Not implemented for MediaStreamTrack.getConstraints|applyConstraints
The library I'm using invokes getConstraints and throws an error with message "Error: Not Implemented" which I assume is this change. Is there a way to go around this, and is this also okay, to simply throw an error? Are there plans to implement this?
Did you try latest version? There is no throw there anymore.
Aren't these the unimplemented functions?
By latest did you mean https://github.com/cordova-rtc/cordova-plugin-iosrtc/tree/8.0.0-RC2 ?
I'm upgrading, will close this as soon as tested.
Ah.. you are right. I've mixed up with getCapabilities...
I don't see the same wrappers in the newer branch, hopefully they're working now!
Will test.
No, I was wrong, throw is still there...
If you need quick fix just overide prototype of each function to implement a SHAM.
I will see if I can help and solve the SHAM (not SHIM) for next release.
@hthetiot
I modified the JS to not call getConstraints and got that one through. I didn't even find a call to applyConstraints though and not sure what this method was supposed to return in the first place.
A SHAM most likely will suffice.
P.s. In regard to #629 I find it strange to have these methods correctly overridden but returned media to be at a conflict with WebKit's implementation of gUM. I will investigate and report on that issue anyway.
Thank you @j4hangir i suspect webrtc-adapter
See 7058105 for getConstraints/applyConstraints SHAM