ShakaPlayer pip按钮自定义按钮

时间:2019-06-20 06:57:10

标签: javascript html shaka

如何在图片中制作单独的按钮图片? 如何将这个事件称为按钮?

什么叫画中画事件? 怎么称呼它?

(function() {
  var vplayer = videojs('#video', {
    techOrder: ['shaka', 'html5']
  });
})();
<html>

<head>
  <title>Shaka Test</title>
  <script src="../dist/video.dev.js"></script>
  <script src="../dist/js/shaka-player.compiled.debug.js"></script>
  <script src="../src/videojs.shaka.dev.js"></script>
  <link type="text/css" rel="stylesheet" href="../dist/videojs.css">
  <link type="text/css" rel="stylesheet" href="../dist/css/videojs-icons.css">
</head>

<body>
  <video id="video" width="640" height="360" crossOrigin="anonymous" controls class="video-js vjs-default-skin">
      <source src="http://cdn-1-stage.metacdn.net/vorjbrr/3J8Jaw/trailer_1080p_mov-LOW.mp4" type="video/mp4"/>
      <source src="http://cdn-1.metacdn.net/jumipqxo/s66aYH/bbb_sunflower_1080p_30fps_normal_mp4-PLAYLIST_1436171629258.mpd" type="application/dash+xml">
      Your browser does not support HTML5 video.
    </video>
</body>

</html>

0 个答案:

没有答案