anyone can help with html5 code that plays mpeg dash video
Anyone see anything wrong with this code? Im trying to implement mpeg dash and this doesnt work on chrome, ie or firefox...opens a player but nothing plays
the mpd and associated adaptive streams were generated by sorenson squeeze and
http://www-itec.uni-klu.ac.at/dash/?page_id=605
says its a valid mpd file with no errors
TIA for any help
Quote:
<!DOCTYPE html>
<html>
<head><title>Adaptive Streaming in HTML5</title>
<!-- DASH-AVC/265 reference implementation -->
<script src="https://github.com/Dash-Industry-Forum/dash.all.js"></script>
<script>
// setup the video element and attach it to the Dash player
function setupVideo() {
var url = "http://www.mysite.com/dash/test/test.mpd";
var context = new Dash.di.DashContext();
var player = new MediaPlayer(context);
player.startup();
player.attachView(document.querySelector("#videopl ayer"));
player.attachSource(url);
}
</script>
<style>
video {
width: 80%;
height: 80%;
}
</style>
</head>
<body onload="setupVideo()">
<h1>Adaptive Streaming with HTML5</h1>
<video id="videoplayer" controls></video>
</body>
</html>
|
__________________
Mike South
It's No wonder I took up drugs and alcohol, it's the only way I could dumb myself down enough to cope with the morons in this biz.
|