View Single Post
Old 05-19-2014, 11:36 PM  
mikesouth
Confirmed User
 
mikesouth's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: My High Horse
Posts: 6,346
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.
mikesouth is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote