html - ViewRight-player 顶部的 Div

标签 html css flash

http://clubace.dk/viewright_test.htm

播放器加载后,页面底部的绿色 div 就会与播放器重叠。

我尝试在对象标记和 param 标记中将 wmode 设置为“透明”,但这没有帮助。

<!DOCTYPE html>
<html><head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

<script type="text/javascript">
 function changeChannel(url, chanid)
  {
  var player = document.getElementById('ViewRightControl');
  var video = document.getElementById('video');
  if (video != null)
  {
    video.src = url;
    video.load();
    video.play();
  }
  else if (player != null)
  {
    player.Close();
    player.Open(url, false);
  }
    if(chanid != 0)
    {
      update(chanid);
    }
    else
    {
      tvclear();
    }

}

function update(channelid) {
  $.getJSON('api.php', function(data) {
  console.log(data[channelid][0]);

  $('.now').html("<strong>" + data[channelid][0]['title'] + "</strong><br>" + data[channelid][0]['starttime'] + "<br>");


  $('.next').html("<strong>" + data[channelid][1]['title'] + "</strong><br>" + data[channelid][1]['starttime'] + "<br>");
});

}

function tvclear() {
  $('.now').html("No data");
  $('.next').html("No data");
}
</script>

<style type="text/css">
body {
    background: black;
    cursor: auto;
    -webkit-user-select: none;
    user-select: none;
    overflow: hidden;
}
:::-webkit-scrollbar { 
    display: none; 
}
#ViewRightControl {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#selectorHolder {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 200px;
    background: green;
    z-index: 100;
}
</style>

</head>
<body onload="changeChannel('http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8', 0);">
<object id="ViewRightControl" type="application/x-viewright-m3u8" wmode="transparent">
<param name="wmode" value="transparent">
</object>
<div id="selectorHolder">

</div>
</body></html>

我正在使用 Verimatrix 的 ViewRight 插件(适用于 Windows): http://warehouse.yousee.tv.s3.amazonaws.com/misc/plugin/YouSee.msi

最佳答案

我找到了解决办法!!

这是一个 NPAPI 插件,这里有一种在其之上添加一些东西的方法:HTML on top of NPAPI plugin

关于html - ViewRight-player 顶部的 Div,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22835155/

相关文章:

html - 柔性 : Align two items side by side without max width

javascript - 将鼠标悬停在元素上时,如何使我的兄弟元素呈现黑色?

macos - Firefox NPAPI 插件在 VMware 上的 OSX 中损坏

actionscript-3 - 有没有办法运行两个调试器实例?

java - 网络浏览器中的录音小程序/Flash

javascript - Materialise CSS 中的可折叠元素未在 Apps 脚本侧边栏 HTML 中展开

iphone - 在 mailcomposer 中向 html 正文添加新行

html - 文本在 html 中围绕多边形边缘流动

javascript - 将文本框连同文本添加到 HTML 中的表格 (tbody)

c++ - QWebView::settings()->setUserStyleSheetUrl() 从 QtWebKit 到 QtWebEngine?