KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Here is a script that appends the markup for an html5 video to 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 browsers tested, except for Safari on iOS. In iOS, when the HTMLVideoElement is re-appended to the DOM, it is no longer playable. Has anyone else resolved or encountered this issue?
Tags (comma-separated)
Save Edits
Cancel