Is there a simple way to detect which browser's getStats() is present? I believe Chrome's takes a callback as its only parameter,
Firefox takes a selector and returns a Promise
(and that Apple browsers don't provide getStats).
I realize adapter.js has shims, but we have a long-time commitment to a non-adapter.js library for WebRtc, so I can't easily add adapter.js to our project without potential namespace collisions.I haven't been able to find in adapter.js how it detects the difference, nor have I been able to find a way to distinguish them except by 1) catching exceptions after calling them, or 2) relying on DetectRtc to tell me which browser it is.
--
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/e8fc9f6d-8252-497f-9bbf-cb70ddd28a33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.