Here is a script that adds markup for the html5 video in the DOM:
document.body.innerHTML = '<video id="video" controls="controls" src="http://mirror.cessen.com/blender.org/peach/trailer/trailer_iphone.m4v" type="video/mp4"></video>'; var el = document.getElementById('video'); document.body.removeChild(el); document.body.appendChild(el);
jsfiddle demo: http://jsfiddle.net/h8RLS/2/
This works in all tested browsers except Safari on iOS. On iOS, when the HTMLVideoElement is again added to the DOM, it no longer plays.
Has anyone else resolved or encountered this problem?
html5 ios iphone html5-video ipad
Jack
source share