anyone can help with html5 code that plays mpeg dash video

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mikesouth
    Confirmed User
    • Jun 2003
    • 6334

    #1

    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

    <!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.
  • tremens
    Registered User
    • Dec 2012
    • 52

    #2
    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.
    /

    Comment

    • mikesouth
      Confirmed User
      • Jun 2003
      • 6334

      #3
      Originally posted by tremens
      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.

      Comment

      Working...