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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user