Great module. I was working on something similar and then realized that, as always, someone in the community had done the job better already.

I would, however, also like the possibility to validate the url given for the webcam with respect to existence and min/max height/width/size/mime etc. If we did this we could also let the validation function fill out the dimensions automatically. I guess that the average internet user (me included) would be glad to avoid finding the picture's dimensions manually.

I guess we could do this by letting the validate function download the url given to a temporary location, get the dimensions from there and validate before we delete the file. It probably needs some time-out function in case the url points to a mjpeg stream.

If you think this is an interesting idea I will be glad to contribute.

/Cheers

CommentFileSizeAuthor
#1 validatewebcam.patch2.68 KBtangibre

Comments

tangibre’s picture

Status: Active » Needs work
StatusFileSize
new2.68 KB

I made this patch to show what I had in mind.
I still haven't figured out a proper way to let the validate function set the height and width. I think I have to set the values with set_form_values, but am having problems.

Please let me know what you think

moonray’s picture

It sounds like a useful function. I would make it optional, though.

I currently don't have the time to update anything. If you're thinking of contributing more, consider helping maintain the module.

moonray’s picture

Version: 5.x-1.x-dev » 7.x-1.x-dev
Status: Needs work » Patch (to be ported)

Moving new development to D7 version.

moonray’s picture

Project: Webcams » Webcam field

Moving this over to the new Webcam field module.