Link for accessing snapshots

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
jamestx10
Posts: 34
Joined: Fri Jul 15, 2016 7:36 am

Link for accessing snapshots

Post by jamestx10 »

I have seen the following link used for viewing the video stream:

Code: Select all

http://username:password@192.168.2.x/cgi-bin/mjpg/video.cgi?channel=0&subtype=0
What is the link for accessing a snapshot from the camera?
IP2M-841
Melvin
Site Admin
Posts: 2210
Joined: Wed Oct 14, 2015 2:20 pm

Re: Link for accessing snapshots

Post by Melvin »

Hello jamestx10,

You can use the below command.

http://username:password@192.168.2.x/cg ... apshot.cgi? [channel=<channelNo>]
Can't find your answer on the forum? Try our Knowledge Base! https://amcrest.zendesk.com/hc/en-us

Image
jamestx10
Posts: 34
Joined: Fri Jul 15, 2016 7:36 am

Re: Link for accessing snapshots

Post by jamestx10 »

Thanks. I have ended up with this:

Code: Select all

http://USERNAME:PASSWORD@192.168.2.XX:PORT/cgi-bin/snapshot.cgi?t=
To use it on a page that will auto refresh it use:

Code: Select all

<img src="http://USER:PASSWORD@192.168.2.XX:PORT/cgi-bin/snapshot.cgi?t=" width= '1080' onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 2000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='NAMEOFCAMERA' />
IP2M-841
jamestx10
Posts: 34
Joined: Fri Jul 15, 2016 7:36 am

Re: Link for accessing snapshots

Post by jamestx10 »

This worked until firmware 10. Now it will display the first snapshot and the prompt for a username and password. Anyway to correct this behavior?
IP2M-841
jamestx10
Posts: 34
Joined: Fri Jul 15, 2016 7:36 am

Re: Link for accessing snapshots

Post by jamestx10 »

This no longer works after updated to Firmware 10. The first snapshot shows up and then a log in prompt appears. Please restore the old functionality for the snapshot.
IP2M-841
Post Reply