嵌入式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 i...

我使用的是科尔多瓦和使用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.

阅读全文

相关推荐

最新文章