Having trouble loading a video on iPad using an http URL in the src attribute of an HTML5 video tag. Both static and dynamic approaches have been attempted, but it works fine on web browsers. Here is an example of the code:
Static:
<!DOCTYPE html>
<html>
<body>
<video width="320" height="240" controls="controls">
<source src="http://xyz.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
</html>
Dynamic:
function Video(){
var html = "";
html += '<video id="someVideo" width="712" height="500" controls="controls" autoplay="autoplay">';
html += '<source src="http://xyz.mp4" type="video/mp4" />';
html += '</video>';
$("#page33video2").html(html);
$('#someVideo').attr('src', 'http://xyz.mp4');
$('#someVideo')[0].load();
}
Is there any solution for loading a video using an http URL in the src attribute of an HTML5 video tag?
Thank you very much. Vikas