Use capture-frame package

See: https://github.com/feross/capture-frame
Capture video screenshot from a `<video>` tag (at the current time)

Changes from our version:

- Added tests in Chrome/Firefox browsers.
- Use built-in TypeError (which is meant for bad arguments) instead of
custom IllegalArgumentError.
This commit is contained in:
Feross Aboukhadijeh
2016-09-16 10:14:39 -07:00
parent fa67f9b82b
commit bcd6a38a05
4 changed files with 4 additions and 40 deletions

View File

@@ -35,10 +35,6 @@ class TorrentKeyNotFoundError extends TorrentError {
class InvalidTorrentError extends TorrentError {}
/* Miscellaneous */
class IllegalArgumentError extends ExtendableError {}
module.exports = {
CastingError,
PlaybackError,
@@ -49,6 +45,5 @@ module.exports = {
PlaybackTimedOutError,
InvalidSoundNameError,
TorrentKeyNotFoundError,
InvalidTorrentError,
IllegalArgumentError
InvalidTorrentError
}