GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   anyone can help with html5 code that plays mpeg dash video (https://gfy.com/showthread.php?t=1141074)

mikesouth 05-19-2014 11:36 PM

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>

tremens 05-20-2014 06:15 AM

Code:

player.attachView(document.querySelector("#videopl ayer"));
I see a whitespace typpo for what should be "#videoplayer" here...

mikesouth 05-20-2014 08:25 AM

Quote:

Originally Posted by tremens (Post 20093014)
Code:

player.attachView(document.querySelector("#videopl ayer"));
I see a whitespace typpo for what should be "#videoplayer" here...

thats a result of the paste the whitespace isnt there in the code


this is rather frustrating .....wish jwplayer or someone would support dash.....


All times are GMT -7. The time now is 05:41 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc