Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong url returns normal captureImage #15

Open
zinen opened this issue Jun 22, 2021 · 0 comments
Open

Wrong url returns normal captureImage #15

zinen opened this issue Jun 22, 2021 · 0 comments

Comments

@zinen
Copy link

zinen commented Jun 22, 2021

Inputting like a fake url when capturing images and captureImage just returns just normal. I would expect that an error was thrown or captureImage to return like false or someting.

Input url with: 1.1.1.1 or a string hi and everything just runs normaly but without generating a file.

Could this module give some feedback to weather a file was generated for me to handle when calling captureImage()?

    const Recorder = require('node-rtsp-recorder').Recorder

    var rec = new Recorder({
        url: 'hi',
        folder: '/Users/sahilchaddha/Sahil/Projects/Github/node-rtsp-recorder/videos',
        name: 'cam1',
        type: 'image',
    })

    rec.captureImage(() => {
        console.log('Image Captured')
    })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant