iframe - 如何从另一个网站重现实时摄像头源
我想重现来自 http://www.falakrotop.meteodrama.gr/webcam 的实时摄像头源。 php.我想在此网站上显示实时摄像头图像的调整大小 (200x150) 图像。使用 iframe 会导致出现滚动条,导致很难在 200x150 的小框中看到(巨大的)图像。有没有办法只拍摄实时图像,调整其大小并将其显示在我的网站上(并刷新实时图像)?我不能使用 iframe 只使用图像,因为它似乎是动态生成的......
I want to reproduce the live camera feed from http://www.falakrotop.meteodrama.gr/webcam.php. I want to display a resized (200x150) image of the live feed camera image on this website. Using iframe caused scrollbars to appear, making hard to see the (huge) image in a small 200x150 box. Is there a way to only take the live image, resize it and display it on my website (and also refreshing live)? I cannot use iframe to only use the image, as it seems to be dynamically generated...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
网络摄像头现在似乎已离线,但您尝试过吗?
如果这不起作用,您可以尝试使用 fsockopen 来抓取它。
然后您将获得完整的页面,然后使用 preg_match 到达图像。
我还强烈建议与网站管理员/所有者一起清除它。您会向他/她的网站发送大量请求。
您可以在我链接到的页面上找到一些很好的示例。
我希望这有帮助。祝你好运!
The webcam seems to be offline now, but have you tried this?
If that doesn't work, you could try scraping it using fsockopen.
You will get the full page then, and after that, use preg_match to get to the image.
I would also highly recommend clearing it with the webmaster / owner of the site. You would be sending a lot of requests to his/hers website.
You can find some good examples on the pages I linked to.
I hope this helps. Good luck!