Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 05-19-2014, 11:36 PM   #1
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
Old 05-20-2014, 06:15 AM   #2
tremens
Registered User
 
Industry Role:
Join Date: Dec 2012
Posts: 52
Code:
player.attachView(document.querySelector("#videopl ayer"));
I see a whitespace typpo for what should be "#videoplayer" here...
__________________
\
( Check out Tremendum Transcoder, our server side video transcoding solution.
/
tremens is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 05-20-2014, 08:25 AM   #3
mikesouth
Confirmed User
 
mikesouth's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: My High Horse
Posts: 6,346
Quote:
Originally Posted by tremens View Post
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.....
__________________
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
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.