Jump to content
Fórum Script Brasil
  • 0

Php com Camera IP


Alexandre_Rangel
 Share

Question

Recentemente comprei uma câmera IP e eu gostaria de coloca-lo no meu site.

 

Alguém tem uma sugestão, ou um código básico, para que eu consiga colocar a câmera ip para aparecer no site feito em php?

seria só para aparecer a câmera sem enfeitar muito, quem puder ajudar ou indicar um caminho para eu conseguir, eu agradeço muito!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
<html lang="pt-br">
    <head>
        <title>Testando cameras via IP</title>
        <meta charset="UTF-8">
    </head>
    <body>
        <img src="IP da camêra" width='' onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 1000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='' />
    </body>
</html>

outra maneira

<html lang="pt-br">
    <head>
        <title>Testando cameras via IP</title>
        <meta charset="UTF-8">
    </head>
    <body>
    <img src="http://DnsOuIP:Porta/snapshot.cgi?user=admin&pwd=senha&t=" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 1000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='' />
    </body>
</html>
<html lang="pt-br">
    <head>
        <title>Testando cameras via IP</title>
        <meta charset="UTF-8">
    </head>
    <body>
        <img src="http://DNSouIP:Porta/CGIProxy.fcgi?cmd=snapPicture2&usr=admin&pwd=suasenha&t=" onload='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 1000)' onerror='setTimeout(function() {src = src.substring(0, (src.lastIndexOf("t=")+2))+(new Date()).getTime()}, 5000)' alt='' />
    </body>
</html>

Esperto ter ajudado!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Forum Statistics

    • Total Topics
      149.9k
    • Total Posts
      646.8k
×
×
  • Create New...