ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

Chrome doesn't show MotionJpeg of webcam #111

Open lichtteil opened 9 years ago

lichtteil commented 9 years ago

After fixing #110 I had the issue that Google Chrome didn't show the Motion JPEG of the webcam at all. In Firefox everything worked as expected. After doing little research I found out that the MJPEG has to be wrapped in a < img >-tag so I replaced the iframe with the MJPEG as source with an image-tag. Now Chrome also shows the webcam stream. Anything speaking against doing it like that? If not i will submit a pull request. Cheers!