Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
421 views
in Technique[技术] by (71.8m points)

internet explorer - WebBrowser Control | Mutliple iFrame Embedded YTPLAYER Vids | Only 1st Vid Functions

In a VB6 application:

  • If I load a HTML page with multiple ytplayer iFrame embeds only the first video functions. The other iFrame videos below it appear as white boxes.

  • If I load the exact same HTML page in Internet Explorer all of the videos function.

I'm trying to figure out which setting I need to tweak. I've been pouring over the FeatureControls but haven't spotted anything.

Any ideas where else to look for this setting or group of settings?

Here is a sample of a HTML file which loads properly in Internet Explorer but does not load properly in the webbrowser control:

Sample HTML File

TKS

question from:https://stackoverflow.com/questions/65923962/webbrowser-control-mutliple-iframe-embedded-ytplayer-vids-only-1st-vid-funct

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Are you using WebBrowser in VB.NET to display the page? If so, I think the issue might be caused by that WebBrowser in VB.NET doesn't use IE 11 by default. I try to add this line in the first line of Sample.htm <head>, then it can work with WebBrowser in VB.NET:

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

The result is like below:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...