Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.22 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <!--
  3. *
  4. * Copyright (C) 2016, bitmovin GmbH, All Rights Reserved
  5. *
  6. * Created on: 2015-07-25 11:35:04
  7. * Author:     bitmovin GmbH <dash-player@bitmovin.com>
  8. *
  9. * This source code and its use and distribution, is subject to the terms
  10. * and conditions of the applicable license agreement.
  11. *
  12. -->
  13. <html lang="en">
  14. <head>
  15.   <title>bitdash SDK</title>
  16.   <meta charset="UTF-8"/>
  17.   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  18.   <meta name="viewport" content="width=device-width, initial-scale=1.0">
  19.   <link href="http://fonts.googleapis.com/css?family=Dosis" rel="stylesheet" type="text/css"/>
  20.   <!-- bitdash player -->
  21.   <script type="text/javascript" src="https://bitmovin-a.akamaihd.net/bitmovin-player/stable/7/bitmovinplayer.js"></script>
  22.  
  23.   <style>
  24.     figure {
  25.       margin: 0;
  26.       padding: 0;
  27.     }
  28.     .container {
  29.       font-family: "Dosis";
  30.       color:       white;
  31.       text-align:  center;
  32.     }
  33.     .container a {
  34.       color: white;
  35.     }
  36.     .container h1 {
  37.       font:          54px/66px "Dosis";
  38.       margin-bottom: 22px;
  39.       line-height:   66px;
  40.     }
  41.     .container h2 {
  42.       font-weight:   normal;
  43.       margin-bottom: 36px;
  44.       line-height:   26px;
  45.     }
  46.     .player-wrapper {
  47.       width:        50%;
  48.       margin-right: auto;
  49.       margin-left:  auto;
  50.       box-shadow:   0 0 30px rgba(0,0,0,0.7);
  51.     }
  52.     #webserver-warning {
  53.       margin:           50px;
  54.       padding:          20px;
  55.       background-color: rgba(255,0,0,0.5);
  56.       display:          none;
  57.     }
  58.   </style>
  59. </head>
  60. <body background="http://bitmovin-a.akamaihd.net/webpages/bitmovin/images/background.jpg">
  61. <div class="container">
  62.   <h1>HTML5 Adaptive Streaming Player for MPEG-DASH & HLS</h1>
  63.  <h2>Your videos play everywhere with low startup delay, no buffering and in highest quality.</h2>
  64.  <div id="webserver-warning">
  65.    <div class="ca-content">
  66.      <h1>Unsupported Protocol</h1>
  67.      <h2>This file has been loaded using the unsupported "file" protocol. Please use a <a href="http://wiki.selfhtml.org/wiki/Webserver/lokal" target="_blank">web server</a> and open this page using http or https.</h2>
  68.    </div>
  69.  </div>
  70.  <div class="content">
  71.    <div class="player-wrapper">
  72.      <div id="player"></div>
  73.    </div>
  74.    <div class="description">
  75.      <p>For more information about the bitmovin player, please have a look at our online <a href="//bitmovin.com/support" target="_blank">Developer Section</a>.</p>
  76.    </div>
  77.  </div>
  78.  
  79. </div>
  80. <script type="text/javascript">
  81.  if (location.protocol === "file:") {
  82.    document.getElementById("webserver-warning").style.display = "block";
  83.   }
  84.  
  85.   var conf = {
  86.     key:       "a65dff16-b18c-49cf-b636-cb99919b9154",
  87.     source: {
  88.       dash:        "http://vr.rmdmtools.com/dash/test1.mpd",
  89.       hls:         "http://vr.rmdmtools.com/hls/test1.m3u8",
  90.       progressive: "",
  91.       poster:      ""
  92.     }
  93.   };
  94.   var player = bitmovin.player("player");
  95.  
  96.   player.setup(conf).then(function(value) {
  97.     // Success
  98.     console.log("Successfully created bitmovin player instance");
  99.   }, function(reason) {
  100.     // Error!
  101.     console.log("Error while creating bitmovin player instance");
  102.   });
  103. </script>
  104. </body>
  105. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement