嵌入式YouTube视频触摸设备上自动显示右键上下文菜单 [英] Embeded youtube video on touch device showing right click context menu automatically

查看:146
本文介绍了嵌入式YouTube视频触摸设备上自动显示右键上下文菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是科尔多瓦和使用iframe中,包括YouTube视频。

I'm using cordova and using iframe to include youtube video.

我使用的这条线把视频中的iframe。

I am using this line to put the video in the iframe.

ylink='<iframe width="100%" height="'+height+'" src="'+ylink+'?rel=0&controls=1&showinfo=0&modestbranding=1" frameborder="0" allowfullscreen allownetworking="internal"></iframe>'

$('#list_holder').html(ylink);

雁联的格式就像 https://www.youtube.com/embed/XXXXXXXX

它加载完美。视频缩略图加载。然后,我开始播放按钮。视频播放预期。问题是,它还会引发YouTube上的点击右键快捷菜单。我试图去触摸等地的视频来隐藏它,但它再次出现在我感动的地方。

It loads perfectly. Video thumbnail loads. Then I start the play button. Video plays as expected. Problem is that it also trigger the right click context menu of youtube. I tried to touch other places of the video to hide it, but it reappears in the places where I touched.

然后我尝试一些建议。最后我结束了这个巨大的网址使用所有这些建议。

Then I tried few suggestions. Last I end up with this huge url for using all those suggestions.

ylink='<iframe width="100%" height="'+height+'" src="'+ylink+'?
rel=0&controls=1&showinfo=0&modestbranding=1&disablekb=1&wmode=transparent" frameborder="0"
allowfullscreen allownetworking="internal" oncontextmenu="return false;"></iframe>'

仍然没有工作。大多数建议是使用 allownetworking =内部但我用它,并没有改变。它的发生不仅对触摸设备。我测试在Android 2.3和4.0.4

Still not working. Most suggestions were using allownetworking="internal" but I used it and no change. It's happening only on touch device. I'm testing on Android 2.3 and 4.0.4

我怎样才能制止这种上下文菜单或隐藏它,禁用它?我只需要寻求控制和全屏控制。我不需要任何其他的视频。我失去了什么?

How can I stop this context menu or hide it, disable it? I only need the seek control and fullscreen control. I don't need anything else in the video. What I'm missing??

[忘了提:有趣的是,第一线的工作完美昨天,而不是今天工作。上下文菜单中没有显示昨天。现在,我想知道如果YouTube的改变任何东西,或不。]

[ Forgot to mention: Funny thing is that the first line worked perfectly yesterday and not working today. Context menu wasn't showing yesterday. Now I'm wondering if youtube changed anything or not.]

推荐答案

截至2014年7月11日在3:45 PM,这个错误似乎已得到修复。

As of July 11, 2014 at 3:45 PM, this bug appears to have been fixed.

这篇关于嵌入式YouTube视频触摸设备上自动显示右键上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆