Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨Issue #9 Added fetch of devices and constraints data on creation of …
…mediaDevices
- Loading branch information
efaec7f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maverickmishra that's not what I meant on slack. Take a look at the MediaStreakTrack constructor:
https://github.com/phonegap/phonegap-plugin-media-stream/blob/issue3/www/mediastreamtrack.js
I'm called cordova.exec here to pre-populate the settings values. So in
mediaDevices
constructor you can call:and have the success method pre-populate constraints and devices.