Package Exports
- @fakes/media-devices
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fakes/media-devices) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
media-devices-fake
The goal of this library is to provide a fake implementation of navigator.mediaDevices to ease unit testing device related code.
Although the api is standardized, the actual implementation varies between browsers, even violating the standard.
The current implementation focuses on reproducing the chromium implementation.
The implementation is driven by personal needs and by no means complete.
Not implemented APIs / behaviour follows a fail fast approach throwing errors with additional information about the missing feature.
In case you need not implemented behaviour feel free to open a pull request.
How to use it
The acceptance test should give you an impression on how to use the library and what is already implemented.