I have an mjpg video stream. The MIME type is content-type: multipart/x-mixed-replace
I can get a great video stream in Chrome, Firefox, and Safari, but it is not yet working in IE (I tested IE10/Win8). Also I get a video feed on my android device's chrome app, but not on my iPhone's Chrome app(iOS7/30.0.1599.16). Here is the code I am using to embed the video (the url is the actual stream at the moment):
<video height="400" poster="http://bit.ly/1ccY67W" >
<source src="http://bit.ly/1ccY67W" type="video/mp4" />
<source src="http://bit.ly/1ccY67W" type="video/ogg" />
<source src="http://bit.ly/1ccY67W" type="video/webm" />
"Your browser does not support HTML5"
</video>
Here is a fiddle. (You can see those are my pet birds). It seems that IE is supposed to support the video/mp4 type. And I was hoping that the chrome app on iOS would behave the same as the chrome app on other devices, but I guess that is not the case?
One other strange thing to note is that if I remove the poster attribute, the stream does not work in any browser.
What do I need to do to get the stream to work in IE and iOS Chrome app?
EDIT: For mjpg you should use an image tag. The above code was working because the poster attribute functions as an image. The code is simply:
<img id="stream" src="http://bit.ly/1ccY67W"/>
I load the img source dynamically on page load. My hack to support IE and chrome on iOS is if the img source fails to load, I activate a canvas and serve up static images from the camera at 3 fps. I would like to find a way to get the actual mjpg video stream though. Also to note, although the iOS chrome app does not work, the safari app on iOS7 does work.