小程序上的 div 或 iframe
我想创建一个自定义视频控件,我的意思是在视频本身上,存在诸如双击视频的某些 x 和 y 坐标进行放大之类的问题,但我无法获得此结果,因为真正的播放器插件 API 不是那么灵活,然后我尝试创建一个透明层来处理这些事件,但我无法实现透明层位于视频之上,我尝试了这个列表:
1.-将 Flash 透明电影放在真实的播放器插件上- 播放器不工作会破坏 z-Index 并且视频会转到顶部。
2.- 将 Iframe 透明地放在真实播放器插件上 - 不起作用,它放在顶部,但是当我使 Iframe 透明时,电影又回到顶部。
3.- 我尝试使用地图 html 标签,也不起作用。
4.-我尝试将和 div 绝对定位,但 z-index 不起作用。
我需要有关此主题的一些帮助。
多谢你们
I want to create a custom video control, I mean over the video itself, with issues like double click on some x and y coordinates of the video to zoom In, but I can't get this result because the real player plugin API is not that flexible, then I Tried to create a transparent layer to handle those events and I can't achieve that the transparent layer sits on top of the video, I tried this list:
1.- Put a flash transparent movie over the real player plugin- not working the player breaks the z-Index and the video goes to the top.
2.- Put an Iframe transparent over the real player plugin- not working it puts on top, but when I make the Iframe transparent, the movie goes agains to the top.
3.- I tried to use the map html tag, also is not working.
4.-I tried to put and div absolute positioned, but z-index is not working.
I need some help with this topic.
thanks guys
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
没有可靠的方法来强制浏览器将内容分层在插件之上,因为像 Flash 这样的插件只是直接与视频/音频系统通信,并且只是在浏览器告诉它们的边界框中进行绘制。
显然它仍然是实验性的,并且没有 IE 支持(没有 ChromeFrame),但其设计正是为了解决这个问题。
There is no reliable way to force a browser to layer content on top of a plugin, because plugins like Flash just talk to the video/audio system rather directly and just paint in the bounding box the browser tells them to.
Obviously it's still experimental, and there's no IE support (without ChromeFrame), but was designed to solve exactly this problem.
如果这是 Flash,您可以使用 wmode=opaque 或 wmode=transparent 作为默认 wmode=windowed 的替代方案,这要快得多,但会导致您所描述的覆盖问题。 我没有发现任何迹象表明真正的玩家有同等的选择。
If this was Flash you could use wmode=opaque or wmode=transparent as an alternative to the default wmode=windowed, which is much faster but causes problems with overlays like you describe. I've found no sign of an equivalent option for real player.
http://javafx.com/ 是我的建议,
我会避免尝试将几种不同的技术混搭在一起以获得什么你想要的,这将使不同浏览器之间的维护和浏览器升级成为一场噩梦。
http://javafx.com/ would be my recommendation
I would avoid trying to mash several different technologies together to get what you want, It will make for a maintenance nightmare between different browsers and browser upgrades.
我认为这就是您搜索的内容:
http://www.dynamicdrive.com/ forums/showpost.php?s=4cc8a233f39321ad1ee9e01ec57a3bef&p=200817&postcount=10
您需要 wmode = opaque 来获取闪光灯上的图层。
您可以在 www.dtele.de 找到此功能。
如果您打开导航,您会看到它位于 Flash 影片上方。
I think this is what you search for:
http://www.dynamicdrive.com/forums/showpost.php?s=4cc8a233f39321ad1ee9e01ec57a3bef&p=200817&postcount=10
You need the wmode = opaque to get the layer over the flash.
a place where you can find this working is, www.dtele.de .
If you open the navigation, you´ll see, tha it lays over the flash movie.