ghcjs / ghcjs-dom

Make Document Object Model (DOM) apps that run in any browser and natively using WebKitGtk
74 stars 41 forks source link

Missing functions/types #63

Closed eskimor closed 7 years ago

eskimor commented 7 years ago

I just noticed that some functions/types are missing from this astonishingly complete package.

For example:

navigator.mediaDevices.enumerateDevices

or the new promise based getUserMedia:

navigator.mediaDevices.getUserMedia

I don't know wether those are already in a more recent version of webkitgtk, but if so would an update be possible?

Thank you!

hamishmack commented 7 years ago

mediaDevices, enumerateDevices and getUserMedia are all now present. They should work with ghcjs and ghc/jsaddle if the web and JS engines used support them (more likely to be supported with jsaddle-webkit2gtk than jsaddle-webkitgtk).